Skip to content

Instantly share code, notes, and snippets.

View mymindwentblvnk's full-sized avatar
🪴

Michael Eichenseer mymindwentblvnk

🪴
View GitHub Profile
@mymindwentblvnk
mymindwentblvnk / spin-up-a-local-postgres.sh
Created January 4, 2022 14:47
Spin Up a Local Postgres
mkdir ${HOME}/postgres-data/
docker run -d --name postgres -e POSTGRES_PASSWORD=postgres -v ${HOME}/postgres-data/:/var/lib/postgresql/data -p 5432:5432 postgres
  1. First get into terminal and type sudo vim /etc/default/grub.

  2. Next, the grub.cfg file should pop up. Find GRUB_CMDLINE_LINUX="" and within the quotes type in i8042.reset i8042.nomux i8042.nopnp i8042.noloop.

  3. So it should look like this: GRUB_CMDLINE_LINUX="i8042.reset i8042.nomux i8042.nopnp i8042.noloop"

  4. Hit save.

  5. Next, you need to open up another terminal window and update grub by typing in sudo update-grub and finally restart.

# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
@mymindwentblvnk
mymindwentblvnk / install.sh
Last active September 15, 2018 10:37
Installation Script
sudo apt install vim
sudo apt install silversearcher-ag
sudo apt install git
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
sudo apt install python3-dev
sudo apt install python-virtualenv
@mymindwentblvnk
mymindwentblvnk / iso_to_usb.sh
Last active December 14, 2017 21:04
ISO to USB
# Find out what the USB drive is named
df -h
# Unmount it
umount /dev/sdb1
# Unmount this too if needed
umount /dev/sdb2
# Copy ISO
sudo dd bs=4M if=LINK_TO_ISO of=/dev/sdb