Skip to content

Instantly share code, notes, and snippets.

View mcg's full-sized avatar

Matthew Gregg mcg

  • Modern Message
  • Summerville SC
View GitHub Profile
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON)

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

@mcg
mcg / ppacurrent
Last active December 14, 2015 15:58
Are my PPA's current? Now with color
!/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

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 / evil.el
Created October 6, 2017 19:55 — forked from gilbertw1/evil.el
disable region limiting in evil-ex
(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)))
@mcg
mcg / tmux-cheatsheet.markdown
Created October 24, 2017 18:47 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@mcg
mcg / ublock
Created September 13, 2018 17:02 — forked from bazzargh/ublock
ublock rules for twitter misfeatures
! 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