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 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() |
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 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 |