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

# 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-*
@javdl
javdl / chocolatey-windows-development-env-setup.ps1
Last active August 1, 2018 14:09 — forked from amogram/chocolatey-env-setup.ps1
A Chocolatey script for PowerShell I use to set up my Windows development environment. I use this when setting up my own Dev VMs. Use at your own risk.See http://bit.ly/1a301JK and http://chocolatey.org/ for more information.
# Simple environment setup script with Chocolatey
# https://chocolatey.org/install
# Post install
# Setup Windows Subsystem for Linux (WSL) terminal in Windows 10 :
# https://stackoverflow.com/questions/44450218/how-do-i-use-bash-on-ubuntu-on-windows-wsl-for-my-vs-code-terminal#_=_
# https://stackoverflow.com/a/44450219/1251997
# GitHub Desktop (for ssh-key agent)
choco feature enable -n allowGlobalConfirmation
http://psget.net/
@javdl
javdl / grid.js
Created January 22, 2018 08:57 — forked from wschenk/grid.js
create-react-app grid.js rmwc example
import React, {Component} from 'react'
import {
GridList,
GridTile,
GridTilePrimary,
GridTilePrimaryContent,
GridTileSecondary,
GridTileTitle } from 'rmwc'
class Grid extends Component {
@javdl
javdl / Origin to Upstream
Last active December 6, 2017 20:56 — forked from javigomez/Origin to Upstream
Git command to rename the origin to upstream when you just forked a project
git remote rename origin upstream
git remote add origin git@github.com:user/fork.git
git push origin master
@javdl
javdl / Zsh & theme
Created June 23, 2016 07:39 — forked from leemour/Zsh & theme
Zsh installation and Agnoster theme settings
# Railscast
http://railscasts.com/episodes/308-oh-my-zsh
# Install Zsh
sudo apt-get update && sudo apt-get install zsh
# Install Oh-my-zsh
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh
# Make ZSH default shell
@javdl
javdl / README.md
Created October 2, 2015 09:23 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio: https://gentlenode.com/
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration