Skip to content

Instantly share code, notes, and snippets.

@jimbert
jimbert / set_resolution.sh
Created July 28, 2020 17:34
Set custom screen resolutions
#!/usr/bin/env bash
# Sets custom screen resolution using xrandr and gtf.
# Usage: sh set_resolution.sh <x_resolution> <y_resolution> <refresh_rate>
# 1080p: sh set_resolution.sh 1920 1080 60
# 1440p: sh set_resolution.sh 2560 1440 60
# Pixelbook: sh set_resolution.sh 2400 1600 60
xres=$1
yres=$2
@jimbert
jimbert / gist:843acf4c2cacce10fc5f4bd9f9657929
Created August 30, 2017 04:35
hurricane harvey 8/29/17 affected postcodes
70001
70002
70003
70004
70005
70006
70009
70010
70011
70030
@jimbert
jimbert / fix_apple_touch_bar.sh
Last active February 22, 2017 23:43
Fix apple touch bar when it stops working
# fix the fucking touch bar
# Stick this in your zshrc or bash_profile and call it when
# basic computer controls stop working for no good reason.
function ftftb {
pkill "Touch Bar agent"
killall ControlStrip
}
@jimbert
jimbert / keybase.md
Created January 15, 2016 17:50
keybase.md

Keybase proof

I hereby claim:

  • I am jimbert on github.
  • I am jimbert (https://keybase.io/jimbert) on keybase.
  • I have a public key ASA2vh_DMy4tG58q-aN4tQdgghdjQg80SXp868C8MjdB0Ao

To claim this, I am signing this object: