Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
cleaning up data 🔨

Julien Bisconti veggiemonk

:octocat:
cleaning up data 🔨
View GitHub Profile
@veggiemonk
veggiemonk / install_wireguard.sh
Created Sep 17, 2020
automated Install wireguard script for Ubuntu 20.04
View install_wireguard.sh
@!/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"
View generate-kubeflow-manifest.sh
#!/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.
@veggiemonk
veggiemonk / .zshrc
Last active Sep 12, 2020
zshrc linux
View .zshrc
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"
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
veggiemonk / Arch_Linux_soyoustart_mess.md
Last active May 30, 2020
Soyoustart.com Arch Linux server install command history, as I'm not going through that again!
View Arch_Linux_soyoustart_mess.md

Install Arch Linux on SoYouStart (OVH spinoff) server

This escalated quickly....

From: https://www.soyoustart.com/ie/distributions/

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

¬‿¬ mmmmmokkkkkkkkkay

@veggiemonk
veggiemonk / migrate_reveal.sh
Created Apr 27, 2020
small bash scripts to migrate all slides
View migrate_reveal.sh
#!/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>'
View demo-cloud-run.sh
#!/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"
View a.c
#include<stdio.h>
int main(void){
printf("Hello world\n");
return 0;
}
@veggiemonk
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
You can’t perform that action at this time.