Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew mcg

View GitHub Profile
@mcg
mcg / ublock
Created Sep 13, 2018 — forked from bazzargh/ublock
ublock rules for twitter misfeatures
View ublock
! Block friends favourited tweets
twitter.com##.tweet-has-context:not([data-retweeter])
! fake activity
twitter.com##li[data-component-context="generic_activity"]
! since you were away
twitter.com##.TimelineTweetsModule
! don't care what's trending
twitter.com##.trends.Trends.module
@mcg
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:

tmux

start new with session name:

tmux new -s myname
@mcg
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
(interactive
(list
(let ((s (concat
(cond
(current-prefix-arg
(let ((arg (prefix-numeric-value current-prefix-arg)))
(cond ((< arg 0) (setq arg (1+ arg)))
View keybase.md

Keybase proof

I hereby claim:

  • I am mcg on github.
  • I am amblin (https://keybase.io/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
mcg / ppacurrent
Last active Dec 14, 2015
Are my PPA's current? Now with color
View ppacurrent
!/bin/bash
#read distro from option
dist=$1
#if option is missing, use /etc/lsb-release
if [[ ${dist} = "" ]]
then
dist=$(grep "DISTRIB_CODENAME" /etc/lsb-release | cut -f 2 -d"=")
fi
View ideal ops.md

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

Documentation

  • 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)