Skip to content

Instantly share code, notes, and snippets.

View helloimalemur's full-sized avatar
🦊

Koonts helloimalemur

🦊
View GitHub Profile
@helloimalemur
helloimalemur / pgp.md
Last active December 13, 2022 14:23 — forked from spencerdodd/pgp.md
pgp file encryption / decryption with GPG

generate new key-pair

gpg --full-generate-key #If you are not on version 2.1.17 or greater, the gpg --full-generate-key command doesn't work.
gpg --default-new-key-algo rsa4096 --gen-key

list keys

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@helloimalemur
helloimalemur / server.py
Created September 8, 2022 19:22 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
class S(BaseHTTPRequestHandler):