I hereby claim:
- I am ortham on github.
- I am wrinklyninja (https://keybase.io/wrinklyninja) on keybase.
- I have a public key ASC3MC3YuhcXoG2t5fNglFuRGXPwOoDl4yQDiOrwi_a6kQo
To claim this, I am signing this object:
/* A short script to get the total number of downloads of files in a | |
repository's releases. I just discovered that GitHub provides this info | |
through its API! I thought I'd traded the loss of such metrics for the | |
goodness of GitHub... */ | |
// Use LOOT as an example. | |
var owner = 'loot'; | |
var repo = 'loot'; | |
var xhr = new XMLHttpRequest(); |
//Get the total number of downloads for a single release, using its tag name. | |
function releaseDownloadCount(owner, repo, tag) { | |
const url = `https://api.github.com/repos/${owner}/${repo}/releases`; | |
fetch(url) | |
.then(response => response.json()) | |
.then(releases => releases.find(release => release.tag_name == tag)) | |
.then(release => release | |
.assets | |
.reduce((previous, next) => previous + next.download_count, 0)) |
function BSA_process_directory(path) | |
path = strcat(path, '\'); | |
% Filter only camera PNGs. | |
files = dir(strcat(path, 'Frame_*.png')); | |
% Create a Gaussian filter. This will be used | |
% to blur the image slightly so that spots | |
% form contiguous regions which can be | |
% analysed. |
#!/bin/bash | |
# Generate a single image using Primitive. | |
# https://github.com/fogleman/primitive | |
INPUT_FILE=$(ls $1/*.jpg | head -1) | |
OUTPUT_FILE=$1/$1.png | |
SHAPES_NUMBER=$2 | |
if [ "$3" == "combo" ] | |
then |
#!/bin/bash | |
# Run with 'sudo' | |
set -e | |
BITLOCKER_PARTITION=/dev/sda3 | |
BITLOCKER_MOUNT=/mnt/bitlocker | |
DECRYPTED_MOUNT=/mnt/windows | |
echo "Please enter your Bitlocker password: " | |
read -s BITLOCKER_PASSWORD |
ls -1 *.pdf | (IFS=: ; while read FILENAME; do s=${FILENAME##*/} ; gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=${s%.pdf}.2.pdf ${FILENAME} && mv ${s%.pdf}.2.pdf ${FILENAME} ; done) |
clang-format -style=file -i $(git ls-files *.cpp *.h) |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client] | |
"DisableByDefault"=dword:00000000 | |
"Enabled"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client] | |
"DisableByDefault"=dword:00000000 | |
"Enabled"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp] | |
"DefaultSecureProtocols"=dword:00000a00 |
I hereby claim:
To claim this, I am signing this object:
// Adjust linter settings to make output less noisy. | |
#![allow(unused_variables, dead_code)] | |
/* | |
The Rust programming language | |
============================= | |
Website: https://www.rust-lang.org/ | |
## Learning |