Skip to content

Instantly share code, notes, and snippets.


Adam Simpson asimpson

View GitHub Profile
View simpson-ruby-version.el
;;; 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 ( on keybase.
  • I have a public key ASDgOryyIL9n4rIPpgSduNKI6R9whC2uep-Xxkgs0P7vFwo

To claim this, I am signing this object:

View *new*<8>.txt
accounts = sb, fast
maxsyncaccounts = 2
[Account sb]
localrepository = sb_local
remoterepository = sb_remote
maxage = 2012-03-02
postsynchook = mu index -m ~/Mail
View ps.txt
root 1631 1 0 09:24 ? 00:00:00 /sbin/dhclient -1 -v -pf /run/ -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
View ipas.txt
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 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
View ifconfig.txt
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 netmask
View dmesg
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
View output.txt
01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
Subsystem: Intel Corporation Gigabit CT Desktop Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66Mhhz- UDF- FastB2B- ParErr- DEVSEL=fast > TAbort - <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interupt: pin A routed to IRQ 22
Region 0: Memory at 912c0000 (32-bit, non-prefetchable) [size=128k]
Region 1: Memory at 9120000 (32-bit, non-prefetchable) [size=128k]
Region 2: I/O ports at e000 [size=32]
Region 3: Memory at 91280000 (32-bit, non-prefetchable) [size=16k]
View emacs-lite.el
;; -*- lexical-binding: t; -*-
(setq gc-cons-threshold 64000000)
(add-hook 'after-init-hook (lambda ()
;; restore after startup
(setq gc-cons-threshold 800000)))
(require 'package)
(add-to-list 'package-archives '("melpa" . ""))
You can’t perform that action at this time.