Skip to content

Instantly share code, notes, and snippets.

View asimpson's full-sized avatar

Adam Simpson asimpson

View GitHub Profile
@asimpson
asimpson / _mixins.scss
Created September 17, 2012 21:14 — forked from robtarr/_mixins.scss
SASS Mixin with keyword font-size fallback
@mixin font-size( $decimal-size, $keyword: null ) {
@if $keyword{ font-size: $keyword; }
@else { font-size: $decimal-size * $base-font-multiplier * 16px;}
font-size: $decimal-size * 1rem;
}

Test

The first beta release of Forge is finally out. "Work with Git forges, such as Github and Gitlab, from the comfort of Magit and the rest of Emacs." https://t.co/Mp9sYl0jjc— Jonas Bernoulli (@magit_emacs) December 19, 2018

;;; simpson-ruby-version.el --- Function that reads .ruby-version and sets the $PATH correctly for processes inside emacs.
;;; Commentary:
;; This is a function that can be M-x whenever you change projects that require a different version of Ruby.
;; I assume you use projectile to manage projects within Emacs.
;;; Code:
(require 'projectile)
(require 'f)

Keybase proof

I hereby claim:

  • I am asimpson on github.
  • I am a_simpson (https://keybase.io/a_simpson) on keybase.
  • I have a public key ASDgOryyIL9n4rIPpgSduNKI6R9whC2uep-Xxkgs0P7vFwo

To claim this, I am signing this object:

@asimpson
asimpson / bash_function
Created October 31, 2012 18:51
This little script sets up a custom domain in MAMP and your hosts file.
function vhost {
sudo ~/.dotfiles/osx/mamp_vh.sh $1
}
[general]
accounts = sb, fast
maxsyncaccounts = 2
[Account sb]
localrepository = sb_local
remoterepository = sb_remote
maxage = 2012-03-02
postsynchook = mu index -m ~/Mail
root 1631 1 0 09:24 ? 00:00:00 /sbin/dhclient -1 -v -pf /run/dhclient.enp1s0.pid -lf /var/lib/dhcp/dhclient.enp1s0.leases -I -df /var/lib/dhcp/dhclient6.enp1s0.leases enp1s0
root 2283 2270 0 09:39 tty1 00:00:00 grep --color=auto dhcp
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 70:85:c2:4b:68:0a brd ff:ff:ff:ff:ff:ff
3: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 00:1b:21:39:ed:64 brd ff:ff:ff:ff:ff:ff
np1s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:1b:21:39:ed:64 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 22 memory 0x912c0000-912e0000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
@asimpson
asimpson / dmesg
Last active April 19, 2018 03:03
r8169 0000:02:00.0 eth0: RTL8168g/8111g at 0xffffc158803da000, 70:85:c2:4b:68:0a, XID 0c000800 IRQ 369
r8169 0000:02:00.0 ether0: jumbo features [frames: 9200 bytes, tx checksuming: ko]
e1000e 0000:01:00.0 eth1: (PCI Express:2.5GT/s:Width x1) 00:1b:21:39:ed:64
e1000e 0000:01:00.0 eth1: Intel(R) PRO/1000 Network Connection
e1000e 0000:01:00.0 eth1: MAC: 3, PHY: 8, PBA No: E42641-005
r8169 0000:02:00.0 enp2s0: renamed from eth0
e1000e 0000:01:00.0 enp1s0: renamed from eth1