Skip to content

Instantly share code, notes, and snippets.

cleaning up data 🔨

Julien Bisconti veggiemonk

cleaning up data 🔨
View GitHub Profile
veggiemonk /
Created Sep 17, 2020
automated Install wireguard script for Ubuntu 20.04
@!/usr/bin/env bash
set -xe
sudo apt update && sudo apt install -y wireguard
export CLIENT_VPN_IP="" # change this if necessary, the server vpn ip is as defined in the config
export SERVER_NAME="serverwg"
#!/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:
export CONFIG_URI=""
# Set KF_NAME to the name of your Kubeflow deployment. You also use this
# value as directory name when creating your configuration directory.
veggiemonk / .zshrc
Last active Sep 12, 2020
zshrc linux
View .zshrc
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="~/.oh-my-zsh"
# Uncomment the following line if pasting URLs and other text is messed up.
View vimrc
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
veggiemonk /
Last active May 30, 2020 Arch Linux server install command history, as I'm not going through that again!

Install Arch Linux on SoYouStart (OVH spinoff) server

This escalated quickly....


So you Start brings you a wide selection of distributions, offered and regularly updated by OVH.

¬‿¬ mmmmmokkkkkkkkkay

veggiemonk /
Created Apr 27, 2020
small bash scripts to migrate all slides
#!/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>'
set -xe
# Meant to be run in cloud shell
# Enable APIs if not already done
# gcloud services enable
echo "download container image locally"
View a.c
int main(void){
printf("Hello world\n");
return 0;
veggiemonk / fetch.js
Last active Mar 13, 2020
fetch boilerplate
View fetch.js
* readRequestBody reads in the incoming request body
* Use await readRequestBody(..) in an async function to get the string
* @param {Request} request the incoming request to read from
export async function readRequestBody(request:Request) {
const { headers } = request
const contentType = headers.get('content-type')
if (contentType != null) {
View debug.log
Hello - from /Users/julien/.vscode/extensions/jaredly.reason-vscode-1.7.7/bin.native
Previous log location: /var/folders/gv/91zw6nln3054s17v6xpj0c4h0000gn/T/lsp.log
Sending notification {"jsonrpc": "2.0", "method": "client/registerCapability", "params": {"registrations": [{"id": "watching", "method": "workspace/didChangeWatchedFiles", "registerOptions": {"watchers": [{"globPattern": "**/bsconfig.json"}, {"globPattern": "**/.merlin"}]}}]}}
Sending response {"id": 0, "jsonrpc": "2.0", "result": {"capabilities": {"textDocumentSync": 1, "hoverProvider": true, "completionProvider": {"resolveProvider": true, "triggerCharacters": ["."]}, "signatureHelpProvider": {"triggerCharacters": ["("]}, "definitionProvider": true, "typeDefinitionProvider": true, "referencesProvider": true, "documentSymbolProvider": true, "codeActionProvider": true, "executeCommandProvider": {"commands": ["reason-language-server.add_to_interface_inner"]}, "codeLensProvider": {"resolveProvider": true}, "documentHighlightProvider": true, "document