Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Conrad camalot

View GitHub Profile
View default-dark.css
:root {
--primary: #09F;
--text: #CCC;
--background: #080808;
--background-elevated: #222;
}
@camalot
camalot / !so
Created Dec 31, 2018
Shout out short
View !so
Give $(touser) a follow at https://twitch.tv/$(eval user = "$(touser)".replace(/^\@/gi,''); user.toString();)
@camalot
camalot / !so
Created Dec 31, 2018
Nightbot shoutout command that allows @ in the username
View !so
Make sure to give $(touser) a follow! $(twitch $(eval user = "$(touser)".replace(/^\@/gi,''); user.toString();) "{{displayName}} was last seen playing {{game}}") - Give $(touser) a follow at https://twitch.tv/$(eval user = "$(touser)".replace(/^\@/gi,''); user.toString();)
@camalot
camalot / github-release.sh
Created Jan 8, 2018
github release : list, create, and upload
View github-release.sh
#!/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";
View hid-prox-weigand.ino
/*
* 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 / .bashrc
Last active Mar 8, 2020
Some helper scripts to allow access of the Windows Environment Variables from within Bash (in WSL)
View .bashrc
#!/usr/bin/env bash
source ~/.wsl_helper.bash
eval $(winenv)
@camalot
camalot / 0_reuse_code.js
Created Feb 15, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@camalot
camalot / after.sh
Created Apr 14, 2016 — forked from justincampbell/after.sh
Jenkins + GitHub Commit Status API
View after.sh
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 \