http://btsync.s3-website-us-east-1.amazonaws.com/BitTorrentSyncUserGuide.pdf http://forum.bittorrent.com/topic/18974-debian-and-ubuntu-server-packages-for-bittorrent-sync/
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="tjkirch" | |
# Example aliases |
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
mysqldump MYSQL_DUMP_OPTIONS | gzip > outputfile_`date +%d_%m_%Y`.sql.gz | |
mysqldump MYSQL_DUMP_OPTIONS | gzip > outputfile_`date +%d_%m_%Y`.sql.gz | |
gunzip < outputfile.sql.gz | mysql < mysql options> |
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
==> Caveats | |
If this is your first install, automatically load on login with: | |
mkdir -p ~/Library/LaunchAgents | |
cp /usr/local/Cellar/mongodb/2.2.0-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
If this is an upgrade and you already have the homebrew.mxcl.mongodb.plist loaded: | |
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
cp /usr/local/Cellar/mongodb/2.2.0-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist |
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
if [ -d ~/.oh-my-zsh ] | |
then | |
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove ~/.oh-my-zsh if you want to install" | |
exit | |
fi | |
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh | |
curl https://gist.github.com/artembeloglazov/4706372/raw/.zshrc > ~/.zshrc | |
chsh -s `which zsh` | |
echo 'Надо перегрузить консоль.' |
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 sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib \ndeb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list' | |
sudo curl -o /tmp/webmin.key http://www.webmin.com/jcameron-key.asc | |
sudo apt-key add /tmp/webmin.key | |
sudo apt-get update | |
sudo apt-get -y install webmin |
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 | |
echo "Executing /etc/qemu-ifdown" | |
echo "Bringing TAP interface down" | |
ifconfig $1 down | |
echo "Removing interfaces" | |
ifconfig bridge0 deletem en1 deletem $1 | |
echo "Bring down bridge" | |
ifconfig bridge0 down | |
echo "Removing bridge" | |
ifconfig bridge0 destroy |
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
svn info ./* | grep -E "Path|URL" |
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
ssh -L ПОРТ_ДЛЯ_ЛОКАЛЬНОГО_ОБРАЩЕНИЯ:УДАЛЕННЫЙ_ХОСТ:УДАЛЕННЫЙ_ПОРТ user@host |
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 /Applications/CCleaner.app/Contents/MacOS/CCleaner |
OlderNewer