Modernize more pages

This commit is contained in:
Rico Sta. Cruz 2017-08-29 23:43:49 +08:00
parent 62eadce0d2
commit 26384b35ad
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
4 changed files with 59 additions and 22 deletions

View File

@ -1,19 +1,38 @@
---
title: GitHub pages
category: Jekyll
layout: 2017/sheet
---
$ echo "foobar.com" > CNAME
$ git commit && git push
## Setting up a domain
### Update your repo
```sh
$ echo "foobar.com" > CNAME
$ git commit && git push
```
Create a `CNAME` file with your domain on it.
### Set up your domain
Subdomain (like www):
{: .-setup}
CNAME => username.github.io
Apex domains:
{: .-setup}
ALIAS => username.github.io
Apex domains (alternative):
{: .-setup}
A => 192.30.252.153, 192.30.252.154
## References
{: .-one-column}
- <https://pages.github.com>

View File

@ -1,16 +1,22 @@
---
title: Ledger CSV format
category: Ledger
layout: 2017/sheet
---
$ ledger csv
## Ledger CSV format
{: .-one-column}
Output:
date , ? , desc , account , currency , amt , pending/cleared , ?
"2013/09/02" , "" , "things" , "Assets:Cash" , "P" , "-2000" , "*" , ""
"2013/09/02" , "" , "things" , "Liabilities:Card" , "P" , "-200" , "*" , ""
"2013/09/02" , "" , "things" , "Expenses:Things" , "P" , "2200" , "*" , ""
"2013/09/04" , "" , "stuff" , "Assets:Cash" , "P" , "-20" , "*" , ""
"2013/09/04" , "" , "stuff" , "Expneses:Others" , "P" , "20" , "*" , ""
```
$ ledger csv
```
{: .-setup}
```csv
date , ? , desc , account , currency , amt , pending/cleared , ?
"2013/09/02" , "" , "things" , "Assets:Cash" , "P" , "-2000" , "*" , ""
"2013/09/02" , "" , "things" , "Liabilities:Card" , "P" , "-200" , "*" , ""
"2013/09/02" , "" , "things" , "Expenses:Things" , "P" , "2200" , "*" , ""
"2013/09/04" , "" , "stuff" , "Assets:Cash" , "P" , "-20" , "*" , ""
"2013/09/04" , "" , "stuff" , "Expneses:Others" , "P" , "20" , "*" , ""
```

View File

@ -1,19 +1,30 @@
---
title: Ledger queries
category: Ledger
layout: 2017/sheet
---
- @`payee`
- %`tag`
- =`note`
- #`code`
- `term` and `term`
- `term` or `term`
- not `term`
### Query characters
Examples:
| Query | Description |
| --- | --- |
| `@payee` | Payee |
| `%tag` | Tag |
| `=note` | Note |
| `#code` | Code |
| --- | --- |
| `TERM and TERM` | Boolean and |
| `TERM or TERM` | Boolean or |
| `not TERM` | Boolean not |
ledger r @taco
ledger r comment =~ /landline/
### Examples
See: http://ledger-cli.org/3.0/doc/ledger3.html#Complex-expressions
```sh
ledger r @taco
ledger r comment =~ /landline/
```
## References
{: .-one-column}
- <http://ledger-cli.org/3.0/doc/ledger3.html#Complex-expressions>

View File

@ -3,6 +3,7 @@ title: Ledger CLI
category: Ledger
layout: 2017/sheet
updated: 201708
weight: -5
---
### Basic usage