Skip to content

Instantly share code, notes, and snippets.

# Run these commands as your normal login (e.g. "michael")
# Remove any existing versions of nginx
sudo apt-get remove '^nginx.*$'
# Add nginx repo to sources.list
cat <<'EOF' | sudo tee -a /etc/apt/sources.list
deb http://nginx.org/packages/ubuntu/ precise nginx
deb-src http://nginx.org/packages/ubuntu/ precise nginx
EOF
# Install RVM
\curl -s -S -L https://get.rvm.io | bash -s stable
. ~/.bash_profile
cat ~/.bash_profile >> ~/.profile
rm ~/.bash_profile
rvm --autolibs=read-fail requirements
#!/usr/bin/env bash
rm /etc/sudoers.new
cp /etc/sudoers /etc/sudoers.new
echo "discourse ALL=(ALL:ALL) ALL" >> /etc/sudoers.new
cp /etc/sudoers.new /etc/sudoers
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#------------------------#
#DISCOURSE INSTALL DOCKER#
#------------------------#
FROM ubuntu
@tad124737337
tad124737337 / public
Created December 18, 2013 12:17
My Pub key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+CplsmiLlLzv432y5FD4vQugqsE65pTCcqRIledrLgtsHrLyG8A/aeUhN+lYMSyRZF1yvJgYzxHCct5bDide78G46mFG0al1U082+tSPAnkexP/DKFCDuVZSeuuvpD4W+zxxdhPTGoshcoMw7862m5vstMUCcJoSBXrqBZ2zmnmKWM0HoNGuPjQDrebaUd6fNKcGT5YfSB+ItJAN3wGNdLNG3GzN7NN7xhmH59GaAfPXYzRBq5Oees0c87qHphTiHzUzKP1X9sY39aqy6wGccNjhK2g6Jee2LYSyUcQL8C5gEsag3aA3PAj4hzM/9DyjiIsD79p/IukAnL/woJS8V tom@mozilla.org.uk
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIeivS/H5byWD9R1E3ywUQrsXJQyTDtwrGpbWI2N5/dIeF3/l1wE5Pr/SLpOzkZd8uS8fG7YY32ryO0hk26z+G82E/W8POfqwQT4zmmdJQyakSJS1VZkkmiwpvgczO2ZFbhVMKFUodmtMNdxVYp3qdLhk1erHL5K2WL5gFD7AoTY3OfBHIAZZhjokMrUGkq5yUj7QSEXTuiEUlG992Xyk3m7M/OG/FOWqglKKFv0/LZ97tyfS7wnQXbLHHZ6XMDn9poT9sgRe5okpkKl/nXv72y89qko5KInPRMuotmZpdootRTIV8jUnp9KZRdspTmmd0zgMsTv0aLLh0nKMDGhbj tom@mozilla.org.uk
[root@ns368374 ~]# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
take a file formatted as:
username passwordhash
search /etc/passwd for username
replace line containing username with
username:passwordhash:10000:0:99999:7:::
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6t/VuZh2K3v+BYmkkON0hXkZsejBboI66MKTxjtcag8lE/RkfRRkPVwO6qnDnJtHLvJc8ZMHlY/qYJYv1bjbKbd5Tt8GT0O3NxgX8F4q7I6xmAw7BBUXbgSt5TXlfZvKn6+oKLA7k275Yl2DvDRKybGJbka2hvF5j9/sgmFEWDEUOQ82botZJDoa3DBY6pInUb6/k/x/Y8AGxVeVIlZ6uok9WAXN6ymZx8eyjtWi6XwRaRwpOevpVKP34MWudjy6BUr+kau4N3WAE+yL5v3q4qSaLLXSRbCAeKQMqRYvcJk2xvruWLSiqg8A6UQ1jp0FFTFzOwJQeWczIvwZTTZBT yousef@mozilla.org.uk
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post