Skip to content

Instantly share code, notes, and snippets.

View Dabolus's full-sized avatar
🌐
Working on some magic on the web!

Giorgio Garasto Dabolus

🌐
Working on some magic on the web!
View GitHub Profile
@Dabolus
Dabolus / keybase.md
Created September 22, 2022 11:34
Keybase verification

Keybase proof

I hereby claim:

  • I am Dabolus on github.
  • I am dabolus (https://keybase.io/dabolus) on keybase.
  • I have a public key whose fingerprint is C8D6 450B 6CC9 7EA8 C3A2 FE28 56D4 7D01 3AA2 D52C

To claim this, I am signing this object:

@Dabolus
Dabolus / Deploying PWA Starter Kit to Firebase.md
Last active June 26, 2020 01:39
A simple guide that explains how to deploy PWA Starter Kit to Firebase

Note: this guide explains step by step how to add Firebase to PWA Starter Kit.

If you already have some Firebase knowledge and you just want to get everything ready out of the box, you might want to checkout the Firebase branch on the PWA Starter Kit repo, that already contains all the needed files.

Deploying prpl-server to Firebase

Firebase Hosting alone is not sufficient for hosting the prpl-server build since it requires some server-side processing of the user agent string. Instead, you will have to use Firebase Functions for that.

  1. Sign up for a Firebase account
@Dabolus
Dabolus / Firebase + Express + PRPL Server.md
Last active June 2, 2018 08:02
Firebase + Express + PRPL Server = ❤️

Note: this gist has some bugs that still need to be fixed.

In the meantime, take a look at this issue to know what this bugs are and how to fix them

Firebase + Express + PRPL Server

Simple step-by-step guide

  1. Head over the Firebase Console and create your project
# Get the ID and security principal of the current user account
$myWindowsID = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$myWindowsPrincipal = New-Object System.Security.Principal.WindowsPrincipal($myWindowsID)
# Get the security principal for the administrator role
$adminRole = [System.Security.Principal.WindowsBuiltInRole]::Administrator
# Check to see if we are currently running as an administrator
if ($myWindowsPrincipal.IsInRole($adminRole))
{