Skip to content

Instantly share code, notes, and snippets.

View ribenamaplesyrup's full-sized avatar
🛢️

Sean Greaves ribenamaplesyrup

🛢️
View GitHub Profile
@ribenamaplesyrup
ribenamaplesyrup / cracklepop.py
Created March 10, 2022 12:31
Program that prints out the numbers 1 to 100 (inclusive). If the number is divisible by 3, print Crackle instead of the number. If it's divisible by 5, print Pop. If it's divisible by both 3 and 5, print CracklePop.
for rice in range(1,101):
sound = ""
if rice % 3 == 0:
sound+="Crackle"
if rice % 5 == 0:
sound+="Pop"
if not sound:
print(rice)
else:
print(sound)
### Keybase proof
I hereby claim:
* I am ribenamaplesyrup on github.
* I am sean_ (https://keybase.io/sean_) on keybase.
* I have a public key ASDj_PEUg4z1x7GumVTuprv7kEqFVUxI3yjsvK3slZmC0go
To claim this, I am signing this object:
# makes code stand out nice and clearly
@ribenamaplesyrup
ribenamaplesyrup / .txt
Created April 30, 2019 09:59
PowerAIDockerSetup
sudo setenforce permissive
@ribenamaplesyrup
ribenamaplesyrup / .txt
Created April 30, 2019 09:58
PowerAIDockerSetup
docker run - rm nvidia/cuda-ppc64le nvidia-smi
@ribenamaplesyrup
ribenamaplesyrup / .txt
Created April 30, 2019 09:57
PowerAIDockerSetup
sudo usermod -a -G docker <userid>
@ribenamaplesyrup
ribenamaplesyrup / .txt
Created April 30, 2019 09:56
PowerAIDockerSetup
sudo systemctl restart docker # (or docker-ce)
@ribenamaplesyrup
ribenamaplesyrup / .txt
Created April 30, 2019 09:52
PowerAIDockerSetup
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
sudo apt-get install nvidia-docker2
@ribenamaplesyrup
ribenamaplesyrup / .txt
Last active April 30, 2019 09:50
PowerAIDockerSetup
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.repo | sudo tee /etc/yum.repos.d/nvidia-docker.repo
sudo yum install nvidia-docker2 (if using docker-ce)
sudo yum install nvidia-runtime-container-hook (if using docker)