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
Host <name> | |
HostName <hostname> | |
User <username> | |
IdentityFile "<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
sudo hostname <hostname> | |
sudo vim /etc/hostname | |
sudo vim /etc/hosts |
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
string.split(/pattern/) |
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
string.match(/pattern/g) |
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
# change to root user | |
su root | |
# add repository public key to aptitude | |
wget http://download.opensuse.org/repositories/home:/siteshwar/Ubuntu_12.04/Release.key | |
apt-key add - < Release.key | |
rm Release.key | |
# install fish | |
echo 'deb http://download.opensuse.org/repositories/home:/siteshwar/Ubuntu_12.04/ /' >> /etc/apt/sources.list.d/osc.list |
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
Quick *nix rootkit check: Write a bash script to try bind() on all ports. If a port is used, but doesn't show in netstat --> usually rootkit |
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
from __future__ import division | |
b = 0 | |
a = 1 | |
i = 2 | |
j = 0 | |
t = (139583862445/1000000) | |
while(i < 1024): | |
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
sudo vim /etc/udev/rules.d/z25_persistent-net.rules | |
sudo reboot now |
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
prlsrvctl info |
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
sudo apt-get install php5-fpm | |
sudo apt-get install php5-pgsql | |
sduo service php5-fpm restart |