Skip to content

Instantly share code, notes, and snippets.


Dan Sullivan deepeeess

Block or report user

Report or block deepeeess

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
LeZuse / stats_logger.rb
Last active Oct 4, 2019
Puma plugin for stats logging on Heroku
View stats_logger.rb
Puma::Plugin.create do
def production?
ENV.fetch('RACK_ENV', 'development') == 'production'
def log(msg)
if production? msg
puts msg
EricADockery / Fastfile
Created Jul 25, 2017
Parallel iOS Testing using Bluepill
View Fastfile
lane :bluepill do
scan(scheme: “myApp”, build_for_testing: true)
sh “bash ./“
jicowan /
Created Jul 14, 2017
enable mfa-delete on a bucket
import boto3
from botocore.exceptions import ClientError
s3_client = boto3.client('s3')
s3_bucket = boto3.resource('s3')
bucket_name = raw_input('Enter the name of the bucket that you want to enable MFA-delete on: ')
mfa_token = raw_input('Enter your MFA serial number and token code, e.g. <deviceSerialNumber> <tokenCode>: ')
carolineartz /
Last active Feb 27, 2018
example testing out `ActiveRecord::Aggregations`


# in your controller you can use
@domain ='').call #=> returns Domain with name 'car' that is the child of ``
@domain.web_address.to_s #=> ''

You can use your logic for subtree equality to compare the actual web_address value objects, which are immutable. You could also see all the 'parent' strings for a given web_address object

thatbudakguy / hostapd.conf
Last active Oct 30, 2018
hostapd configuration for a 5ghz wireless network.
View hostapd.conf
interface=(INTERFACE HERE)
ssid=(SSID HERE)
penguinpowernz /
Last active Jul 12, 2019
WPA CLI commands
command args description
status [verbose] get current WPA/EAPOL/EAP status
ifname get current interface name
ping pings wpa_supplicant
relog re-open log-file (allow rolling logs)
note <text> add a note to wpa_supplicant debug log
mib get MIB variables (dot1x, dot11)
help [command] show usage help
interface [ifname] show interfaces/select interface
ajaxray / select2-cascade.js
Last active Nov 7, 2019
Making Select2 (4.x) list boxes cascading / dependent. Options of a select2 list box will be loaded/refreshed by ajax based on selection of another select2 list box.
View select2-cascade.js
* A Javascript module to loadeding/refreshing options of a select2 list box using ajax based on selection of another select2 list box.
* @url :
* @auther : Anis Uddin Ahmad <>
* Live demo -
* w: | t: @ajaxray
var Select2Cascade = ( function(window, $) {
chrisjhoughton /
Last active Apr 16, 2019
Notify tray workflows "webhook style" from Salesforce using Apex triggers.

Salesforce Apex trigger notifications for

Salesforce's Apex triggers allow you to trigger tray workflows in real-time, based on events that occur in Salesforce. Events include things like:

  • New lead creations
  • Opportunity updates, such as the status moving from "open" to "closed"

Salesforce doesn't support webhooks out of the box, so we'll need to add some Apex code to your Salesforce account to notify tray at the right time.

alces /
Last active Nov 12, 2019
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local playbook.yml
  • using inventory: ansible_connection=local
View Events in select2 [jQuery]
<script src=""></script>
<script src="select2.js"></script>
// display logs
function log(text) {
You can’t perform that action at this time.