I wanted to use singularity for my own selfish purposes; when presenting my research I want it to be easy for someone else to try.
sudo apt install singularity
.
% Only generate citations. Build with latexmk -pdf | |
\documentclass{article} | |
\begin{document} | |
\nocite{*} | |
\bibliographystyle{plain} | |
\bibliography{mybib} | |
\end{document} |
#!/bin/bash | |
echo "$1" | awk -F'[\-.]' '{print NF*15+70}' |
#!/bin/bash | |
# Embed fonts in pdf files. This may be needed for R graphics. | |
# You can check if fonts are embedded using pdffonts (on mac, xpdf-pdffonts); check the emb column | |
mkdir -p unembedded | |
cp *.pdf unembedded/ | |
for f in unembedded/*; do | |
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -dEmbedAllFonts=true -sOutputFile=$(basename $f) -f $f | |
done | |
# Other things you may need to do to pass the IEEE pdf eXpress (pdf-express.org) |
#!/bin/bash | |
# Deduplicate. Works on BSD. | |
# Port to GNU by replacing | |
# -E with -regex-type posix-extended | |
set -e | |
if [ "$#" -ne 1 ]; then | |
echo "usage: dedupe.sh <dir>" | |
exit 2 | |
elif [ "$(uname)" != 'Darwin' ]; then | |
echo "Only Mac supported, see comments" |
REM Miner. | |
REM !!!! NOTE: You should edit the 'start' command to restart whichever process you want. !!!! | |
SET MINER=EthDcrMiner64.exe | |
REM Examples for a particular games, or you can just use Steam in general. | |
SET GAME=Dota2.exe | |
REM SET GAME=Steam.exe | |
REM Testing with echoes |
#!/bin/bash | |
INSTALL='sudo apt --assume-yes install' | |
POPULARITY_CONTEST='yes' | |
$INSTALL curl | |
$INSTALL gunzip | |
$INSTALL awk | |
if [ "$POPULARITY_CONTEST" = 'yes' ]; then | |
curl https://popcon.debian.org/by_inst.gz > allpackages.txt.gz | |
gunzip allpackages.txt.gz | |
awk '!/^#/{if ($4 > 0) print $2}' allpackages.txt > pkg.txt |
""" vimrc | |
" Install some packages I like | |
" mkdir -p ~/.vim/pack/bundle/start | |
" cd ~/.vim/pack/bundle/start | |
" git clone https://tpope.io/vim/surround.git | |
" vim -u NONE -c "helptags surround/doc" -c q | |
" git clone https://tpope.io/vim/commentary.git | |
" vim -u NONE -c "helptags commentary/doc" -c q | |
" git clone https://github.com/atelierbram/vim-colors_atelier-schemes.git | |
" git clone https://github.com/trefis/coquille.git |
% Copyright 2020 Samuel Pollard. All rights reserved. | |
% Requires imagemagick for "convert" binary. Can also do .png | |
% Build using `pdflatex -shell-escape sp.tex` | |
% My Logo | |
%\documentclass[crop,tikz=true,convert={outfile=mylogo.svg}]{standalone} | |
\documentclass[crop,tikz=true,convert={outfile=mylogo.png,size=1080x1080,density=720}]{standalone} | |
\begin{document} % You saw it here first | |
\begin{tikzpicture} | |
% Plot lines | |
\draw[help lines, color=gray!40, dashed] (-2,-2) grid (2,2); |