You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
Converting a Word Document to Markdown in One Move
The Problem
A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.
Installing Pandoc
On a mac you can use homebrew by running the command brew install pandoc.
When developing a program in Ruby, you may sometimes encounter a memory leak.
For a while now, Ruby has a facility to gather information about what objects are laying around:
ObjectSpace.
There are several approaches one can take to debug a leak. This discusses a time-based approach, where
a full memory dump is generated every, say, 5 minutes, during a time that the memory leak is showing up.
Afterwards, one can look at all the objects, and find out which ones are staying around, causing the
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
This is a rough guide to automating a nightly 7-day rolling remote backup
of your PostgreSQL database(s) for your dokku
app(s). There is a slight difference if you are using an older version of Dokku.
This will save the comprssed output of pg_dump as well as the contents
of the /home directory on your dokku machine (just in case).
You will need to create a shell script in /root and edit the cron file.