Skip to content

Instantly share code, notes, and snippets.

Gordon Diggs gdiggs

Block or report user

Report or block gdiggs

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
View keybase.md

Keybase proof

I hereby claim:

  • I am gdiggs on github.
  • I am gordondiggs (https://keybase.io/gordondiggs) on keybase.
  • I have a public key ASB-ePD0FGhmOOfx1IQ0bnWuo3C2ca2gT-cqJ5pxc3cGmQo

To claim this, I am signing this object:

@gdiggs
gdiggs / theme.terminal
Created May 5, 2017
OS X Terminal Theme
View theme.terminal
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAB
TxAmMC4xMTE1NTYyMTcxIDAuMTQ0MjA3MTA1IDAuNTgyMTE5MTY2OQDSEBESE1okY2xh
c3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2
@gdiggs
gdiggs / example.rb
Created Oct 8, 2016
Generalized Soft Deletion for Rails
View example.rb
class Example < ActiveRecord::Base
include SoftDeletion
end
@gdiggs
gdiggs / index.js
Created Aug 5, 2016
What should I listen to? Lambda
View index.js
process.env.NODE_CONFIG_DIR = "/var/task/config";
const https = require("https")
, queryString = require("querystring");
// Twilio Credentials
const accountSid = ""
, authToken = ""
, fromNumber = ""
, toNumber = "";
View rails.txt
[ 2015-09-30 20:38:28.2193 8/7fbb6fd02780 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.58', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.58', 'web_server_pid' => '1', 'web_server_type' => 'nginx', 'web_server_worker_gid' => '9999', 'web_server_worker_uid' => '9999' }
[ 2015-09-30 20:38:28.4063 11/7fc6cbb43780 agents/HelperAgent/Main.cpp:650 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.1/generation-0/request
[ 2015-09-30 20:38:29.0609 16/7f24fb58d7c0 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent onli
View gist:9003f2ff09e8571d193e
~/git_repos/forewarn (master) 🐖 rake test TESTOPTS="--seed=23939"
Run options: --seed=23939
# Running:
...............
Finished in 0.005228s, 2869.3674 runs/s, 4782.2790 assertions/s.
View backup.bat
@echo off
set drive=W:\BACKUP_docs
set musicdrive=W:\BACKUP_music
set backupcmd="C:\backup batches\wndsync.exe" /back /r /auto /showA
set cleancmd="C:\backup batches\dirclean.exe" -r -d -s
echo Started Backup: %date% - %time% >> w:\logs\backup.txt
echo ### Backing up Home Folder...
%cleancmd% -i "%drive%"
View theme.terminal
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECYw
LjExMTU1NjIxNzEgMC4xNDQyMDcxMDUgMC41ODIxMTkxNjY5ABABgALSEBESE1okY2xh
c3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2
You can’t perform that action at this time.