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
View gist:79357
sample.ledger:
2008/01/01 income
assets:bank:checking $1
income:salary
2008/06/01 gift
assets:bank:checking $1
income:gifts
View gist:79365
$ cat t.ledger
2008/1/1 one
test:a 1
test:b
$ ledger -f t.ledger bal
1 a
-1 b
View gist:80759
~/src/hledger$ cat tttt.ledger
2009/1/1 a
expenses:food 10
assets:bank
~/src/hledger$ ledger -f tttt.ledger bal o --depth 1
10 expenses
View gist:88523
,"entriesFromTimeLogEntries" ~: do
-- setup common to entriesFromTimeLogEntries tests
today getCurrentDay
now getCurrentTime
tz getCurrentTimeZone
let clockin t a = TimeLogEntry 'i' t a
clockout t = TimeLogEntry 'o' t ""
yesterday = prevday today
mktime d s = LocalTime d $ fromMaybe midnight $ parseTime defaultTimeLocale "%H:%M:%S" s
View gist:88779
sample.ledger
-------------
2008/01/01 income
assets:bank:checking $1
income:salary
2008/06/01 gift
assets:bank:checking $1
income:gifts
View gist:89004
$ cabal haddock
cabal haddock
Preprocessing library hledger-0.3.98...
Preprocessing executables for hledger-0.3.98...
Running Haddock for hledger-0.3.98...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: HJScript-0.4.4, HJavaScript-0.4.4,
HStringTemplate-0.4.3, HaXml-1.13.3, MaybeT-0.1.2, binary-0.5.0.1, cpphs-1.6,
extensible-exceptions-0.1.1.0, happstack-0.2.1, happstack-data-0.2.1,
happstack-ixset-0.2.1, happstack-server-0.2.1, happstack-state-0.2.1,
View gist:96120
sha1 <- case (pgSelectedTab layout, rev) of
(EditTab,Nothing) -> liftIO $ catch (latest fs $ pathForPage page)
(\e -> if e == NotFound
then return ""
else throwIO e)
(EditTab,Just r) -> return r
otherwise -> return ""
let maybeSetSha1 | null sha1 = id
| otherwise = T.setAttribute "sha1" sha1
let filledTemp = T.render $
View gist:96127
end of formattedPage:
...
templ <- queryAppState template
sha1 <- case (pgSelectedTab layout, rev) of
(EditTab,Nothing) -> liftIO $ catch (latest fs $ pathForPage page)
(\e -> if e == NotFound
then return ""
else throwIO e)
(EditTab,Just r) -> return r
View gist:100974
~$ sudo port install gtk2 cairo librsvg libglade2 gtksourceview2 gtk-chtheme gtk2-clearlooks ---> Building py25-libxml2 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/optlocalvarmacportssourcesrsync.macports.orgreleaseportspythonpy25-libxml2/work/libxml2-python-2.6.21" && /opt/local/bin/python2.5 setup.py --no-user-cfg build " returned error 1 Command output: /opt/local/lib/python2.5/distutils/dist.py:247: UserWarning: 'licence' distribution option is deprecated; use 'license' warnings.warn(msg) usage: setup.py [globalopts] cmd1 [cmd1opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help
error: option --no-user-cfg not recognized
Error: The following dependencies failed to build: gtk-doc gnome-doc-utils py25-libxml2 rarian jasper Error: Status 1 encountered during processing.
View gist:116451
2009-05-22 10:00:41 PDT LOG: received fast shutdown request
2009-05-22 10:00:41 PDT LOG: aborting any active transactions
2009-05-22 10:00:41 PDT FATAL: terminating connection due to administrator command
2009-05-22 10:00:41 PDT LOG: shutting down
2009-05-22 10:00:41 PDT LOG: database system is shut down
2009-05-22 10:00:42 PDT LOG: logger shutting down
postgres@joyful:/var/log/postgres8.2/pg_log$ pg_ctlcluster 8.2 main start
The PostgreSQL server failed to start. Please check the log output.
You can’t perform that action at this time.