Skip to content

Instantly share code, notes, and snippets.

View camalot's full-sized avatar

Ryan Conrad camalot

View GitHub Profile
@camalot
camalot / after.sh
Created April 14, 2016 03:32 — forked from justincampbell/after.sh
Jenkins + GitHub Commit Status API
if [[ $BUILD_STATUS == "success" ]]
then
export STATUS="success"
else
export STATUS="failure"
fi
curl "https://api.github.com/repos/justincampbell/my_repo/statuses/$GIT_COMMIT?access_token=abc123" \
-H "Content-Type: application/json" \
-X POST \
@camalot
camalot / 0_reuse_code.js
Created February 15, 2017 14:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/*
* HID RFID Reader Wiegand Interface for Arduino Uno
* Originally by Daniel Smith, 2012.01.30 -- http://www.pagemac.com/projects/rfid/arduino_wiegand
*
* Updated 2016-11-23 by Jon "ShakataGaNai" Davis.
* See https://obviate.io/?p=7470 for more details & instructions
*/
#define MAX_BITS 100 // max number of bits
@camalot
camalot / github-release.sh
Created January 8, 2018 15:29
github release : list, create, and upload
#!/usr/bin/env bash
set -e;
[ "$TRACE" ] && set -x;
GH_API="https://api.github.com";
GH_UPLOADS="https://uploads.github.com";
__print_help_arg() {
SHORT="$1";
LONG="$2";
@camalot
camalot / !so
Created December 31, 2018 17:27
Shout out short
Give $(touser) a follow at https://twitch.tv/$(eval user = "$(touser)".replace(/^\@/gi,''); user.toString();)
@camalot
camalot / default-dark.css
Last active May 31, 2019 18:44
slack-themes
:root {
--primary: #09F;
--text: #CCC;
--background: #080808;
--background-elevated: #222;
}
@camalot
camalot / .bashrc
Last active March 8, 2020 03:20
Some helper scripts to allow access of the Windows Environment Variables from within Bash (in WSL)
#!/usr/bin/env bash
source ~/.wsl_helper.bash
eval $(winenv)
@camalot
camalot / docker-windows-forward.ps1
Created August 21, 2021 22:54
Allow Docker for Windows to Listen on Host Network
$LISTEN_ADDRESS="<Ethernet adapter vEthernet (WSL) IPv4 Address>"
netsh interface portproxy add v4tov4 listenaddress=$LISTEN_ADDRESS listenport=2375 connectaddress=127.0.0.1 connectport=2375
netsh advfirewall firewall add rule name="Docker" dir=in action=allow protocol=TCP localport=2375 enable=yes profile=domain,private,public
@camalot
camalot / adjectives.js
Created August 28, 2021 15:28 — forked from ijmacdowell/adjectives.js
javascript string array of nouns, adjectives, and verbs.
var adjectives = ["aback","abaft","abandoned","abashed","aberrant","abhorrent","abiding","abject","ablaze","able","abnormal","aboard","aboriginal","abortive","abounding","abrasive","abrupt","absent","absorbed","absorbing","abstracted","absurd","abundant","abusive","acceptable","accessible","accidental","accurate","acid","acidic","acoustic","acrid","actually","ad","hoc","adamant","adaptable","addicted","adhesive","adjoining","adorable","adventurous","afraid","aggressive","agonizing","agreeable","ahead","ajar","alcoholic","alert","alike","alive","alleged","alluring","aloof","amazing","ambiguous","ambitious","amuck","amused","amusing","ancient","angry","animated","annoyed","annoying","anxious","apathetic","aquatic","aromatic","arrogant","ashamed","aspiring","assorted","astonishing","attractive","auspicious","automatic","available","average","awake","aware","awesome","awful","axiomatic","bad","barbarous","bashful","bawdy","beautiful","befitting","belligerent","beneficial","bent","berserk","best","better","bewilde
@camalot
camalot / secretwords.txt
Created November 5, 2021 20:31
secretwords
fortbush
salami
lurve
2bit
sleep
tired
comcast
discord
squad
wins