Play with "Argo Workflow" in your local kind
cluster.
The following instructions were tested in macOS Monterey (12.4), on 10 Jul 2022.
Ensure docker
is installed and running.
// runServer will start the HTTPServer, handling graceful | |
// shutdown on receives SIGTERM / SIGINT. | |
func runServer(addr string, engine *gin.Engine) { | |
s := &http.Server{ | |
Addr: addr, | |
Handler: engine.Handler(), | |
} | |
go func() { | |
log.Info("server starting") |
alias ghopen='gh pr view -w ' | |
alias ghcreate="git publish && gh pr create --body-file ${MLPV2_DIR}/.github/pull_request_template.md --fill --draft && sleep 1 && ghopen" | |
alias ghstate="gh pr status --json state | jq -r '.currentBranch.state'" |
brew install pandoc | |
brew tap homebrew/cask | |
brew --cask install basictex | |
eval "$(/usr/libexec/path_helper)" | |
export PATH="$PATH:/Library/TeX/texbin/" | |
sudo tlmgr update --self | |
sudo tlmgr install texliveonfly | |
sudo tlmgr install adjustbox | |
sudo tlmgr install tcolorbox | |
sudo tlmgr install collectbox |
#!/bin/bash | |
for br in $(git br | cut -c 3-) ; do | |
if [ "$br" == "master" ] ; then | |
continue | |
fi | |
git co "$br" | |
state=$(gh pr status --json state --jq .currentBranch.state) | |
if [ "$state" == "MERGED" ] ; then | |
git co master |
[user] | |
email = | |
name = Antoine Hebert | |
[alias] | |
cam = commit -am | |
s = status | |
ci = commit | |
pu = push | |
llg = log --graph --all --decorate | |
lg = log --graph --abbrev-commit --decorate --format=format:'%C(cyan)%h%C(reset) - %C(green)(%ar)%C(reset) %C()%s%C(reset) %C(cyan)- %an%C(reset)%C(yellow)%d%C(reset)' --all |
sudo cryptsetup luksFormat <device path>
to create the encrypted partition.lsblk
, you should see the encrypted partition with a name ending with _crypt
, take note of it.sudo pvcreate /dev/mapper/<encrypted partition name>
.# The following lines should be added to the file ~/.bashrc | |
# When the current working directory contains a file named .conda-auto-env, the | |
# conda environement whose name is the content of the file will be activated | |
conda-auto-env() { | |
if [ -e ".conda-auto-env" ] ; then | |
env=$(cat .conda-auto-env) | |
if [ "$CONDA_DEFAULT_ENV" != "$env" ] ; then | |
conda activate $env | |
fi | |
fi |
from urllib.request import urlopen | |
from io import BytesIO | |
from zipfile import ZipFile | |
from subprocess import Popen | |
from os import chmod | |
from os.path import isfile | |
import json | |
import time | |
import psutil |
from urllib.request import urlopen | |
from io import BytesIO | |
from zipfile import ZipFile | |
def download_and_unzip(url, extract_to='.'): | |
http_response = urlopen(url) | |
zipfile = ZipFile(BytesIO(http_response.read())) | |
zipfile.extractall(path=extract_to) |