This file contains hidden or 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 | |
| # Route wget traffic through Tor using torsocks | |
| # Usage: ./torwget.sh [wget-options] URL | |
| if [ $# -ge 1 ]; then | |
| >&2 echo "Usage: $0 [wget-options] URL" | |
| exit 1 | |
| fi | |
| if ! command -v torsocks &> /dev/null; then |
This file contains hidden or 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 cycler import cycler | |
| import matplotlib as mpl | |
| import matplotlib.pyplot as plt | |
| # Okabe-Ito color palette | |
| okabe_ito = [ | |
| "#000000", "#E69F00", "#56B4E9", "#009E73", | |
| "#F0E442", "#0072B2", "#D55E00", "#CC79A7" | |
| ] |
This file contains hidden or 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
| @echo off | |
| set /p github-dir=%GITHUB_DIR_LOCATION% | |
| if not exist %github-dir% ( | |
| echo "GitHub folder is missing! Creating..." | |
| mkdir "%github-dir%" 2>nul | |
| ) | |
| cd "%github-dir%" | |
| echo "Changed to GitHub directory" |
This file contains hidden or 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
| # Geant4 doesn't support zsh/ksh/etc. non-bash shells to source | |
| # its enviromental configuration script in the "normal" bash-like way. | |
| # Instead we have to change to Geant4's bin diretory and source the | |
| # appropriate `geant4.sh` script from there. | |
| # Suppose we installed Geant4 under the `${GEANT4_INSTALL}` directory | |
| if [ -f ${GEANT4_INSTALL}/bin/geant4.sh ]; | |
| then | |
| cd ${GEANT4_INSTALL}/bin | |
| source geant4.sh |