Skip to content

Instantly share code, notes, and snippets.

View dsphinx's full-sized avatar

Melisidis Konstantinos dsphinx

View GitHub Profile

Raspberry Pi, Static HTTPS site with Docker and Nginx

This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date.

This is a guide on setting up a static HTTPS website on your raspberry pi using docker and nginx. The aim is to have this running on the raspberry pi and to be able to access it from a host computer on the same local network. You should already be able to ssh into your pi from your host computer and have raspberry pi OS set up.

Find your raspberry pi

@dsphinx
dsphinx / athens-radio.m3u
Created September 29, 2021 05:44 — forked from dennmtr/athens-radio.m3u
Athens Radio Playlist
#EXTM3U
#EXTINF:0,095.20 | Athens Deejay FM, Athens (Mainstream Pop, Top Hits) - 95.2 Athens DeeJay
http://94.23.0.114:41972
#EXTINF:0,089.20 | Music, Athens (Mainstream Pop, Top Hits) - Music 89.2
https://stream.radiojar.com/k0hua7u1yk5tv
#EXTINF:0,101.60 | Radio Paradise, Poros (Mainstream Pop, Top Hits) - Netcast
http://213.239.206.179:8850
#EXTINF:0,088.90 | Hit, Athens (Pop, Top Hits) - HIT 889 radio
https://stream.radiojar.com/wgv51425e3quv
#EXTINF:0,106.20 | Mad, Athens (Mainstream House, Pop) - MAD RADIO
@dsphinx
dsphinx / project-create.sh
Created April 17, 2020 11:16 — forked from francoisromain/project-create.sh
A bash script to create a Git post-receive hook to deploy after a Git push
#!/bin/bash
# source: https://gist.github.com/francoisromain/58cabf43c2977e48ef0804848dee46c3
# and another script to delete the directories created by this script
# project-delete.sh: https://gist.github.com/francoisromain/e28069c18ebe8f3244f8e4bf2af6b2cb
# Call this file with `bash ./project-create.sh project-name`
# - project-name is mandatory
# This will creates 4 directories and a git `post-receive` hook.
@dsphinx
dsphinx / Encryption.js
Created April 11, 2020 06:05 — forked from ve3/Encryption.js
Encrypt and decrypt between programming languages (PHP & JavaScript).
/**
* Encryption class for encrypt/decrypt that works between programming languages.
*
* @author Vee Winch.
* @link https://stackoverflow.com/questions/41222162/encrypt-in-php-openssl-and-decrypt-in-javascript-cryptojs Reference.
* @link https://github.com/brix/crypto-js/releases crypto-js.js can be download from here.
*/
class Encryption {
@dsphinx
dsphinx / keybase.md
Created February 17, 2020 20:24
keybase

Keybase proof

I hereby claim:

  • I am dsphinx on github.
  • I am dsphinx (https://keybase.io/dsphinx) on keybase.
  • I have a public key whose fingerprint is B8C0 C280 AB1C B273 A9AE 435C 2878 5DC3 A9ED F176

To claim this, I am signing this object:

@dsphinx
dsphinx / certificate.sh
Created January 2, 2018 15:00 — forked from WebReflection/certificate.sh
A basic Self Signed SSL Certificate utility
#!/usr/bin/env bash
# A basic Self Signed SSL Certificate utility
# by Andrea Giammarchi @WebReflection
# https://www.webreflection.co.uk/blog/2015/08/08/bringing-ssl-to-your-private-network
# # to make it executable and use it
# $ chmod +x certificate
# $ ./certificate # to read the how-to
# $Id$ generated with make-mac-prefixes.pl
# Original data comes from http://standards.ieee.org/regauth/oui/oui.txt
# These values are known as Organizationally Unique Identifiers (OUIs)
# See http://standards.ieee.org/faqs/OUI.html
# We have added a few unregistered OUIs at the end.
000000 Xerox
000001 Xerox
000002 Xerox
000003 Xerox
000004 Xerox
@dsphinx
dsphinx / mysql2sqlite.sh
Created August 25, 2012 11:50 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
@dsphinx
dsphinx / mysql2sqlite.sh
Created August 25, 2012 11:50 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite