This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# !!! This script assumes that the device needing to be formatted and encrypted is /dev/sdb | |
# !!! Also... be sure to copy and store the generated encryption key file from /root | |
# Note that the secondary drive will be mounted at /var/lib/mongodb, | |
# ... which is the default location for MongoDB data files on Ubuntu and Mongo at least v2.6 | |
# add PPA for mongodb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. download zip from https://launchpad.net/kazam | |
# 2. extract into target folder | |
# install prerequisites (works on Fedora 21 with Python 3) | |
sudo yum install python3-distutils-extra python3-dbus intltool | |
# run the included setup from within the unzipped folder | |
sudo python3 setup.py install | |
# Done! Can start with either `kazam` command or find Kazam in the menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This grub.cfg file was created by Jamie Kurtz | |
# Detailed instructions for use will soon be found here: http://www.jamiekurtz.com | |
# Simplified instructions below | |
# Sample grub entries... https://wiki.archlinux.org/index.php/Multiboot_USB_drive | |
# Inspiration from here: http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/ | |
# Simplified instructions... | |
# Make sure grub, grub-efi, and xorriso packages are installed and up-to-date | |
# In your terminal go to directory where want to create the USB image contents | |
# Run the following to create the necessary folder structure: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vim clipboard integration in Debian/Ubuntu | |
sudo apt-get remove vim | |
sudo apt-get install vim-gtk | |
echo "set clipboard=unnamedplus" >> ~/.vimrc | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install NodeJS and related on Ubuntu without requiring sudo on subsequent "npm -g" installs | |
# Went this direction when certain packages where trying to update global files owned by root... | |
# ... since the global packages were installed with sudo | |
# if using Vagrant, recommend to set "privileged: false" on the provisioning script where this code resides | |
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - | |
sudo apt-get -y install git nodejs build-essential | |
mkdir -p ~/.npm_packages | |
npm set prefix $HOME/.npm_packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# some exports needed for this script | |
# ... don't forget to export these to ~/.bashrc later! | |
export NPM_PACKAGES=~/.npm_packages | |
export NODE_PATH=$NPM_PACKAGES/lib/node_modules | |
export ANDROID_HOME=~/android-sdk-linux | |
export PATH=$PATH:$NPM_PACKAGES/bin:$NODE_PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools | |
# Install and configure NodeJS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Don't forget to add the following to app start-up: log4net.Config.XmlConfigurator.Configure(); --> | |
<log4net> | |
<appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | |
<file type="log4net.Util.PatternString" value="..\\..\\logs\\logfilename.log" /> | |
<appendToFile value="true" /> | |
<maxSizeRollBackups value="-1" /> | |
<countDirection value="1" /> | |
<maximumFileSize value="10MB" /> | |
<rollingStyle value="Composite" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is used to install Docker onto a new Ubuntu 14.04 (Trusty) server on AWS EC2 | |
# (as of 12/4/2015) | |
# Assumes current user is ubuntu | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo adduser --disabled-password newuser | |
sudo su - newuser | |
mkdir .ssh | |
chmod 700 .ssh | |
touch .ssh/authorized_keys | |
chmod 600 .ssh/authorized_keys | |
# then copy in public key | |
# to add new user to sudo group | |
sudo adduser newuser sudo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
DEVICE=/dev/xvdf | |
FOLDER=/data/stuff | |
sudo mkfs -t ext4 $DEVICE | |
sudo mkdir -p $FOLDER | |
echo "$DEVICE $FOLDER ext4 defaults,nofail 0 2" | sudo tee --append /etc/fstab > /dev/null | |
sudo mount -a |
OlderNewer