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
# 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 |
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
GRANT ALL ON DATABASE.* TO USER@'IP_ADDRESS' IDENTIFIED BY 'PASSWORD'; |
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
/* Home Contact | |
------------------------------------------------------------ */ | |
#home-contact { | |
width: 100%; | |
background-color: #f1f1f1; | |
border-bottom: 1px solid #bbb; | |
clear: both; | |
margin: 0 auto; | |
overflow: hidden; |
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
sudo apt update && sudo apt -y upgrade | |
sudo apt install software-properties-common python-software-properties | |
sudo apt update | |
sudo apt-add-repository -y ppa:x2go/stable ppa:freenx-team/ppa ppa:ubuntu-mate-dev/ppa ppa:ubuntu-mate-dev/trusty-mate | |
sudo apt update | |
sudo apt install install gnome-session-fallback mate-desktop-environment-extras freenx freenx-server | |
# download the installation script | |
wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz | |
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
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 |
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
#!/bin/bash | |
############################################################# | |
# Setup Ubuntu 12.04 32/64 Natty Web Server for WordPress # | |
# by Zach Browne - http://zachbrowne.com # | |
############################################################# | |
## Setup SSH | |
mkdir ~/.ssh/ |
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
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 |
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
Handy bash commands for finding out stuff in Linux: | |
# Clean up webserver permissions | |
find /var/www/* -type d -exec chmod 755 {} \; && find /var/www/* -type f -exec chmod 644 {} \; && chown -R www-data:www-data /var/www/* | |
# Add User and Add to Sudo | |
adduser zach | |
usermod -a -G sudo exampleuser | |
# Find CPU specifications |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
sudo apt-add-repository ppa:ubuntu-mate-dev/ppa | |
sudo apt-add-repository ppa:x2go/stable | |
sudo apt-get update | |
sudo apt-get install mate-desktop-environment | |
sudo apt-get install x2goserver x2goserver-xsession | |
login with root or user credentials |