get ssh public keys from GitHub
curl https://github.com/username.keys | tee ~/.ssh/authorized_keys| % Math commands by Thomas Minka | |
| \newcommand{\var}{{\rm var}} | |
| \newcommand{\Tr}{^{\rm T}} | |
| \newcommand{\vtrans}[2]{{#1}^{(#2)}} | |
| \newcommand{\kron}{\otimes} | |
| \newcommand{\schur}[2]{({#1} | {#2})} | |
| \newcommand{\schurdet}[2]{\left| ({#1} | {#2}) \right|} | |
| \newcommand{\had}{\circ} | |
| \newcommand{\diag}{{\rm diag}} | |
| \newcommand{\invdiag}{\diag^{-1}} |
The repository for the assignments is public and Github does not allow the creation of private forks for public repositories.
The offical docs for creating a private fork by duplicating the repo are here.
For this class's assignments the commands are:
git clone --bare [email protected]:jakobottar/2022fall-image-processing.git| #! /usr/bin/python | |
| # https://gist.github.com/jakobottar/34c51039dd36ced8db79458828c07061 | |
| import argparse | |
| import os | |
| import csv | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument( | |
| "-d", "--directory", type=str, default="./images/", help="dataset location" |
| #!/bin/bash | |
| # Setting this, so the repo does not need to be given on the commandline: | |
| export BORG_REPO=ssh://[email protected]:1985//backups/$HOSTNAME | |
| # Store repo passphrase | |
| export BORG_PASSPHRASE='supersecretpassphrase' | |
| # some helpers and error handling: | |
| info() { printf "\n%s %s\n\n" "$( date )" "$*" >&2; } |
| # Shows the exit status of the last command if non-zero | |
| # Uses "#" instead of "»" when running with elevated privileges | |
| PROMPT="%m %{${fg_bold[red]}%}:: %{${fg[green]}%}%2~ " | |
| # PROMPT+='$(git_prompt_info)%{${fg[blue]}%}»%{${reset_color}%} ' | |
| PROMPT+='$(git_prompt_info)%{${fg[blue]}%}»%{${reset_color}%} ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}📝" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}) ✅" |