Skip to content

Instantly share code, notes, and snippets.

@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!)

https://gitlab.com/gitlab-com/support-forum/issues/2674
https://cloud.google.com/container-registry/docs/advanced-authentication#json_key_file
# Run it from the root of your Jekyll site like bash Jekyll-S3.sh
##
# Configuration options
##
STAGING_BUCKET='s3://<YOUR-S3-BUCKET-NAME>'
LIVE_BUCKET='s3://<YOUR-S3-BUCKET-NAME>'
SITE_DIR='_site/'
##
@javdl
javdl / .bashrc
Created April 13, 2018 07:00 — forked from copperlight/.bashrc
Window Subsystem for Linux ssh-agent Configuraton
# ... more above ...
# wsfl bash is not a login shell
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# ssh-agent configuration
if [ -z "$(pgrep ssh-agent)" ]; then
rm -rf /tmp/ssh-*