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 | |
inkscape -D -z --file=$1.svg --export-pdf=$1.pdf --export-latex |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
tr '\r' '\n' < $1 > $1.tmp | |
mv $1.tmp $1 |
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 | |
# check that WORKON_HOME has been set | |
function _venv_verifty_workon_home { | |
if [ ! -v WORKON_HOME ]; then | |
printf "$1: please set WORKON_HOME, " | |
printf ".bashrc example: \"export WORKON_HOME=<path>\"\n" | |
printf "quitting.\n" | |
return 1 |
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 | |
export PATH=$HOME/local/bin:$PATH | |
export PYTHON_2_VERSION=2.7.13 | |
export PYTHON_3_VERSION=3.6.1 | |
# executables will be installed in $HOME/local/bin | |
mkdir -p $HOME/local/bin | |
cd $HOME/local/bin |
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 | |
# pixman | |
wget https://cairographics.org/releases/pixman-0.34.0.tar.gz | |
tar -xvf pixman-0.34.0.tar.gz | |
cd pixman-0.34.0/ | |
./configure --prefix=$HOME/local --disable-static | |
make | |
make install | |
export pixman_CFLAGS="-I$HOME/local/include/pixman-1" |
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 python3 | |
import argparse | |
import pickle | |
from pystan import StanModel | |
def main(): | |
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter, | |
description="This script compiles a stan model and pickles it to disc") | |
parser.add_argument("stan", help="The stan model file") |
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
#! /bin/bash | |
GCC_VERSION="10.1.0" | |
WORKDIR="$HOME/gcc/src/" | |
INSTALLDIR="/$HOME/gcc/install/gcc-${GCC_VERSION}" | |
set +h | |
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE LD_LIBRARY_PATH |
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 | |
while read p; do | |
getent hosts $p | cut -d' ' -f 1 | |
done <$1 |
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 | |
find . -name "*eps" -exec sh -c 'eps2png "${0%.*}"' {} \; |