This file contains 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
lynx -dump -listonly $WEBSITE |
This file contains 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
bzip2 -c $PATH | ssh $USER@$SERVER "bzip2 -dc > $TO" |
This file contains 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
tar -c -f $FILENAME --after-date='$DAYS days ago' . |
This file contains 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
# Scientific Linux 6.4 | |
# deploy an all-master percona cluster using tungsten | |
# https://code.google.com/p/tungsten-replicator/ | |
# on each node | |
yum -y update | |
yum -y install ruby java rsync tar | |
rpm -Uhv http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm | |
vim /etc/yum.repos.d/Percona.repo ## change version to 6 (6.4 does not exist) | |
yum install -y Percona-Server-server-55.x86_64 |
This file contains 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
# scientific linux 6.4 | |
# lb node - no sql on this node | |
# sql nodes: db1, db2, db3, db4 | |
yum -y update | |
yum -y install gcc | |
useradd haproxy | |
wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.24.tar.gz | |
tar zxvf haproxy-1.4.24.tar.gz | |
cd haproxy-1.4.24 |
This file contains 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
dd if=/dev/zero of=filesystem.ext3 bs=1k count=32000 | |
mkfs -t ext3 -F filesystem.ext3 | |
mkdir -pv /mnt/virtsys | |
mount -o loop filesystem.ext3 /mnt/virtsys |
This file contains 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
date | curl -F "sprunge=<-" http://sprunge.us | |
# this will output a url that has your pasted code, easy to share | |
# on forums and things |
This file contains 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 10 > /proc/sys/kernel/panic | |
echo 1 > /proc/sys/kernel/sysrq | |
echo s > /proc/sysrq-trigger | |
sleep 5 | |
echo s > /proc/sysrq-trigger | |
sleep 5 | |
echo b > /proc/sysrq-trigger |
This file contains 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
#Clean minimal install of Scientific Linux 6/Centos 6 | |
#Additional Security Removed (iptables, selinux) | |
#For additional hardening Information: | |
#http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/index.html | |
# initial installation | |
#use SL Install DVD (minimal install only exists on DVD) | |
#boot | |
#[tab] for Kernel Parameters (linux text asknetwork ) |
This file contains 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 | |
yum install -y python2 python-pip | |
pip install virtualenv | |
mkdir projects | |
cd projects | |
virtualenv some_project | |
cd some_project | |
source bin/activate | |
pip install flask |
OlderNewer