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 | |
################################################################ | |
# Harden & Optimize Apache for Ubuntu 11.10 64bit Web Server # | |
# by Zach Browne - http://zachbrowne.com # | |
################################################################ | |
# Update system | |
aptitude update && aptitude -y safe-upgrade |
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 | |
########################################################## | |
# Fix Apache Security for Ubuntu 11.10 64bit Web Server # | |
# by Zach Browne - http://zachbrowne.com # | |
########################################################## | |
USERNAME=zach # Change to your username | |
USER_ID=www-data # Change if needed | |
USER_GROUP=www-data # Change if needed |
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 | |
############################################################### | |
# Static Networking Setup for Ubuntu 12.04 64bit Web Server # | |
# by Zach Browne - http://zachbrowne.com # | |
############################################################### | |
# Replace these variables with your own | |
HOSTNAME=apollo # Ex. server, dev or zeus |
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 | |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
set diffexpr=MyDiff() | |
function MyDiff() | |
let opt = '-a --binary ' | |
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif | |
let arg1 = v:fname_in |
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
<?php | |
/********************************************** | |
*** Contents of custom_functions.php file. *** | |
********************************************** | |
* 1. favicon * | |
* 2. menu * | |
* 3. remove sidebar on single posts * | |
* 4. bylines with the 'author' microformat* | |
* 5. adds continue reading * |
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
/********************************************** | |
*** Contents of custom.css file. *** | |
********************************************** | |
* 1. fonts * | |
* 2. body * | |
* 3. page * | |
* 4. header area * | |
* 5. text * | |
* 6. menu * | |
* 7. content area * |
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
127.0.0.1 localhost | |
127.0.0.1 3dns.adobe.com | |
127.0.0.1 3dns-1.adobe.com | |
127.0.0.1 3dns-2.adobe.com | |
127.0.0.1 3dns-3.adobe.com | |
127.0.0.1 3dns-4.adobe.com | |
127.0.0.1 activate.adobe.com | |
127.0.0.1 activate-sea.adobe.com | |
127.0.0.1 activate-sjc0.adobe.com | |
127.0.0.1 activate.wip.adobe.com |
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/sh | |
####################################################### | |
# Another great script by: # | |
# _ , _ # | |
# / ) _, _ |) /|/_) ,_ _ _ # | |
# / / | / |/\ | \/ | / \_| | |_/|/| |/ # | |
# /__/\/|_/\__/| |/|(_/ |/\_/ \/ \/ | |_/|_/ # | |
# (| # | |
# # |
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
Get an MD5 hash of your password. | |
Visit md5 Hash Generator, or... | |
Create a key with Python. or... | |
On Unix/Linux: | |
Create file wp.txt with the new password in it (and *nothing* else) | |
md5sum wp.txt | |
rm wp.txt | |
"mysql -u root -p" (log in to MySQL) | |
enter your mysql password | |
"use (name-of-database)" (select WordPress database) |
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
# cd /usr/local/src/ | |
# wget http://day32.com/MySQL/tuning-primer.sh | |
# chmod u+x tuning-primer.sh | |
# ./tuning-primer.sh |