Skip to content

Instantly share code, notes, and snippets.

Simon Michael simonmichael

Block or report user

Report or block simonmichael

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
simonmichael / .bashrc.task
Last active Aug 21, 2019
taskwarrior config 2016/01
View .bashrc.task
# Simon's taskwarrior aliases
# general commands
alias t="task"
alias ta="task add"
alias td="task done"
alias t-="task delete"
alias tm="task modify"
This file has been truncated, but you can view the full file.
Fri Jul 26 00:40 2019 Time and Allocation Profiling Report (Final)
hledger +RTS -P -RTS bal -V -f examples/1000x1000x10.journal
total time = 1.35 secs (1347 ticks @ 1000 us, 1 processor)
total alloc = 1,482,942,296 bytes (excludes profiling overheads)
COST CENTRE MODULE SRC %time %alloc ticks bytes
simonmichael / a.txt
Created Jun 9, 2017
Ledger 3.1.1 options related to prices and valuation
View a.txt
Ledger 3.1.1 options related to prices and valuation
--basis (-B) Report in terms of cost basis, not amount or value. This is the only form of report which is guaranteed to always balance to zero, when no report-query
is specified. Only show totals for the top-most accounts.
--exchange commodity (-X)
Render all values in the given commodity, if a price conversion rate can be determined. Rates are always displayed relative to the date of the posting
simonmichael / gist:1070020
Created Jul 7, 2011
sample invoice layout in pandoc markdown
View gist:1070020
# INVOICE 20110706xx
------------------------------------- ---------------------------------
**To:**<br> **From:**<br>
Client XX<br> me<br>
address<br> address<br>
<br> <br>
<br> Email: ...<br>
<br> Phone: ...<br>
simonmichael / envelope-budgeting.journal
Last active Jun 27, 2019
envelope budgeting example
View envelope-budgeting.journal
; An example of YNAB-ish envelope budgetting with hledger/ledger
; cf
; Using accounts like the following:
; assets
; business
; bank
; wf
; bchecking
simonmichael / Makefile
Created Mar 3, 2018
XpenseTracker -> hledger makefile
View Makefile
# XpenseTracker iOS app -> hledger import & reports
# Fetch csv files from XpenseTracker iphone app (requires curl, funzip).
# Procedure:
# connect phone and computer to same network
# make csv
# start XpenseTracker app
# enter each XpenseTracker log, as prompted on computer
# (first time: options, set appropriate CSV fields)
# options, export, export
simonmichael / a.txt
Created May 18, 2019
nix show-config
View a.txt
11:41:36 ~$ nix show-config
allow-import-from-derivation = true
allow-unsafe-native-code-during-evaluation = false
allowed-impure-host-deps = /System/Library /bin/sh /dev /usr/lib
allowed-uris =
allowed-users = *
auto-optimise-store = false
build-hook = /nix/store/1jz25hcma179wbpi56blgajw47n5kgqd-nix-2.2.1/libexec/nix/build-remote
build-poll-interval = 5
build-users-group =
simonmichael / pricing.ledger
Created May 14, 2019
Testing ledger cost/price syntax, lots, revaluation, capital gains
View pricing.ledger
; Test ledger cost/price syntax, lots, revaluation, capital gains
P 2019-01-01 ETC 11 EUR
P 2019-02-01 ETC 12 EUR
; Fluctuating cost/price
; @, @@
; { }, {{ }}
; "functionally.. no difference"
View invoicing.journal
; accrual basis accounting
2016/2/1 * (201602ab) ab client invoice
revenues:business:consulting:ab $-1000
assets:business:accounts receivable:ab $1000
; or,
; cash basis accounting doesn't include invoices, but use an unbalanced posting to track it anyway
2016/2/1 * (201602ab) ab client invoice
(assets:business:accounts receivable:ab) $1000
simonmichael / accounts.txt
Last active May 8, 2019
a sample *ledger chart of accounts (first 3 levels): combined personal & business, eg for a freelancer
View accounts.txt
accounts receivable
accounts receivable
You can’t perform that action at this time.