Skip to content

Instantly share code, notes, and snippets.

View gdiggs's full-sized avatar

Gordon Diggs gdiggs

View GitHub Profile
[
{
"name": "Tofu60"
},
[
{
"x": 2
},
"~\n`",
"!\n1",
@gdiggs
gdiggs / README.md
Created March 26, 2020 14:27
Global Zoom push to talk
  1. In your Zoom keyboard shortcuts setting, check Enable Global Shortcut for Mute/Unmute My Audio
  2. Install BetterTouchTool
  3. Install the below preset, or make one of your own.

This works by creating 2 triggers on the same action (below it's the middle mouse button, but it could be any shortcut). One action triggers on the down press, and one on the up press, but both trigger the Cmd-Shift-A shortcut configured in Zoom. This unmutes on the downp ress, and then mutes again on the up press

require "icalendar"
WORK_ANNIVERSARIES = {
# RECACTED
}.freeze
BIRTHDAYS = {
# REDACTED
}.freeze

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 15:13
OS X Terminal Theme
<?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 October 8, 2016 15:51
Generalized Soft Deletion for Rails
class Example < ActiveRecord::Base
include SoftDeletion
end
@gdiggs
gdiggs / index.js
Created August 5, 2016 17:56
What should I listen to? Lambda
process.env.NODE_CONFIG_DIR = "/var/task/config";
const https = require("https")
, queryString = require("querystring");
// Twilio Credentials
const accountSid = ""
, authToken = ""
, fromNumber = ""
, toNumber = "";
@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%"