This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__pycache__ | |
/test_vec |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REPONAME='davidsherenowitsa.party' | |
export GEM_HOME=/home/protected/gems | |
PATH=$PATH:/home/protected/gems/bin | |
GIT_REPO=$HOME/$REPONAME.git | |
TMP_GIT_CLONE=$HOME/tmp_clone/$REPONAME | |
TMP_OUTPUT=$HOME/tmp_output/$REPONAME | |
PUBLIC_WWW=/home/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
CRATES_IO_REGISTRY="$HOME/.cargo/registry/src/github.com-1ecc6299db9ec823" | |
display_usage() { | |
echo "Usage: crate-diff.sh CRATE_NAME OLD_VERSION NEW_VERSION" | |
} | |
if [ $# -ne 3 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from z3 import ( | |
Solver, | |
Function, | |
EnumSort, | |
IntSort, | |
Const, | |
Distinct, | |
And, | |
Or, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This script recovers the RSA public key that was used to make signatures, given | |
any two such signatures in X.509 certificates. Python 3 is required, along with | |
recent versions of pyasn1, pyasn1-modules, and pyprimes. Runtime is nearly | |
instantaneous when the public key uses e=3, and 3+ hours when the public key | |
uses e=65537. (This could be vastly improved by using a more efficient GCD | |
library function) To recover a public key, run this script with the file names | |
of two certificates as command line arguments. Certificates can be in PEM or | |
DER format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This script verifies whether a given X.509 certificate is self-signed, while | |
ignorng the subject and issuer distinguished names. Python 3 is required, | |
along with recent versions of pyasn1 and pyasn1-modules. To check a | |
certificate, run this script with the file name of that certificate as a | |
command line argument. Certificates can be in PEM or DER format. Only RSA | |
signatures are supported. | |
To verify whether a certificate is self-signed, this script parses the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This script checks for Google Calendar events with non-default | |
// time zones, and sends an email whenever it finds one. | |
// Usage: | |
// 1. Create a new Google Docs spreadsheet | |
// 2. Click on Tools -> Script editor... | |
// 3. In the script editor, click on Resources -> Advanced Google services... | |
// 4. Click on the enable toggle for "Calendar API", and use the default name "Calendar" | |
// 5. Click on the "Google API Console" link in the Advanced Google Services dialog box | |
// 6. In the Google API Console, click on the link to "View All" APIs |
NewerOlder