Skip to content

Instantly share code, notes, and snippets.


Matthew mcg

View GitHub Profile
mcg / ublock
Created Sep 13, 2018 — forked from bazzargh/ublock
ublock rules for twitter misfeatures
View ublock
! Block friends favourited tweets[data-retweeter])
! fake activity[data-component-context="generic_activity"]
! since you were away
! don't care what's trending
mcg / tmux-cheatsheet.markdown
Created Oct 24, 2017 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
mcg / evil.el
Created Oct 6, 2017 — forked from gilbertw1/evil.el
disable region limiting in evil-ex
View evil.el
(evil-define-command evil-ex (&optional initial-input)
:keep-visual t
:repeat abort
(let ((s (concat
(let ((arg (prefix-numeric-value current-prefix-arg)))
(cond ((< arg 0) (setq arg (1+ arg)))

Keybase proof

I hereby claim:

  • I am mcg on github.
  • I am amblin ( on keybase.
  • I have a public key whose fingerprint is CF0A 5574 3D5A 7DDD 2E63 8E81 7446 E32F 51B7 605C

To claim this, I am signing this object:

mcg / ppacurrent
Last active Dec 14, 2015
Are my PPA's current? Now with color
View ppacurrent
#read distro from option
#if option is missing, use /etc/lsb-release
if [[ ${dist} = "" ]]
dist=$(grep "DISTRIB_CODENAME" /etc/lsb-release | cut -f 2 -d"=")
View ideal

In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:


  • Accurate / up-to-date systems architecture diagram

  • Accurate / up-to-date network diagram

  • Out-of-hours support plan

  • Incident management plan

View gist:1212431
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON)