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 | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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
XLock.mode: blank | |
XLock.erasedelay: 500 | |
XLock.fpsfont: -misc-fixed-medium-r-*-*-13-*-*-*-*-*-* | |
XLock.timeelapsed: on | |
XLock.timeout: 20 | |
XLock.font: -misc-fixed-medium-r-*-*-13-*-*-*-*-*-* | |
XLock.username: | |
XLock.password: | |
XLock.info: | |
XLock.validate: validating ... |
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
## make users, directory structure, etc. | |
useradd ftpsecure -g users | |
mkdir /srv/ftp/data | |
mkdir /srv/ftp/data/alle | |
mkdir /srv/ftp/data/sta | |
chown -R :users /srv/ftp/data/alle | |
chmod g+w /srv/ftp/data/alle |
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/rsyslog.conf Configuration file for rsyslog. | |
## /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html | |
$ModLoad imuxsock # provides support for local system logging | |
$ModLoad imklog # provides kernel logging support | |
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat | |
$FileOwner root | |
$FileGroup adm |
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
= LPIC ADM2 = | |
<toc> | |
== # rsyslogd == | |
=== # links === | |
* http://blog.gerhards.net/2012/10/rate-limiting-in-rsyslog-732.html | |
* http://www.rsyslog.com/doc/manual.html | |
* http://www.rsyslog.com/using-the-syslog-receiver-module/ |
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 | |
## /etc/acpi/acpi_handler.sh | |
IFS=${IFS}/ | |
set $@ | |
case "$1" in | |
button) | |
case "$2" in | |
power ) echo -n disk > /sys/power/state |
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
### gbfsc.~:cat scripts/xmute.sh | |
#!/bin/sh | |
TOGGLE=$(amixer sset Master playback toggle | grep -c -E 'Front(.*)Playback(.*)on') | |
if [ $TOGGLE -eq 0 ] | |
then | |
xmessage -timeout 2 -center -buttons '' " - off " | |
else |
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
== # curl == | |
get raw url for all your gists and dump content to STDOUT | |
<pre> | |
curl -s --user "USER:PASSWD" https://api.github.com/gists | \ | |
grep raw_url | \ | |
perl -pi -e 's/(.*)\"https:(.*)\",/https:$2/g;' | \ | |
xargs curl | |
</pre> |
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
## mp4 to ogv | |
ffmpeg -i VIDEO.mp4 -acodec vorbis -aq 3 -strict -2 -qscale:v 18 VIDEO.ogv | |
## PAL VIDEO CD (VCD) | |
ffmpeg -i /path/file.avi -target pal-vcd -s 352x192 -padtop 32 -padbottom 32 -ab 128 /path/output.mpg | |
vcdimager -t vcd2 -l "LABEL" -c videocd.cue -b videocd.bin output.mpg |
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
XLock.mode: blank | |
XLock.erasedelay: 500 | |
XLock.fpsfont: -misc-fixed-medium-r-*-*-13-*-*-*-*-*-* | |
XLock.timeelapsed: on | |
XLock.timeout: 20 | |
XLock.font: -misc-fixed-medium-r-*-*-13-*-*-*-*-*-* | |
XLock.username: | |
XLock.password: | |
XLock.info: | |
XLock.validate: validating ... |
OlderNewer