Skip to content

Instantly share code, notes, and snippets.

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