Skip to content

Instantly share code, notes, and snippets.

@dreaddymck
dreaddymck / wsl2-ubuntu-lamp.md
Created November 14, 2021 13:06 — forked from abobija/wsl2-ubuntu-lamp.md
LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

Apache

sudo apt-get update && sudo apt-get upgrade 
sudo apt-get install -y apache2

PHP

@dreaddymck
dreaddymck / 2019-https-localhost.md
Created August 11, 2021 03:02 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@dreaddymck
dreaddymck / dreaddymck
Last active June 10, 2016 15:02
dreaddymck new
Verifying that +dreaddymck is my blockchain ID. https://onename.com/dreaddymck
@dreaddymck
dreaddymck / dreaddymck
Last active June 9, 2016 15:25
dreaddymck
Verifying that +dreaddymck is my blockchain ID. https://onename.com/dreaddymck
@dreaddymck
dreaddymck / compliment.b303.me.py
Created November 28, 2015 16:11 — forked from blha303/compliment.b303.me.py
Gets random comment from /r/gonewild, since they're pretty much all compliments. http://compliment.b303.me Warning: May contain sexual content
#!/usr/bin/env python3
import requests
from flask import *
import random
from apscheduler.schedulers.background import BackgroundScheduler
app = Flask(__name__)
scheduler = BackgroundScheduler()
url = "https://reddit.com/r/gonewild/comments.json?limit=200"