Skip to content

Instantly share code, notes, and snippets.

View gdiggs's full-sized avatar

Gordon Diggs gdiggs

View GitHub Profile
@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

# lines 11-14 of aol.rb from contacts gem
AOL_NUM = "32319-211" # this seems to change each time they change the protocol
CONTACT_LIST_URL = "http://mail.aol.com/#{AOL_NUM}/aol-6/en-us/Lite/ContactList.aspx?folder=Inbox&showUserFolders=False"
CONTACT_LIST_CSV_URL = "http://mail.aol.com/#{AOL_NUM}/aol-6/en-us/Lite/ABExport.aspx?command=all"
@gdiggs
gdiggs / comments.haml
Created June 10, 2011 20:57
multi-line haml comments
-# This comment can be
split up in multiple lines just
by indentation!
Mike
doesn't
like
these
comments
.
[
{
"name": "Tofu60"
},
[
{
"x": 2
},
"~\n`",
"!\n1",
@gdiggs
gdiggs / tempserver.go
Created April 16, 2014 02:18
One Line Go server to serve static assets from current folder
echo "package main; import \"net/http\"; import \"os\"; import \"os/exec\"; import \"os/signal\"; func main() { go func() { sigchan := make(chan os.Signal, 2); signal.Notify(sigchan, os.Interrupt); <-sigchan; cmd := exec.Command(\"rm\", \"tempserver.go\"); cmd.Run(); os.Exit(0) }(); panic(http.ListenAndServe(\":8000\", http.FileServer(http.Dir(\".\")))) }" > tempserver.go && go run tempserver.go
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