Skip to content

Instantly share code, notes, and snippets.

@anasdox
anasdox / config.yml
Created November 3, 2015 12:52 — forked from pkuczynski/parse_yaml.sh
Read YAML file from Bash script
development:
adapter: mysql2
encoding: utf8
database: my_database
username: root
password:
@anasdox
anasdox / lxc-install
Created June 15, 2015 22:23
Install lxc in ubuntu 14.04
apt-get install emacs24-nox
add-apt-repository ppa:ubuntu-lxc/daily
apt-get update
apt-get upgrade
mkdir /home/containers
ln -s /home/containers /var/lib/lxc
sudo apt-get install lxc
sed -i -e "s/locale-gen en_US.UTF-8 UTF-8/locale-gen fr_FR.UTF-8/g" /usr/share/lxc/templates/lxc-debian
sed -i -e "s/update-locale LANG=en_US.UTF-8/update-locale LANG=fr_FR.UTF-8/g" /usr/share/lxc/templates/lxc-debian
sed -i -e "s/update-locale LANG=en_US.UTF-8/update-locale LANG=fr_FR.UTF-8/g" /usr/share/lxc/templates/lxc-ubuntu