This file contains hidden or 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
#Mongo Install | |
#https://jira.mongodb.org/browse/SERVER-18329 | |
echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
apt-get update | |
apt-get install -y mongodb-org-server | |
apt-get install -y mongodb-org | |
#Node.js install | |
#https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager |
This file contains hidden or 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
// It is important to declare your variables. | |
(function() { | |
var foo = 'Hello, world!'; | |
print(foo); //=> Hello, world! | |
})(); | |
// Because if you don't, the become global variables. | |
(function() { |
This file contains hidden or 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
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/vimfiles/bundle/vundle/ | |
set runtimepath+=~/vimfiles/bundle/vundle/ | |
call vundle#rc() | |
"" Vundle plugins | |
"" |
This file contains hidden or 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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains hidden or 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 | |
# Utility to change the connection method for a git repo. | |
# === Colour Definitions === | |
red='\e[0;31m' | |
green='\e[0;32m' | |
purple='\e[0;35m' | |
orange='\e[0;33m' | |
# No Color, i.e. turn off color |
This file contains hidden or 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
#bash command line snippets | |
#more snippets http://www.commandlinefu.com/commands/browse |
This file contains hidden or 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
# dns | |
# 8.8.8.8 | |
# 4.2.2.2 | |
# ntp server | |
# time.nist.gov | |
# ntp.nasa.gov | |
#https://www.youtube.com/watch?v=-AK3nauKUw0 | |
#http://www.dedoimedo.com/computers/xen-xenserver-local-iso-repo.html |
This file contains hidden or 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
echo "set nocp" >> .vimrc | |
apt-get install sudo | |
##edit sudoers file |
This file contains hidden or 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
http://www.dev-metal.com/super-simple-vagrant-lamp-stack-bootstrap-installable-one-command/ | |
---- | |
#http://www.dev-metal.com/useful-basic-linux-stuff-show-kernel-version-distribution-name-and-distribution-version-on-ubuntu-12-04/ | |
Show kernel version: | |
uname -r | |
Show kernel version and CPU: |
This file contains hidden or 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
https://speakerdeck.com/62gerente/bash-introduction | |
command line utils | |
https://en.wikipedia.org/wiki/Template:Unix_commands | |
https://en.wikipedia.org/wiki/List_of_Unix_commands | |
Sudoers | |
http://ubuntuforums.org/showthread.php?t=1132821 | |
simple ubuntu LAMP |