Skip to content

Instantly share code, notes, and snippets.

@ttekun
ttekun / ec2-nvme-count.txt
Created October 12, 2021 05:34 — forked from prasanthj/ec2-nvme-count.txt
Mount NVMe SSDs in AWS EC2 instances
Mount Separately
----------------
# mount nvme SSDs to /dataN when available for specific instance types
# There are only 4 nvme slots in r5 instances. /dev/nvme0n1 is root EBS volume.
for i in $(seq 1 4); do
if [ -e "/dev/nvme${i}n1" ]
then
echo "Mounting /dev/nvme${i}n1 to /data${i}"
sudo mkfs.ext4 -E nodiscard /dev/nvme${i}n1
sudo mkdir -p /data${i}
@ttekun
ttekun / spring-boot-testing.md
Created December 11, 2017 05:09 — forked from michaellihs/spring-boot-testing.md
Spring Boot Testing

Spring Boot Testing

Using Configuration in Tests

The following snippets loads the application context with the configuration given in TestConfiguration.class

@RunWith(SpringRunner.class)
@ttekun
ttekun / update-docker-on-ubuntu.md
Created January 5, 2017 04:08
Update docker on ubuntu(trusty64)
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list"
sudo aptitude update
sudo aptitude install lxc-docker
@ttekun
ttekun / a-manual.md
Last active November 26, 2016 18:56
Create Oracle XE(CentOS) docker image within 10 minutes

Create Oracle XE(CentOS) docker image within 10 minutes

  1. vagrant up (coreos-vagrant)
$ git clone https://github.com/coreos/coreos-vagrant.git
$ cd coreos-vagrant
$ vagrant up
$ vagrant ssh
@ttekun
ttekun / gist:58e2eedbfb2d94db1ec3480a1f5201a6
Created June 29, 2016 05:41 — forked from bigsnarfdude/gist:b2eb1cabfdaf7e62a8fc
ubuntu 14.04 install scala 2.11.7 and sbt 13.9 and java 8 and git
# scala install
wget www.scala-lang.org/files/archive/scala-2.11.7.deb
sudo dpkg -i scala-2.11.7.deb
# sbt installation
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update
sudo apt-get install sbt