Skip to content

Instantly share code, notes, and snippets.

@teddevaal
teddevaal / gist:92a74ae6828b93d315bf
Last active August 29, 2015 14:20
windows tls regedit
command prompt
regedit
Go to the following directory:
HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Control>SecurityProviders>SCHANNEL>Protocols
for file in `ls *.zip` ; do 7z x $file < password.file ; done
openssl rsa -noout -modulus -in *.key
openssl x509 -noout -modulus -in *.crt
@teddevaal
teddevaal / gist:c87017110b9fb28c7425
Created November 11, 2015 15:08
Fix subtree conflict
git filter-branch --index-filter 'git rm --cached --ignore-unmatch -rf directory/of/subtree' --prune-empty -f HEAD
git subtree add --prefix directory/of/subtree git@github.com:repository.git branch --squash
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' |
xmllint --format -