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
###### | |
###### http://www.altmake.com/2013/03/06/secure-lamp-setup-on-amazon-linux-ami/ | |
###### | |
# http://imperialwicket.com/aws-quick-and-secure-lamp-on-amazon-linux | |
sudo su - | |
yum -y update |
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
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/subl |
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
echo raspberry | sudo -S chmod +s /bin/su | |
sudo su | |
cd /home/xbian/ | |
git clone git://github.com/xbianonpi/xbian.git source | |
for i in $(pgrep -u xbian); do kill -9 $i; done; |
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
ExcludeNodes {be},{pl},{ca},{za},{vn},{uz},{ua},{tw},{tr},{th}, {sk},{sg},{se},{sd},{sa},{ru},{ro},{pt},{ph},{pa}, {nz},{np},{no},{my},{mx},{md},{lv},{lu},{kr},{jp}, {it},{ir},{il},{ie},{id},{hr},{hk},{gr},{gi},{gb}, {fi},{es},{ee},{dk},{cz},{cy},{cr},{co},{cn},{cl}, {ci},{ch},{by},{br},{bg},{au},{at},{ar},{aq},{ao}, {ae},{nl},{de},{fr} |
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
stat -c "%a %n" . |
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
chown -R apache:www-data . | |
find . -type d -exec chmod u=rwx,g=rx,o= '{}' \; | |
find . -type f -exec chmod u=rw,g=r,o= '{}' \; |
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 | |
yum -y -R 120 -d 0 -e 0 update yum | |
yum --security -y -R 10 -e 0 -d 0 update |
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 | |
/usr/sbin/logwatch --output mail --mailto root@localhost --detail high |
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
# Comment out virtualenv and mkvirtualenv from .bash_profile | |
defaults write com.apple.versioner.python Version 2.7 | |
cd ~/Downloads/ | |
curl -o setuptools-0.6c11-py2.7.egg https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea | |
sudo sh setuptools-0.6c11-py2.7.egg | |
rm setuptools-0.6c11-py2.7.egg | |
sudo easy_install pip | |
sudo pip install virtualenv | |
sudo pip install virtualenvwrapper | |
sudo touch /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/__init__.py |
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
sudo killall "Remote Desktop" | |
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -stop | |
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -privs -all -restart -agent |