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 | |
cd ~/.gnome2/ | |
if ping -c2 cnlpete.de > /dev/null 2>&1; then | |
COUNTER=0 | |
while [ $COUNTER -lt 60 ]; do | |
wget -O world.jpg "http://xearth.org/xearth?mag=0.75&nostars=1&shift=100,0&nolabel=1&nogrid=1&pos=fixed,55,11&markers=1&proj=orthographic&shade=1&night=7&overlayfile=clouds_2048.jpg,none,none,none,none&mapfile=world.topo.bathy.200407.3x5400x2700.jpg&day=100&size=800,600" | |
temp=$(stat -c%s world.jpg) |
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 | |
TMP=/data/cnlpete/.tmp | |
TARGET=~/.gnome2 | |
##---------- | |
if ping -c2 google.de > /dev/null 2>&1; then | |
##receive earth pictures, only do this once ... | |
cd ${TMP} |
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 | |
if [ $# -lt 1 ] | |
then | |
echo "Nicht genügend Argumente!" | |
echo "Benutzung: $0 file [file2 [...]]" | |
exit 1 | |
else | |
while [ $# -gt 0 ] |
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/sh | |
FOLDER=/opt/debs | |
LOGS=$FOLDER/logs | |
if [ ! -d $FOLDER ]; then | |
mkdir $FOLDER | |
if [ ! -d $FOLDER ]; then | |
sudo mkdir $FOLDER | |
sudo chown $USER:$USER $FOLDER |
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 | |
RSNAPSHOT=/usr/bin/rsnapshot | |
DEVICE=/dev/disk/by-label/Backup | |
MOUNTPNT=/media/Backup | |
#--------------- | |
mounted=0 | |
#mount |
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 | |
DEVICE=/dev/ttyUSB0 | |
NUMBER=$1 | |
VAR=`echo $NUMBER | grep -o - | wc -l` | |
if [ "$VAR" == "1" ] | |
then | |
#list | |
POS=`expr index "$NUMBER" -` |
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 | |
#STATUS_FILE=~/.rotate-status | |
STATUS_FILE=/tmp/.rotate-status | |
STYLUS=`xsetwacom --list | grep stylus` | |
STYLUS=${STYLUS%\ STYLUS*} | |
#STYLUS='Serial Wacom Tablet stylus' | |
################## Compiz Prevention | |
function compiz_on { | |
USER=`ps -ef |grep metacity |grep -v grep|awk -F" " '{print $1}'` |
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 | |
##host | |
githost="git@mitharas.de" | |
#---------- | |
# get list of repos using git gl-info from https://cnlpete@github.com/cnlpete/gitolite-tools.git | |
#install git ls-info | |
curdir=`pwd` | |
cd /tmp | |
#git clone https://cnlpete@github.com/cnlpete/gitolite-tools.git gitolite-tools |
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
5 */6 * * * /etc/init.d/minecraft backup #backup four times a day, meaning every 6 hours | |
15 */2 * * * /etc/init.d/minecraft map #generate map every two hours | |
10 1 * * * /etc/init.d/minecraft clean #clean old files daily |
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
### Keybase proof | |
I hereby claim: | |
* I am cnlpete on github. | |
* I am cnlpete (https://keybase.io/cnlpete) on keybase. | |
* I have a public key whose fingerprint is B465 0389 31FB F96A 01FE 905E C9A1 FE6F 665A EEE3 | |
To claim this, I am signing this object: |
OlderNewer