Skip to content

Instantly share code, notes, and snippets.

View joshcom's full-sized avatar
🤠

Joshua Murray joshcom

🤠
View GitHub Profile
@joshcom
joshcom / .json
Last active July 29, 2020 16:13
/floorplans?OriginatingSystemKey=””&OriginatingSystemID=””&SourceSystemID=””
{
"success": true,
"results": [{
"id": 325,
"name": "My FloPlan",
"images": [
{
"url": "https://?.amazon.com/?.png",
"image_type": "all_in_one_png"
},
@joshcom
joshcom / gist:4349831
Created December 21, 2012 00:33
Jira cherry-picker galore?
#!/bin/sh
JIRA_ISSUE=$1
BRANCH=$2
if [ "$BRANCH" = "" ]; then
BRANCH="master"
fi
echo "Commits in branch $BRANCH for issue #$JIRA_ISSUE"
@joshcom
joshcom / rc4_crap.rb
Created August 9, 2012 13:58
RC4 crap
def encrypt str
c = OpenSSL::Cipher::Cipher.new("rc4")
c.encrypt
c.key = secret_key
e = c.update( str )
e << c.final
# Make it purdy. Useful for database storage.
e.unpack("H*")[0]
end