Skip to content

Instantly share code, notes, and snippets.

View qwertpi's full-sized avatar

qwertpi

View GitHub Profile
@qwertpi
qwertpi / main.py
Created December 23, 2018 18:34
Threading test
import threading
import time
from queue import Queue
queue=Queue()
#gives the queue a starting state
queue.put(False)
def loop1_10(q):
for i in range(1, 11):
stop=q.get()
@qwertpi
qwertpi / update.bash
Created August 21, 2018 09:32
The bash script that I run to update my systems packages
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y #comment out this line if this is a production environemt as it caries a risk of breaking your packages
sudo apt-get auto-remove -y
#comment out these lines if you don't have pip installed
sudo pip2 install --upgrade pip && sudo pip3 install --upgrade pip
sudo pip2 freeze -- local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 sudo pip2 install -U #can take a while
sudo pip3 freeze -- local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 sudo pip3 install -U #can take a while