- Keep your system up to date:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo reboot
- Make sure you've got an internet connection.
- Make sure you've got
- wget
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
#!/usr/bin/env bash | |
find . -iregex '.*\.\(c\)?iso' -print0 | | |
while IFS= read -r -d $'\0' iso; do | |
id6="$(wit id6 "$iso")" | |
target_dir="${iso%.*} [$id6]" | |
target="${target_dir}/$id6.wbfs" | |
if [[ ! -f "$target" ]]; then | |
echo "Converting $iso to wbfs" | |
wit copy --wbfs "$iso" . |
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 argparse | |
import logging | |
parser = argparse.ArgumentParser( | |
description="Demo of setting logging verbosity using -vvvv style args", | |
formatter_class=argparse.ArgumentDefaultsHelpFormatter, | |
) | |
parser.add_argument("-v", "--verbose", dest="verbosity", action="count", default=0, | |
help="Verbosity (between 1-4 occurrences with more leading to more " | |
"verbose logging). CRITICAL=0, ERROR=1, WARN=2, INFO=3, " | |
"DEBUG=4") |
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 argparse | |
from pathlib import Path | |
import numpy as np | |
import pandas as pd | |
parser = argparse.ArgumentParser( | |
description="", |
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 argparse | |
import io | |
import re | |
import sys | |
from pathlib import Path | |
import random | |
import subprocess | |
import shutil | |
import tempfile |
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
""" | |
A simple webserver for serving videos dumped as frames as real videos. | |
Point it towards a file hierarchy that looks like so: | |
| root | |
| |- video_1 | |
| | |- frame_0001.jpg | |
| | |- frame_0002.jpg | |
| | |- frame_0003.jpg | |
Video frames are read in 'natural order' by the `natsort` library. |
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
#!/usr/bin/python2 | |
# Author: Will Price | |
# Date: Jan 2011 | |
# Import statements: | |
# - Feedparser - needed to extract mailcount | |
# - Serial - needed to send command to Arduino | |
# - Time - waiting for gmail to be read | |
import feedparser, serial, time |
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
$ conda create -n rapids-0.18 -c rapidsai -c nvidia -c conda-forge -c defaults rapids=0.18 python=3.8 cudatoolkit=11.0 | |
Collecting package metadata (current_repodata.json): done | |
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. | |
Collecting package metadata (repodata.json) |
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
conda create -n jupyter -c conda-forge -y \ | |
python=3.8 \ | |
pip \ | |
nb_conda_kernels \ | |
jupyterlab \ | |
widgetsnbextension \ | |
black \ | |
isort \ | |
nodejs | |
conda activate jupyter |