Skip to content

Instantly share code, notes, and snippets.

View codemation's full-sized avatar

Joshua Jamison codemation

View GitHub Profile
@codemation
codemation / README.md
Created January 14, 2022 12:58 — forked from jverweijL/README.md
Adding WiFi Drivers to Ubuntu/Linux for Dell’s XPS-15 9500 with AX500

Based upon https://mukaiguy.medium.com/adding-wifi-drivers-to-ubuntu-linux-for-dells-xps-15-9500-with-ax500-f535fb42db70

Step 1 — Pre-Requisites The line of code below will update, then upgrade all of the packages and their dependencies as necessary. Then it will install git if it’s not already installed, as well as the other tools needed to build the kernels. *Note I use the -y flag to indicate that I am okay with the installs. feel free to change that if you want to be asked.

sudo apt update && sudo apt -y full-upgrade && sudo apt install -y git && sudo apt-get install -y build-essential libncurses-dev bison flex libssl-dev libelf-dev dwarves

I had to install a dwarf 1.17

@codemation
codemation / mysql-docker.sh
Last active January 17, 2021 14:42 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
# Restore into Kubernetes
cat backup.sql | kubectl exec -n <destination_namespace> -i <destination_pod> -- mysql -u root --password='password' <destination_database>