Skip to content

Instantly share code, notes, and snippets.

View mixxen's full-sized avatar

Alex Cabello mixxen

  • e-o.solutions
  • Maui, Hawaii
View GitHub Profile
@mixxen
mixxen / gist:72d8e29e7d27223e6428695e407d10b2
Created December 14, 2021 08:51
Windows Boot Repair with Grub
1. Create Windows 11 USB Boot
2. Boot into USB
3. Click Repair
4. Click Command Prompt
5. Run "bcdboot C:\Windows /l en-us"
6. Run "exit"
7. Click "Continue"
# run this to determine which firmware the kernal is looking for
modinfo iwlwifi | grep iwlwifi-cc
# example output:
# firmware: iwlwifi-cc-a0-50.ucode
# go https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ and download the firmware
# copy file to /lib/firmware
sudo cp ~/Download/iwlwifi-cc-a0-50.ucode /lib/firmware
from multiprocessing import Process, Pipe
from time import sleep
def f(conn):
while True:
print(conn.recv())
if __name__ == '__main__':
parent_conn, child_conn = Pipe()
p = Process(target=f, args=(child_conn,))
@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
fieldset, label { margin: 0; padding: 0; }
body{ margin: 20px; }
h1 { font-size: 1.5em; margin: 10px; }
/****** Style Star Rating Widget *****/
.rating {
border: none;
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo 'deb https://apt.dockerproject.org/repo ubuntu-trusty main' | sudo tee --append /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get -y install docker-engine
sudo groupadd docker
sudo usermod -aG docker $USER
swapoff /swapfile
free -mh
rm -rf /swapfile
fallocate -l 16G /swapfile
chmod 600 /swapfile
ls -lh /swapfile
mkswap /swapfile
swapon -s
sysctl vm.swappiness=50
free -mh
@mixxen
mixxen / cleanup.sh
Last active February 14, 2016 04:38
Docker cleanup commands
#remove all stopped containers
docker rm $(docker ps -a -q)
#remove all untagged images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
#remove all images
docker rmi -f $(docker images -q)
#remove dockers by name