Skip to content

Instantly share code, notes, and snippets.

View rkennesson's full-sized avatar
:octocat:
I may be slow to respond.

Richard Kennesson rkennesson

:octocat:
I may be slow to respond.
View GitHub Profile
#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
// 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() {
@rkennesson
rkennesson / .vimrc
Last active August 29, 2015 14:26 — forked from mhahl/.vimrc
$MYVIMRC
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/vimfiles/bundle/vundle/
set runtimepath+=~/vimfiles/bundle/vundle/
call vundle#rc()
"" Vundle plugins
""
@rkennesson
rkennesson / nginx.conf
Last active August 29, 2015 14:26 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@rkennesson
rkennesson / git-change-url
Last active August 29, 2015 14:26 — forked from sankalp-khare/git-change-url
Changes the git url type from https to ssh or vice versa
#!/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
@rkennesson
rkennesson / bash.sh
Last active August 29, 2015 14:26
Bash Snippets
#bash command line snippets
#more snippets http://www.commandlinefu.com/commands/browse
@rkennesson
rkennesson / xenserver.sh
Last active August 29, 2015 14:26
xenserver setup commands
# 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
@rkennesson
rkennesson / setup.sh
Created August 1, 2015 01:18
setup debian
echo "set nocp" >> .vimrc
apt-get install sudo
##edit sudoers file
@rkennesson
rkennesson / info.txt
Last active August 29, 2015 14:26
vagrant setup
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:
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