Skip to content

Instantly share code, notes, and snippets.

View nathankellenicki's full-sized avatar

Nathan Kellenicki nathankellenicki

View GitHub Profile
@nathankellenicki
nathankellenicki / ubuntu-kernel-4.14.11.sh
Last active January 4, 2018 14:55
Upgrading Ubuntu 16.04 to Kernel 4.14.11 for Meltdown/Spectre
#!/bin/bash
mkdir kernel
cd kernel
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.11/linux-headers-4.14.11-041411-generic_4.14.11-041411.201801022143_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.11/linux-image-4.14.11-041411-generic_4.14.11-041411.201801022143_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.11/linux-headers-4.14.11-041411_4.14.11-041411.201801022143_all.deb
sudo dpkg -i *.deb
cd ..
rm -rf kernel
sudo reboot now
@nathankellenicki
nathankellenicki / Dockerfile.template
Created November 16, 2016 19:17
Cassandra 3.9 with Stratio Lucene secondary indices Dockerfile
FROM cassandra:3.9
RUN apt-get update && \
apt-get install -y wget git-core maven ca-certificates && \
/var/lib/dpkg/info/ca-certificates-java.postinst configure
RUN wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u71-b15/jdk-8u71-linux-x64.tar.gz && \
mkdir /opt/jdk && \
tar -zxf jdk-8u71-linux-x64.tar.gz -C /opt/jdk/ && \
rm jdk-8u71-linux-x64.tar.gz && \
@nathankellenicki
nathankellenicki / keybase.io
Created February 26, 2015 23:33
Keybase.io Verification
### Keybase proof
I hereby claim:
* I am nathankunicki on github.
* I am nathankunicki (https://keybase.io/nathankunicki) on keybase.
* I have a public key whose fingerprint is 8A9B ABD6 C7D3 D390 C57C 7608 9083 521A CC71 CB15
To claim this, I am signing this object:
@nathankellenicki
nathankellenicki / jump.sh
Created August 19, 2013 20:53
A very small utility to mark and jump between local directories. Copypasta into your .bash_profile (I can't take credit for this, though I also can't find where I originally found it. I've made a few modifications.)
export MARKPATH=$HOME/.marks
function jump {
cd -P $MARKPATH/$1 2>/dev/null || echo "No such mark: $1"
}
function mark {
mkdir -p $MARKPATH; ln -s "$(pwd)" $MARKPATH/$1
}
function unmark {
rm -i $MARKPATH/$1
}