Skip to content

Instantly share code, notes, and snippets.

View connorgallopo's full-sized avatar
:octocat:

Connor Gallopo connorgallopo

:octocat:
View GitHub Profile
@connorgallopo
connorgallopo / installer.sh
Created July 24, 2021 00:05
Heimdall Ubuntu Installer
#!/bin/bash
apt update && apt upgrade -y
apt install -y git apache2 php libapache2-mod-php sqlite php-mbstring php-xml php-common php-sqlite3 php-zip composer
a2enmod rewrite
git clone https://github.com/linuxserver/Heimdall.git /opt/heimdall
rm -R /var/www/html
We couldn’t find that file to show.
function subscribeUserToPush() {
return navigator.serviceWorker.register('/serviceworker.js')
.then(function(registration) {
const subscribeOptions = {
userVisibleOnly: true,
applicationServerKey: window.vapidPublicKey
};
return registration.pushManager.subscribe(subscribeOptions);
})

Keybase proof

I hereby claim:

To claim this, I am signing this object: