Skip to content

Instantly share code, notes, and snippets.

@CharlesGodwin
CharlesGodwin / cloudflare.md
Last active March 7, 2023 09:03
I Don't Need Port Forwarding and Don't Care About CGNAT
View cloudflare.md

I Don't Need Port Forwarding and Don't Care About CGNAT

This was rewritten 2022-11-30

This article is for users that want all these features:

  • To connect to home network from anywhere
  • Can connect without any port forwarding; either by choice or internet provider can't or won't provide access
  • No setup or configuration or installation on client machine
  • No enrolment / registration required
@rain-1
rain-1 / Raspberry Pi, Static HTTPS site with Docker and Nginx.md
Last active March 10, 2023 21:38
Raspberry Pi, Static HTTPS site with Docker and Nginx
View Raspberry Pi, Static HTTPS site with Docker and Nginx.md

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

View 116-docker-desktop-minikube.sh
# Source: https://gist.github.com/d2f36b05bf959e5fc91497ea3f0dceb3
#######################################################
# Free Docker Desktop Alternative For Mac And Windows #
# https://youtu.be/LGNEG-t96eE #
#######################################################
# Referenced videos:
# - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo
# - K3d - How to run Kubernetes cluster locally using Rancher k3s: https://youtu.be/mCesuGk-Fks
@johndatserakis
johndatserakis / install-imagick-docker-php-7-1-alpine.md
Last active March 13, 2023 15:39
Install imagick In Docker FROM php:7.1-fpm-alpine
View install-imagick-docker-php-7-1-alpine.md

docker-library/php#105

RUN set -ex \
    && apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
    && export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
    && pecl install imagick-3.4.3 \
    && docker-php-ext-enable imagick \
    && apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
 && apk del .phpize-deps
@allenyllee
allenyllee / install_tools.sh
Last active March 26, 2023 13:07
mount vhdx in linux
View install_tools.sh
#!/bin/bash
# install qemu utils
sudo apt install qemu-utils
# install nbd client
sudo apt install nbd-client
View OS X macOS Install ISO Creator
#!/bin/bash
################################
# OS X Install ISO Creater #
# #
# Author: shela #
################################
#######################################
# Declarations
@btfak
btfak / useHexo.md
Created May 26, 2016 09:41
How to use Hexo and deploy to GitHub Pages
View useHexo.md
@ramiabraham
ramiabraham / rom_suffix_codes.md
Last active March 26, 2023 15:25
Video game rom suffix codes (decoded)
View rom_suffix_codes.md

Video game rom codes

You wouldn't download a car...


Primary rom codes

Probably what you're looking for

  • [a] Alternate (alternate version of the game, usually trying a different output method)
  • [p] Pirate
@natelandau
natelandau / .bash_profile
Last active March 18, 2023 19:20
Mac OSX Bash Profile
View .bash_profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@six0h
six0h / post-update
Created February 26, 2014 17:12
Git Post-Update hook that checks for changes to composer.lock, and fires a composer install if required.
View post-update
#!/usr/bin/env python
#-*- coding: utf-8 -*-
"""A post-update Git hook to execute `composer install` when composer.json changes
:Author: Cody Halovich
:Company: HootSuite Media Inc.
"""
import subprocess