Skip to content

Instantly share code, notes, and snippets.

Avatar

Max Bachhuber bahuma20

View GitHub Profile
@bahuma20
bahuma20 / script.js
Created Sep 7, 2020
Push Notification aktualisieren
View script.js
let reg;
navigator.serviceWorker.register('/service_worker.js').then(registration => {
console.log('service worker registered');
reg = registration;
}).catch(e => console.error(e));
let timeremaing = 10;
let interval;
View gist:d5f8c75f70d3ff5c52c900980aeb1633
http://www.grolmsnet.de/kerbtut/
https://help.ubuntu.com/community/Kerberos
https://gist.github.com/ashrithr/4767927948eca70845db
View keybase.md

Keybase proof

I hereby claim:

  • I am bahuma20 on github.
  • I am bahuma20 (https://keybase.io/bahuma20) on keybase.
  • I have a public key whose fingerprint is EB49 CAB0 06FE 2CC7 E939 C0D1 D8A4 AF96 FF3C 583E

To claim this, I am signing this object:

@bahuma20
bahuma20 / mysql_sftp_backup_script.sh
Created Apr 8, 2016
Export a mysql database and move the dump to another server via sftp
View mysql_sftp_backup_script.sh
#!/bin/bash
DBNAME="dbname"
DBHOST="localhost"
DBUSER="root"
DBPASS="12345"
SFTPUSER="username"
SFTPHOST="host"
SFTPPATH="/path/to/backup/directory"
@bahuma20
bahuma20 / Google Scrollbar Style
Created Jun 8, 2015
Style Webkit Scrollbars like google does in Google+
View Google Scrollbar Style
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #FFF;
-webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
background: #CCC;
-webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
You can’t perform that action at this time.