Skip to content

Instantly share code, notes, and snippets.

@ryantm
ryantm / -
Created January 15, 2020 14:40
{ AMB-plugins = { homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/ladspa/index.html"; version = "0.8.1"; }; AgdaSheaves = { homepage = "https://github.com/jonsterling/Agda-Sheaves"; version = "8a06162a8f0f7df308458db91d720cf8f7345d69"; }; AgdaStdlib = { homepage = "http://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary"; version = "1.1"; }; CoinMP = { homepage = "https://projects.coin-or.org/CoinMP/"; version = "1.8.4"; }; EmptyEpsilon = { homepage = "https://daid.github.io/EmptyEpsilon/"; version = "2019.11.01"; }; FIL-plugins = { homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/ladspa/index.html"; version = "0.3.0"; }; Fabric = { homepage = "https://www.fabfile.org/"; version = "2.5.0"; }; LASzip = { homepage = "https://laszip.org"; version = "2.2.0"; }; MMA = { homepage = "http://www.mellowood.ca/mma/index.html"; version = "19.08"; }; PPSSPP = { homepage = "https://www.ppsspp.org/"; version = "1.9.3"; }; QmidiNet = { homepage = "http://qmidinet.sourceforge.net/"; versio
@huzemin
huzemin / laravel-encrypt.js
Created December 3, 2019 06:47
laravel Encrypt convert to CryptoJS in Javascript
import CryptoJS from "crypto-js";
const LaravelEncrypt = function (key) {
this.key = key;
}
LaravelEncrypt.prototype.decrypt = function (encryptStr) {
encryptStr = CryptoJS.enc.Base64.parse(encryptStr);
let encryptData = encryptStr.toString(CryptoJS.enc.Utf8);
encryptData = JSON.parse(encryptData);
@Southclaws
Southclaws / github-release-downloads.sh
Created July 3, 2018 13:27
Count total downloads from GitHub releases using the GitHub API v3 and a simple jq expression
#!/usr/bin/env sh
# https://jqplay.org/s/CpDPlGueMM
# usage: `github-release-downloads.sh Username/Repository`
curl -s https://api.github.com/repos/$1/releases |
jq '[.[].assets | .[].download_count] | add' -
@Jekins
Jekins / Markdown-docs.md
Last active April 18, 2024 09:56
Руководство по оформлению Markdown файлов

Руководство по оформлению Markdown файлов

Markdown - это облегчённый язык разметки, который преобразует текст в структурированный HTML. Следующее руководство поможет вам разобраться, как использовать Markdown.

Заголовки

# Заголовок первого уровня
## Заголовок второго уровня
### Заголовок третьего уровня
#### Заголовок четвёртого уровня
##### Заголовок пятого уровня
@mt89vein
mt89vein / CookieHelper.cs
Last active April 18, 2024 09:54
A cookies helper class to easily read and set cookies on HttpRequest (Asp.Net Core)
/// <summary>
/// Вспомогательные методы для работы с <see cref="Cookie"/>.
/// </summary>
public static class CookiesHelper
{
#region Методы (public)
/// <summary>
/// Получить список куки, которые сервер хочет установить через Set-Cookie.
/// </summary>
@megaacheyounes
megaacheyounes / huawei_devices_detection_demo.html
Last active April 18, 2024 09:53
Simple example showing the detection of Huawei devices using the UserAgent
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Huawei device detection using user agent</title>
</head>
<body>
<h1 id="h1">Loading...</h1>
@jhochwald
jhochwald / Get-ADFSCertificate-Token-Signing.ps1
Created April 26, 2017 16:49
ADFS Authentication with Exchange troubleshooting
Get-ADFSCertificate Token-Signing | Select-Object Thumbprint
@hysts
hysts / extract_images.py
Created November 11, 2018 11:31
Extract images from Tensorboard log
#!/usr/bin/env python
import argparse
import pathlib
import numpy as np
import cv2
from tensorboard.backend.event_processing import event_accumulator
def main():
@rhlobo
rhlobo / chat_md_format.py
Created February 19, 2024 03:14
Creates an markdown file from an Copilot Chat JSON
# You can export a Copilot Chat session in Visual Studio Code
# to a JSON file via `Ctrl+Shift+P | Chat: Export Session...`
# or by choosing `View > Command Palette | Chat: Export Session...`
# Inspired by https://github.com/Marijn-Bergman/copilot-chat-export-formatter
import sys
import json