Skip to content

Instantly share code, notes, and snippets.

Matt Freer mattfreer

  • Birmingham, UK
Block or report user

Report or block mattfreer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jon
jon / Solarized Dark (Sierra).terminal
Created Apr 22, 2017
Solarized Dark Theme with sRGB Colors for OS X Sierra
View Solarized Dark (Sierra).terminal
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGKyxYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKcHCBMZHSQoVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECkwLjAyNzQ1MDk4
MDM5IDAuMjExNzY0NzA1OSAwLjI1ODgyMzUyOTQgMU8QJzAuMDM5MzgwNzM2NjUgMC4x
@d11wtq
d11wtq / docker-ssh-forward.bash
Created Jan 29, 2014
How to SSH agent forward into a docker container
View docker-ssh-forward.bash
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash
@sfate
sfate / gist:6411512
Created Sep 2, 2013
String interpolation in ruby style
View gist:6411512
String.prototype.format = function() {
var i = -1, args = arguments;
return this.replace(/#\{(.*?)\}/g, function(one, two) {
return (typeof args[0] == 'object')?args[0][two]:args[++i];
});
}
console.log("#{value}".format({value: "howdy, #{username}".format('sfate')}))
@xmcgyver
xmcgyver / vimp.sh
Created Sep 1, 2010
vimp = vi + pimp (allows vi to open a file from a grep search at the specified line number from the search result)
View vimp.sh
#!/bin/bash
# vimp = vi + pimp (allows vi to open a file from a grep search at the specified line number from the search result)
# (example usage -> prompt$ vimp /etc/hosts:23)
# tested on OS X 10.6 only
x="$1"
y=`basename $1`
# if colon in param
if [[ $y == *:* ]]
You can’t perform that action at this time.