This file contains 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
package main | |
import ( | |
"bytes" | |
"crypto/sha256" | |
"encoding/hex" | |
"fmt" | |
) | |
// Go Playground https://go.dev/play/p/1EaM_5NQmc5 |
This file contains 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
package main | |
import ( | |
"fmt" | |
"math/big" | |
"strings" | |
"github.com/google/uuid" | |
) |
This file contains 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
curl \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/orgs/flyteorg/repos > repos.json | |
cat repos.json | jq '.[].git_url' | xargs -I REPO git clone REPO |
This file contains 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
format = """ | |
$username\ | |
$hostname\ | |
$directory\ | |
$git_branch\ | |
$git_commit\ | |
$git_state\ | |
$git_status\ | |
$docker_context\ | |
$package\ |
This file contains 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 | |
set -xe | |
sudo apt update && sudo apt install -y wireguard | |
export CLIENT_PUBLIC_KEY="[INSERT CLIENT PUB KEY HERE]" | |
export CLIENT_VPN_IP="10.0.0.2" # change this if necessary, the server vpn ip is 10.0.0.1 as defined in the config | |
export SERVER_NAME="serverwg" |
This file contains 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 | |
command -v kfctl >/dev/null 2>&1 || { echo; echo >&2"command kfctl is missing"; exit 1; } | |
command -v wget >/dev/null 2>&1 || { echo; echo >&2"command wget is missing"; exit 1; } | |
# Set the following kfctl configuration file: | |
# Other config can be found here: https://www.kubeflow.org/docs/started/getting-started/ | |
export CONFIG_URI="https://raw.githubusercontent.com/kubeflow/manifests/v1.1-branch/kfdef/kfctl_k8s_istio.v1.1.0.yaml" | |
# Set KF_NAME to the name of your Kubeflow deployment. You also use this | |
# value as directory name when creating your configuration directory. |
This file contains 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
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export ZSH="~/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
DISABLE_UPDATE_PROMPT="true" | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
DISABLE_MAGIC_FUNCTIONS="true" |
This file contains 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
let $RTP=split(&runtimepath, ',')[0] | |
let $RC="$HOME/.vim/vimrc" | |
filetype plugin indent on | |
syntax on | |
set shiftwidth=4 tabstop=4 softtabstop=4 expandtab autoindent smartindent | |
set path=.,** | |
set backspace=start,eol,indent | |
set hidden |
This file contains 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 | |
rm -rf presentations | |
mkdir -p presentations | |
function create_html() { | |
local HTML='<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>Presentations</title></head><body><ul>' |
This file contains 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 | |
set -xe | |
# Meant to be run in cloud shell | |
# Enable APIs if not already done | |
# gcloud services enable run.googleapis.com containerregistry.googleapis.com | |
echo | |
echo "download container image locally" |