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:
#!/usr/bin/env python3 | |
# | |
# Create CSV files from Acronis backup notification emails. | |
import csv | |
import re | |
import sys | |
from dataclasses import dataclass | |
from pathlib import Path |
trait DoorState {} | |
// PhantomData is a zero-sized type that tells the compiler to pretend that | |
// Door actually stores a value of type State, since otherwise we'd get an | |
// unused type parameter error. | |
struct Door<State: DoorState> { number: u8, state: std::marker::PhantomData<State> } | |
// Our states don't actually hold any data. If they did, we wouldn't need | |
// PhantomData. | |
struct Open {} |
// Adjust linter settings to make output less noisy. | |
#![allow(unused_variables, dead_code)] | |
/* | |
The Rust programming language | |
============================= | |
Website: https://www.rust-lang.org/ | |
## Learning |
I hereby claim:
To claim this, I am signing this object:
[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 |
clang-format -style=file -i $(git ls-files *.cpp *.h) |
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) |
#!/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 |
#!/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 |
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. |