Skip to content

Instantly share code, notes, and snippets.

:octocat:
cleaning up data 🔨

Julien Bisconti veggiemonk

:octocat:
cleaning up data 🔨
View GitHub Profile
@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
View cloudSettings
{"lastUpload":"2020-08-04T08:58:56.214Z","extensionVersion":"v3.4.3"}
@veggiemonk
veggiemonk / python3_osx.sh
Last active Jan 10, 2020
Python 3 on Mac Osx
View python3_osx.sh
brew install python # default is version 3.X
cat << EOF >> ~/.zshrc
alias python="python3"
alias p="python3"
alias pip="pip3"
alias path='echo -e ${PATH//:/\\n}'
export PATH="$(python -m site --user-base)/bin":$PATH
EOF
@veggiemonk
veggiemonk / basic_install.md
Last active Jan 23, 2020
here we go again
View basic_install.md
sudo xcode-select --install

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
View init.vim
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
You can’t perform that action at this time.