This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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,)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |