Skip to content

Instantly share code, notes, and snippets.

View sammcj's full-sized avatar
🦃

Sam sammcj

🦃
View GitHub Profile
@sammcj
sammcj / config.yaml
Last active February 27, 2016 09:40
beets config.yaml
# ~ % cat ~/.config/beets/config.yaml
directory: /Volumes/2TB_RAID/music
library: ~/beetslibrary.blb
import:
copy: no
move: yes
plugins:
fromfilename
ftintitle

Keybase proof

I hereby claim:

  • I am sammcj on github.
  • I am smcleod (https://keybase.io/smcleod) on keybase.
  • I have a public key ASAX-BhAfk5HfUoHaweUY_zBtOAE_57pNFyW-uS4jONuyAo

To claim this, I am signing this object:

#!/usr/bin/perl -w
use strict;
use Cwd;
use Digest::MD5 qw(md5);
use Dumpvalue;
use File::Compare qw(compare);
use File::Copy qw(cp);
use File::Find;
use File::Temp qw(tempfile);
@sammcj
sammcj / openconnect.md
Last active September 22, 2015 07:55 — forked from moklett/openconnect.md
OpenConnect VPN on Mac OS X

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
    

brew install openconnect

@sammcj
sammcj / DO_DONT.md
Last active August 29, 2015 14:28
THINGS I DO AND DONT LIKE
DO DONT
Go Java
Ruby Windows 8
Elasticsearch Windows 10
OSX El Capitan Debian 8
1Password OSX Yosemite
CentOS 7 CentOS 6
Etsy NodeJS
Plex NPM
@sammcj
sammcj / Macbook Pro For Sale.md
Last active August 29, 2015 14:27
Macbook Pro For Sale.md

I have a custom built-to-order top-spec 15'' Macbook Pro for sale.

It's the top of the i7 model (purchased in mid 2011) and has a brand new motherboard, CPU and graphics card just installed from Apple along with a full diagnostics test with clean bill of health.

  • It's been upgraded to 16GB of RAM.
  • Upgraded to a top-of-the-line 512GB SSD installed
  • Second 1TB hard drive installed along side the SSD.
  • Dual graphics cards with the upgraded dedicated Radeon 6770 gaming / graphics design processor.
  • The optional higher-resolution matte screen from Apple's built to order options.
  • Fresh install of the latest OSX 10.11 (Beta) or OSX Yosemite.
@sammcj
sammcj / sams-fio-tests.md
Last active August 29, 2015 14:27
sams-fio-tests.fio

pm-san NVMe iSCSI LUN attached to VM on the Haswell Pool

No VM-side tuning has taken place, MTU is still 1500, some more iSCSI tuning to be done.

randread4k: (groupid=0, jobs=1): err= 0: pid=23728
  read : io=15196MB, bw=259333KB/s, iops=64831 , runt= 60003msec
  cpu          : usr=4.71%, sys=26.66%, ctx=886793, majf=0, minf=133
  IO depths    : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=115.1%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
@sammcj
sammcj / ssd_cluster_perf1.md
Last active August 29, 2015 14:25
ssd_cluster_perf1.md

67,300 read IOP/s on a VM on iSCSI

  • (Disk -> LVM -> MDADM -> DRBD -> iSCSI target -> Network -> XenServer iSCSI Client -> VM)
  • Per VM and scales to 1,000,000 IOP/s total
root@dev-samm:/mnt/pmt1 128 # fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=128 --size=2G --readwrite=read
test: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=128
2.0.8
Starting 1 process
bs: 1 (f=1): [R] [55.6% done] [262.1M/0K /s] [67.3K/0  iops] [eta 00m:04s]
@sammcj
sammcj / dead_samsung.md
Last active August 29, 2015 14:25
39DEAD78

This memory module is faulty.

Funny thing: Serial number contains the word DEAD

Handle 0x005D, DMI type 17, 34 bytes
Memory Device
	Array Handle: 0x005C
	Error Information Handle: Not Provided
@sammcj
sammcj / st2_deploy
Created July 20, 2015 07:20
st2_deploy
root@dev-samm:~ # apt-get install winexe
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation: