Skip to content

Instantly share code, notes, and snippets.

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock

Keybase proof

I hereby claim:

  • I am peterdenham on github.
  • I am peter_denham (https://keybase.io/peter_denham) on keybase.
  • I have a public key ASCU4mXZRIWYy3vrvtCA8k6vywO9eDggu6BxypwyVXj0fAo

To claim this, I am signing this object:

{"layout":[[{"code":"29","locked":false,"ktm":2,"profiles":[{"default_fn":"0","default_fn1":"35","default_pn":"Light","default_bind":"29","bind":"29","fn":"35","fn1":"35","pn":"29","bind_macro":-1,"fn_macro":-1,"fn1_macro":-1,"pn_macro":-1},{"default_fn":"0","default_fn1":"35","default_pn":"Light","default_bind":"29","bind":"29","fn":"35","fn1":"35","pn":"35","bind_macro":-1,"fn_macro":-1,"fn1_macro":-1,"pn_macro":-1},{"default_fn":"0","default_fn1":"35","default_pn":"Light","default_bind":"29","bind":"29","fn":"35","fn1":"35","pn":"Macro","bind_macro":-1,"fn_macro":-1,"fn1_macro":-1,"pn_macro":10},{"default_fn":"0","default_fn1":"35","default_pn":"Light","default_bind":"29","bind":"29","fn":"35","fn1":"35","pn":"Macro","bind_macro":-1,"fn_macro":-1,"fn1_macro":-1,"pn_macro":-1}],"type":"1x1"},{"code":"14","locked":false,"ktm":3,"profiles":[{"default_fn":"F5","default_fn1":"3A","default_pn":"Light","default_bind":"14","bind":"14","fn":"F5","fn1":"3A","pn":"0","bind_macro":-1,"fn_macro":-1,"fn1_macro":-1,"pn_m
@peterdenham
peterdenham / Pok3r.kbd.json
Last active December 30, 2019 18:23
Pok3r
[
{
"name": "Pok3r",
"switchMount": "cherry"
},
[
"~\n`",
"!\n1",
"@\n2",
"#\n3",
# get the latest public ubuntu bionic image from aws using the aws ruby sdk
AWS::EC2.images(
executable_users: ['all'],
filters: [{name: 'name', values: ['ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*']}]
).max_by(&:creation_date)
@peterdenham
peterdenham / activerecord-model-joins.rb
Created June 7, 2019 19:23
Join on active record models
Quota.select('quota.*, reports.name').joins(:report)
Delayed::Job.group(:queue).count