DOMAIN='codebykate.com'
HOST='codebykate.com'
PROTO='https'
APP_PATH='/'
IP=`dig +short ${HOST}`
This file contains hidden or 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
<?php | |
#!/usr/bin/env php | |
$password = 'password'; | |
$hash = sha1($password); | |
$truncated = substr ($hash, 0, 5); // First 5 characters | |
$checkValue = substr ($hash, 5); // Rest of the characters | |
$url = sprintf ('https://api.pwnedpasswords.com/range/%s', $truncated); | |
echo (sprintf ("Getting hashes from URL %s.\n", $url)); |
This file contains hidden or 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 php | |
<?php | |
// Line 1 | |
$document_number = rand (0, 1000000000); // 9 Digits | |
$country = 'XXX'; // Unspecified | |
$document_type = 'I'; // ID Card | |
$document_subtype = '<'; // Generally 'D', or '<' for ID | |
$line1_optional = 'COMPANY'; // Optional, 15 chars |
This file contains hidden or 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
# | |
# .zshrc for Mac M1 chips to handle both x86_64 and arm64 homebrew | |
# | |
# Be sure to remove .zprofile in order to prevent invalid paths, and | |
# remove /usr/local/bin from /etc/paths. | |
# | |
# Install both arch homebrew versions with: | |
# arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# arch -arm64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
This file contains hidden or 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
# | |
# Opens up keypair.txt and writes to keypair.p12 | |
# | |
# Skip the first and last lines, and trim any whitespace | |
$text = (Get-Content keypair.txt | Select-Object -skip 1 | Select-Object -skiplast 1).Trim() | |
# Convert from Base64 to Bytes | |
$bytes = [System.Convert]::FromBase64String($text) |
This file contains hidden or 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 | |
# | |
# build-universal.sh | |
# | |
# Compile a universal x264 binary on OS X (intel). | |
# | |
# Requires nasm. Install with homebrew: 'brew install nasm' | |
# | |
CONFIGURE_OPTS='--enable-shared --enable-static' |
OlderNewer