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 / 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
simonmichael / envelope-budgeting.journal
Last active Apr 15, 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 / plaid-wf-pchecking.csv.rules
Created Mar 27, 2019
hledger CSV rules for CSV downloaded from Plaid
View plaid-wf-pchecking.csv.rules
include common.rules
include plaid.rules
account1 sm:assets:bank:wf:pchecking
simonmichael /
Last active Mar 15, 2019
intellij-haskell 0.44 notes

intellij-haskell 0.44 feedback

tested with IntelliJ IDEA 2018.3, mac mojave, 2013 macbook air with 8G ram, hledger repo


had to remove alpha plugins repo to see beta 44

installed smoothly in a few minutes (most things probably previously installed)

continuing intermittent errors about starting stack repl taking more than 5s and haskell support not available yet

while building hoogle db ?

turned off power save mode for inspections, and for hlint installation to complete (?)

type signature on hover seemed to work intermittently, was hard to discover

I tried all of these, only the last works, shouldn’t it be just hover ? Or at least, don’t require moving off word

simonmichael / a.txt
Created Mar 13, 2019
nix install log
View a.txt
~$ nix-env -f channel:nixos-unstable -iA hledger
unpacking ''...
replacing old 'hledger-1.14.1'
installing 'hledger-1.14.1'
these derivations will be built:
simonmichael / budget.ledger
Last active Mar 12, 2019
seeking minimal ledger budget examples
View budget.ledger
; whenever there's a food expense, deduct the same amount from the budget
= /^expenses:food$/
(budget:food) -1
1/1 opening balances
assets:checking 1000
equity:opening balances
1/2 budget allocation ; could also do this with an automated posting on income txns
simonmichael / 1-example
Last active Mar 10, 2019
finance scripts in a robust shake file
View 1-example
~/notes$ ./do.hs
Linking do ...
~/notes$ ./do
./do.hs install deps & (re)compile this script
./do [help] show this help
./do time show time status
./do money show money status
./do lassets show liquid assets
./do incexp show monthly income & expenses
You can’t perform that action at this time.