Skip to content

Instantly share code, notes, and snippets.

@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

#!/bin/bash
# Author : Joost
# In debian instead of making own user root, to install use the root user:
# su
# make sure to edit /root/.bashrc and add the path (https://unix.stackexchange.com/questions/160019/dpkg-cannot-find-ldconfig-start-stop-daemon-in-the-path-variable/364199)
# export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# PROtip: add a file .trackerignore to your $HOME/git folder. That way Debian Search will not start indexing it. (maxing out a core!)
# From Software center:
# 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!)

@javdl
javdl / GitLab Runner on local machine to Debug GitLab CI Builds Locally.md
Last active August 22, 2018 14:15
Create build pipelines or Debug gitlab ci problems on your local machine.

GitLab Runner on local machine to Debug GitLab CI Builds Locally

Create build pipelines or Debug gitlab ci problems on your local machine. Also, you can use this runner to run builds on your local machine instead of using shared runners. I would recommend doing that on a server though.

Then on your local machine run one of your build/test stages:

https://gitlab.com/gitlab-com/support-forum/issues/2674
https://cloud.google.com/container-registry/docs/advanced-authentication#json_key_file