Skip to content

Instantly share code, notes, and snippets.

/relay add weechat <port>
/set relay.network.password <password>
/server add <name> <server-address>
<VirtualHost *:80>
ServerName mydomain.de
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
ServerName subdomain.mydomain.de
DocumentRoot /var/www/subdomain
</VirtualHost>
sqlite3=require('luasql.sqlite3')
myDB=sqlite3.open('MyDatabase.sqlite3') -- open
myDB:close() -- close
sqlite3 = require"luasql.sqlite3"
env=sqlite3.sqlite3()
con=env:connect("myDataBase.db")
con:close()
env:close()
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
String sql = "CREATE IF NOT EXISTS TABLE Flaschenbestand ( Name TEXT PRIMARY KEY NOT NULL, Bestand INT NOT NULL )";
/*code*/
/*code*/
/*code*/
/*code*/
/*code*/
(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")
int overtime(int hours, int regular) {
if (hours <= regular) {
return 0;
} else {
return hours - regular;
}
}
//3a)
String truncate_to_8(String s) {
return s_sub(s, 0, 8);
}