Skip to content

Instantly share code, notes, and snippets.

View ralph-tice's full-sized avatar

Ralph Tice ralph-tice

  • Kentik
  • Texas
View GitHub Profile
@ralph-tice
ralph-tice / input.json
Last active January 11, 2017 09:23
updating a json array via jq
{ "arr" : [
{ "id": 3, "bar": "x", "fum": 3.14 },
{ "id": 77, "bar": "y", "fum": 0 },
{ "id": 9, "bar": "z", "fum": -1 }
]
}
@ralph-tice
ralph-tice / gist:43dfb1ecc8fbc38b8b040fa68a0d32ce
Created July 16, 2017 19:06
docker pull concurrency triage from 2015-07
amazon linux kernel notes -- aufs support -- docker pull concurrency problem
# first hint of a custom AMI for ECS
# https://forums.aws.amazon.com/ann.jspa?annID=2805
# launched with 100gb gp2
aws ec2 run-instances --instance-type c4.xlarge --key-name ralph.tice --image-id ami-8da458e6 --subnet-id subnet-880a3fb2 --security-group-ids sg-ff2f1f9b --block-device-mappings "[{\"DeviceName\":\"/dev/xvda\",\"Ebs\":{\"DeleteOnTermination\":true,\"SnapshotId\":\"snap-f6edf1be\",\"VolumeSize\":100,\"VolumeType\":\"gp2\"}}]"
https://forums.aws.amazon.com/thread.jspa?messageID=628676&#628676
@ralph-tice
ralph-tice / keybase.md
Created October 2, 2017 09:28
Keybase proof

Keybase proof

I hereby claim:

  • I am ralph-tice on github.
  • I am gazarsgo (https://keybase.io/gazarsgo) on keybase.
  • I have a public key ASBHl_ZAboO_cf-Y6BZ33N3o6UOIxpwT6E33ZwkiyI8O2wo

To claim this, I am signing this object:

@ralph-tice
ralph-tice / README.md
Last active November 21, 2017 02:46 — forked from ningsuhen/README.md
Solarized Light Theme for CoderPad.io - inject the css via Chrome without browser extension

Many companies use coderpad.io for interviews and if you have eye strain with the monokai theme (dark background), you can change the theme on your browser by injecting the css.

##Installation Open coderpad.io editor and inject contents of the style.css above. Open inspect via right click and edit the body block as HTML, then paste in the contents of style.html as its own element inside

@ralph-tice
ralph-tice / gist:8c229ad491261d23cdc0c076201ec471
Created January 23, 2018 01:22
amazon linux kernel notes -- aufs support
# launched with 100gb gp2
aws ec2 run-instances --instance-type c4.xlarge --key-name ralph.tice --image-id ami-8da458e6 --subnet-id subnet-880a3fb2 --security-group-ids sg-ff2f1f9b --block-device-mappings "[{\"DeviceName\":\"/dev/xvda\",\"Ebs\":{\"DeleteOnTermination\":true,\"SnapshotId\":\"snap-f6edf1be\",\"VolumeSize\":100,\"VolumeType\":\"gp2\"}}]"
https://forums.aws.amazon.com/thread.jspa?messageID=628676&#628676
sudo bash
/usr/bin/get_reference_source -p kernel-$(uname -r)
/usr/sbin/useradd mockbuild