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/bash | |
while [ 1 ] | |
do | |
hash2=$(md5sum `find -iname "*.pdf"`|awk '{print $1}') | |
sleep 2 | |
hash=$(md5sum `find -iname "*.pdf"`|awk '{print $1}') | |
if [ $hash2 != $hash ] | |
then | |
echo "Delted some unused files" | |
rm `find -iname "*.aux" -o -iname "*.out" -o -iname "*.fls" -o -iname "*.bbl" -o -iname "*.blg" -o -iname "*.fdb_latexmk" -o -iname "*.lof" -o -iname "*.lot" -o -iname "*.toc"` |
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
There are 3 Methods for using a SSD as cache. | |
dm-cache, bcache,enhance-io all three should be avaliable in Kernel Version 3.10. | |
Performance differenceses are discussed here => http://lkml.indiana.edu/hypermail/linux/kernel/1306.1/01246.html | |
In this tutorial I will use bcache since dm-cache didn't worked for me. | |
At the moment there is only an rc5 candidate for kernel 3.10.0 | |
How to compile it is explained below. If you have a newer kernel than 3.10 and it is bcache enabled you dont need to compile it by yourself. In this case just jump over the kernel-compile-exlanation. If your kernel is compiled with bcache support you can test with "modprobe bcache". If that doesnt throw an error it should work :) | |
I will link to the tutorials I used. If you found better ones please paste a link in the comments | |
How to compile a kernel by yourself is explained at: | |
=> http://bodhizazen.net/Tutorials/kernel |
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/bash | |
ab=`cat /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/actual_brightness` | |
mb=`cat /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/max_brightness` | |
echo "The max brightness is " $mb " your actual brightness is " $ab " please enter your new brightess:" | |
read cb | |
echo $cb > "/sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/brightness" |
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
git clone git://github.com/mumble-voip/mumble.git mumble | |
cd mumble | |
git submodule init | |
git submodule update | |
git checkout --track -b master origin/master | |
qmake CONFIG+=no-server CONFIG+=nog15 CONFIG+=no-bundled-celt CONFIG+=no-upate CONFIG+=static main.pro -recursive | |
make -j50 //Falls es Fehler gibt nochmal mit "make -j1" posten damit Fehler in richtiger Reihenfolge sind |
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
int operator1 = 12; | |
const gchar * operator1_char = g_strdup_printf("%d", operator1); | |
//Only tested with compileroption -std=gnu++0x |
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
#include <sqlite3.h> | |
#include <stdio.h> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main(void) | |
{ | |
int zeile; |
NewerOlder