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
# Add list of files that Git should not compress | |
EXTENSIONS="jpg jpeg png tiff gif flac mp3 ogg oga avi mov mpg mpeg mkv ogv ogx webm zip gz bz bz2 rpm deb tgz rar ace 7z pak iso dmg" | |
for EXTENSION in $EXTENSIONS; do | |
sleep 0.05 | |
echo -ne " -> echo \"*.$EXTENSION -delta\" >> trans/info/attributes \r" | |
echo "*.$EXTENSION -delta" >> "trans/info/attributes" | |
sleep 0.05 | |
EXTENSION_UPPERCASE=`echo $EXTENSION | tr '[:lower:]' '[:upper:]'` | |
echo -ne " -> echo \"*.$EXTENSION_UPPERCASE -delta\" >> trans/info/attributes \r" | |
echo "*.$EXTENSION_UPPERCASE -delta" >> "trans/info/attributes" |
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
taken from: https://github.com/mxcl/homebrew/issues/11448 | |
cd `brew --prefix` | |
git remote add origin https://github.com/mxcl/homebrew.git | |
git fetch origin | |
sudo git reset --hard origin/master |
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
apt-get install duply python-paramiko | |
mkdir /etc/duply | |
duply backupname create |
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
*cool thing* from http://linux-tips.org/article/78/syntax-highlighting-in-less | |
apt-get install source-highlight | |
add this on the bottom of .bashrc | |
# he: some colour for less | |
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" | |
export LESS=' -R ' | |
et voilá ... |
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
problem: your server hangs on reboot | |
symptom: grub shows menu and waits for an input | |
> /etc/default/grub | |
contains the lines | |
GRUB_HIDDEN_TIMEOUT=0 | |
GRUB_HIDDEN_TIMEOUT_QUIET=true |
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
# brew pin [packagename] | |
brew pin qemu |
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
## Installation of https://github.com/perception101/pisense | |
sudo su - | |
mkdir /opt/munin-plugins | |
wget https://raw.githubusercontent.com/perception101/pisense/master/pisense_ -O /opt/munin-plugins/pisense_ | |
chmod 0755 /opt/munin-plugins/pisense_ | |
ln -s /usr/share/munin/plugins/pisense_ /etc/munin/plugins/pisense_clock |
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 | |
su - munin --shell=/bin/bash | |
/usr/share/munin/munin-update | |
exit |
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
--- /etc/kbd/config 2015-02-21 16:24:59.653062112 +0100 | |
+++ /etc/kbd/config.new 2015-02-21 16:24:28.554492138 +0100 | |
@@ -38,7 +38,8 @@ | |
# screen blanking timeout. monitor remains on, but the screen is cleared to | |
# range: 0-60 min (0==never) kernels I've looked at default to 10 minutes. | |
# (see linux/drivers/char/console.c) | |
-BLANK_TIME=30 | |
+#BLANK_TIME=30 | |
+BLANK_TIME=0 | |
OlderNewer