Skip to content

Instantly share code, notes, and snippets.

@ginmaster
ginmaster / python-3.6.10-m1.patch
Created April 23, 2022 08:12
python-3.6.10-m1.patch
diff --git configure configure
index e39c16eee2..2455870bf8 100755
--- configure
+++ configure
@@ -5202,10 +5202,6 @@ $as_echo "$as_me:
" >&6;}
fi
-
-MULTIARCH=$($CC --print-multiarch 2>/dev/null)
@ginmaster
ginmaster / Cliref.md
Created May 18, 2022 15:17 — forked from yunga/Cliref.md
CLIRef.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     yunga.palatino@gmail.com
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'

Keybase proof

I hereby claim:

  • I am ginmaster on github.
  • I am crainma (https://keybase.io/crainma) on keybase.
  • I have a public key ASD0pXB_favB-jaURX6nL4HC8UtPWn9yyl3SnMbKGA0QVQo

To claim this, I am signing this object:

@ginmaster
ginmaster / letsencrypt_2020.md
Created May 25, 2022 22:21 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@ginmaster
ginmaster / setup.sh
Created May 30, 2022 06:14
Ubuntu 20.04 + Nginx (reverse proxy) + Apache2 + PHP 7.4 + SSL + cloudflare
#!/bin/bash
set -e # Terminate if script has error
####################################################################
# Variables used
####################################################################
sitedir=""
fqn=""