-
Install XQuartz.
-
Install dwm using Homebrew (or whatever):
brew install dwm -
Create a
xinitrc.dscript for dwm:
I hereby claim:
- I am afh on github.
- I am afh (https://keybase.io/afh) on keybase.
- I have a public key whose fingerprint is CCAC 8ADA 2562 CE48 DC72 09AA 6961 00B8 8C22 DD8B
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| show_gui = false | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # Ubuntu Saucy Salamander 13.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import json | |
| import ledger | |
| total = ledger.Balance() | |
| journal = ledger.read_journal('test/input/demo.ledger') | |
| for post in journal.query(''): | |
| total += post.amount | |
| print post.account, post.amount |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % python python/demo.py | |
| Welcome to the Ledger.Python demo! | |
| Demo completed successfully. | |
| *** glibc detected *** python: double free or corruption (!prev): 0x0000000002360cd0 *** | |
| ======= Backtrace: ========= | |
| /lib/x86_64-linux-gnu/libc.so.6(+0x76d76)[0x7f7c56bc4d76] | |
| /lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f7c56bc9aac] | |
| /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev+0x9e)[0x7f7c5490dd0e] | |
| /lib/x86_64-linux-gnu/libc.so.6(+0x36df2)[0x7f7c56b84df2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/urlview.c b/urlview.c | |
| index f23d47f..b0fc63f 100644 | |
| --- a/urlview.c | |
| +++ b/urlview.c | |
| @@ -369,7 +369,7 @@ into a line of its own in your \n\ | |
| cbreak (); | |
| noecho (); | |
| #ifdef HAVE_CURS_SET | |
| - curs_set (1); | |
| + curs_set (0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % cat <<EOF | ledger -f - --amount='(floor(amount()))' reg | |
| D ¤ 0,000.00 | |
| 01/01 foobar | |
| Account ¤ 12.84 | |
| Other | |
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/menu.c b/menu.c | |
| index ff830f3..e14caf7 100644 | |
| --- a/menu.c | |
| +++ b/menu.c | |
| @@ -112,10 +112,20 @@ static void print_enriched_string (int attr, unsigned char *s, int do_color) | |
| addch (' '); | |
| break; | |
| case M_TREE_RARROW: | |
| - addch ('>'); | |
| + if (option (OPTASCIICHARS)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --date-format %d.%m.%Y | |
| --decimal-comma | |
| --basis | |
| D € 0.000,00 | |
| D 0,00% | |
| ;= expr account =~ /^Einnahmen:/ | |
| = /^Einnahmen:/ | |
| (Einnahmen:Netto) (has_tag("Steuersatz") ? (-floor(total / ((tag("Steuersatz")*0,01)+1%))) : 0) | |
| (Passiva:USt:Ein) (has_tag("Steuersatz") ? (floor(amount / ((tag("Steuersatz")*0,01)+1%)) * (tag("Steuersatz")*0,01)) : 0) |