Skip to content

Instantly share code, notes, and snippets.

View joesondow's full-sized avatar

Joe Sondow joesondow

View GitHub Profile
// ASG and ELB mismatched zones
asgardLocator.getInstance('nactest').acrossRegions {
def asgs = autoScaling
def elbs = loadBalancer
html.output << "<h3>${inRegion}</h3>"
def elbByName = elbs.inject([:]) { acc, elb ->
acc[elb.loadBalancerName] = elb
acc
}
@joesondow
joesondow / happy_git_on_osx.md
Last active November 21, 2016 10:10 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@joesondow
joesondow / blacklist.scpt
Created December 27, 2016 08:33 — forked from freman/blacklist.scpt
Spotify blacklist script.
repeat
if application "Spotify" is running then
tell application "Spotify"
set seenTrack to ""
repeat while player state is playing
if player state is playing then
set theAlbum to album of the current track
set theTrack to name of the current track
set theArtist to artist of the current track
set trackLength to duration of current track
@joesondow
joesondow / new_ruby_project_procedure.markdown
Created December 28, 2016 20:51
A walkthrough for creating a new Ruby project

New Ruby software project procedure

First, ensure the following tools are available on the local system and reasonably up to date:

  • Git
  • Git-flow
  • RVM
  • Bash
  • SSH
@joesondow
joesondow / markov.java
Created February 16, 2017 08:41 — forked from veryphatic/markov.java
Simple Markov chain text generator
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Hashtable;
import java.util.Random;
import java.util.Vector;
public class Markov {
@joesondow
joesondow / markov.java
Created February 16, 2017 08:42 — forked from veryphatic/markov.java
Simple Markov chain text generator
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Hashtable;
import java.util.Random;
import java.util.Vector;
public class Markov {
/*
A copy of https://gist.github.com/airhadoken/8742d16a2a190a3505a2
See also: https://botwiki.org/bots/twitterbots/emoji__polls/
*/
var T = require("twit");
var Q = require("Q");
// key and secret for Twitter for iPhone.
// A whitelisted app is needed to access the cards API; you can't just create your own currently.
/*
A copy of https://gist.github.com/airhadoken/8742d16a2a190a3505a2
See also: https://botwiki.org/bots/twitterbots/emoji__polls/
*/
var T = require("twit");
var Q = require("Q");
// key and secret for Twitter for iPhone.
// A whitelisted app is needed to access the cards API; you can't just create your own currently.
@joesondow
joesondow / amiibo-emulation-with-linux-vm.md
Last active January 18, 2022 15:23 — forked from colemickens/amiibo-emulation-with-linux-vm.md
amiibo-emulation-with-linux-vm.md

Easy Amiibo Emulation - https://bit.ly/amiiboemu

(^ that's a short-link to this page, so you can open it in Linux)

Some users are discussing this guide in #hacking on the JoyConDroid Discord: https://discord.gg/SQNEx9v.

DO NOT ask for, or share links to, Amiibo bins in the comments! They will be removed. Thank you for understanding.

(Windows|Linux PC) + JoyControl + Bluetooth = AMIIBO EMULATION

@joesondow
joesondow / CRC_Example.java
Created December 31, 2020 09:45 — forked from andypiper/CRC_Example.java
Java snippet to generate Twitter Webhooks CRC response
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;
public class CRC_Example {
public static void main(String[] args) {
try {
String consumer_secret = "secret";
String crc_token = "Message";