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
/relay add weechat <port> | |
/set relay.network.password <password> | |
/server add <name> <server-address> |
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
<VirtualHost *:80> | |
ServerName mydomain.de | |
DocumentRoot /var/www | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerName subdomain.mydomain.de | |
DocumentRoot /var/www/subdomain | |
</VirtualHost> |
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
sqlite3=require('luasql.sqlite3') | |
myDB=sqlite3.open('MyDatabase.sqlite3') -- open | |
myDB:close() -- close |
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
sqlite3 = require"luasql.sqlite3" | |
env=sqlite3.sqlite3() | |
con=env:connect("myDataBase.db") | |
con:close() | |
env:close() |
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
auto wlan0 | |
mapping wlan0 | |
script ifscheme-mapping | |
iface wlan0-luhwpa inet dhcp | |
wpa-conf /etc/wpa_supplicant/luhwpa.conf | |
iface wlan0-eduroam inet dhcp | |
wpa-conf /etc/wpa_supplicant/eduroam.conf |
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
String sql = "CREATE IF NOT EXISTS TABLE Flaschenbestand ( Name TEXT PRIMARY KEY NOT NULL, Bestand INT NOT NULL )"; |
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
/*code*/ | |
/*code*/ | |
/*code*/ | |
/*code*/ | |
/*code*/ |
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
(xbindkey '("XF86AudioMute") "amixer toggle Master mute") | |
(xbindkey '("XF86AudioMicMute") "amixer set Capture toggle") | |
(xbindkey '("XF86AudioRaiseVolume") "amixer set Master 5%+ unmute") | |
(xbindkey '("XF86AudioLowerVolume") "amixer set Master 5%- unmute") | |
(xbindkey '("XF86Launch1") "i3lock -c 000000 -i /home/kroovy/.i3lock/background.png") |
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
int overtime(int hours, int regular) { | |
if (hours <= regular) { | |
return 0; | |
} else { | |
return hours - regular; | |
} | |
} |
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
//3a) | |
String truncate_to_8(String s) { | |
return s_sub(s, 0, 8); | |
} |
OlderNewer