Skip to content

Instantly share code, notes, and snippets.

View javdl's full-sized avatar
:octocat:
Crunching numbers

Joost van der Laan javdl

:octocat:
Crunching numbers
View GitHub Profile
@javdl
javdl / upgrade-ubuntu-with-Ansible.yml
Created November 7, 2019 08:46 — forked from kiview/upgrade.yml
Ubuntu upgrade with Ansible
---
- hosts:
- all
become: true
tasks:
- name: Update apt cache
apt: update_cache=yes
- name: Upgrade packages
apt: upgrade=dist
@javdl
javdl / WireGuard_Setup.txt
Created October 8, 2019 20:35 — forked from chrisswanda/WireGuard_Setup.txt
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@javdl
javdl / wordlist.txt
Created October 7, 2019 11:07 — forked from stevepaulo/wordlist.txt
Mnemonic word list for server names, release names, etc... solve the "hard problem" of naming things
From http://web.archive.org/web/20090918202746/http://tothink.com/mnemonic/wordlist.html
Word selection criteria:
- The wordlist contains 1626 words.
- All words are between 4 and 7 letters long.
- No word in the list is a prefix of another word (e.g. visit, visitor).
- Five letter prefixes of words are sufficient to be unique.
The rest of the criteria are less strict. You may find exceptions to all of them because it is difficult to satisfy them all at the same time.
- The words should be usable by people all over the world. The list is far from perfect in that respect. It is heavily biased towards western culture and English in particular. The international vocabulary is simply not big enough. One can argue that even words like "hotel" or "radio" are not truly international. You will find many English words in the list but I have tried to limit them to words that are part of a beginner's vocabulary or words that have close relatives in other european languages. In some cases a word has a different meaning
@javdl
javdl / budgeting.md
Created August 27, 2019 11:04 — forked from ony/budgeting.md
Budgeting with hledger

The main answers I need from budgeting:

  • How much extra money I can spend without compromising ability to pay my bills?
  • How big my earnings should be to cover my expenses?
  • How can I optimize my expenses?

Tracking your expenses

One of my favorite reports hledger supports is

@javdl
javdl / budgeting.md
Created August 27, 2019 11:04 — forked from ony/budgeting.md
Budgeting with hledger

The main answers I need from budgeting:

  • How much extra money I can spend without compromising ability to pay my bills?
  • How big my earnings should be to cover my expenses?
  • How can I optimize my expenses?

Tracking your expenses

One of my favorite reports hledger supports is

@javdl
javdl / crostini_developer_install.sh
Last active August 28, 2021 19:07
Crostini script for developer install - Google Chrome OS (untested)
#!/bin/bash
# Author : Joost van der Laan
#
sudo apt update
sudo apt install wget unzip
sudo apt install curl
sudo apt install htop
#!/bin/bash
# Author : Joost
#
# From Software center:
# VLC
# VS code
# virtual box
# shutter
# install unity tweak tool
# Running this runs the above
wget -O - https://gist.githubusercontent.com/Joostvanderlaan/5eca1940e5c557b7d1ad5a2a33ab13af/raw/chromeos-crostini-developer-install.sh | bash

Use Google Cloudshell with your favorite editor

Make sure your GCP project is set and you have the gcloud SDK installed. This is a quick guide based on a Google blogpost

Install sshfs

apt install sshfs

Test if you can connect with a regular SSH session (this allows SSH from any terminal, so you can use your favorite terminal with Cloudshell too!)