Skip to content

Instantly share code, notes, and snippets.

View binaryben's full-sized avatar

Benny Michaels binaryben

View GitHub Profile
@binaryben
binaryben / README.md
Last active August 4, 2022 09:49
Self hosted gibberish

This is now gone. Only here for posterity reasons.

@binaryben
binaryben / prompt.sh
Created January 25, 2018 12:34
Bash password prompt
#!/bin/bash
function PWDprompt {
read -sp 'Password: ' pass1
echo
read -sp "Confirm: " pass2
if [[ "$pass1" == "$pass2" ]]
then
if test -z $pass1
then
@binaryben
binaryben / Caddyfile
Created November 5, 2017 07:47 — forked from a-s-o/Caddyfile
Single page app rewriting with Caddy server
localhost:80
gzip
ext .html
root /home/deploy/current/build/www
proxy /graphql localhost:3000
rewrite /login {
to {path} /login
}