Skip to content
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Handy bash commands for finding out stuff in Linux:
# Find CPU specifications
cat /proc/cpuinfo
# Find running kernel version
uname -r
# What compiler version do I have installed
gcc -v
gcc --version
PS1='\[\033[1;31m\]\W/\[\033[0m\] '
##### DEFAULTS #####
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
PROMPT_COLOR='35;1m'
export HISTCONTROL=ignoreboth
#!/bin/bash
#############################################################
# Setup Ubuntu 12.04 32/64 Natty Web Server for WordPress #
# by Zach Browne - http://zachbrowne.com #
#############################################################
## Setup SSH
mkdir ~/.ssh/
git clone git://github.com/imathis/octopress.git zachbrowne.github.io
cd zachbrowne.github.io
bundle install
rake install
rake setup_github_pages
rake generate
rake deploy
git init
git remote add origin https://github.com/zachbrowne/zachbrowne.github.com.git
git config branch.master.remote origin
# installing all the prerequisites
apt-get install -y openssh-server python-software-properties \
gnome-session-fallback \
ubuntu-desktop --no-install-recommends
# If you don't install the package gnome-session-fallback, when you
# will remote connect to your freenx pc, the freenx client will throw
# the error gnome-session-fallback not found and it will close the
# connection.
/* Home Contact
------------------------------------------------------------ */
#home-contact {
width: 100%;
background-color: #f1f1f1;
border-bottom: 1px solid #bbb;
clear: both;
margin: 0 auto;
overflow: hidden;
GRANT ALL ON DATABASE.* TO USER@'IP_ADDRESS' IDENTIFIED BY 'PASSWORD';
# Accompanies this blog post:
# http://www.seomoz.org/blog/htaccess-file-snippets-for-seos
# NOTE: This file isn't designed to be used all together, some of the rules will conflict,
# it is meant more as a copy and paste board.
# IMPORTANT: Make sure you test .htaccess changes thoroughly, as it can be easy to make mistakes
# and then you end up in a bad place!
RewriteEngine On
mysql -u root -p
CREATE DATABASE testing;
GRANT ALL PRIVILEGES ON testing.* TO test_user@localhost IDENTIFIED BY 'test_pass';
FLUSH PRIVILEGES;
Something went wrong with that request. Please try again.