>sudo apt-get install bum
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
rsync -av --progress sourcefolder /destinationfolder --exclude thefoldertoexclude |
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
# using apscheduler 2.1.2 since 3.0 version has a problem with importing Scheduler module | |
# sudo pip install apscheduler==2.1.2 | |
from apscheduler.scheduler import Scheduler | |
sched = Scheduler() | |
sched.start() | |
def job_function(): | |
print "Hello World" |
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 | |
case "${1}" in | |
resume|thaw) | |
restart network-manager | |
;; | |
esac | |
# put in /etc/pm/sleep.d/ | |
# chmod 775 /etc/pm/sleep.md/resume_network.sh |
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
# install 1.3.1 ( stable version ) | |
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb | |
sudo dpkg -i elasticsearch-1.1.1.deb |
###Determine your normal system partition - (the switch is a lowercase "L") sudo fdisk -l
###If you aren't sure, run df -Th
Look for the correct disk size and ext3 or ext4 format.
###Mount your normal system partition:
NewerOlder