It seems heroku caches lots of node modules in /home/ubuntu/.local/share/heroku/tmp. Just empty this dir and you'll be fine.
# in /home/ubuntu/.local/share/heroku
$ rm -rf tmp/*
# check
$ du -sh *
| #!/usr/bin/env ruby | |
| HELP_STR = "Usage: $ remove_rightslink_images file1.pdf file2.pdf" | |
| begin | |
| require 'hexapdf' # HexaPDF is AGPL licensed according to https://hexapdf.gettalong.org/ | |
| rescue LoadError | |
| if system("gem install --no-doc hexapdf") | |
| Gem.clear_paths | |
| require "hexapdf" |
| // ISC License (ISC) Copyright 2019 John Murphy <[email protected]> | |
| // | |
| // Permission to use, copy, modify, and/or distribute this software for any | |
| // purpose with or without fee is hereby granted, provided that the above | |
| // copyright notice and this permission notice appear in all copies. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
| // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
| // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| #! /usr/bin/env ruby | |
| # NOTE: Requires Ruby 2.1 or greater. | |
| # This script can be used to parse and dump the information from | |
| # the 'html/contact_info.htm' file in a Facebook user data ZIP download. | |
| # | |
| # It prints all cell phone call + SMS message + MMS records, plus a summary of each. | |
| # | |
| # It also dumps all of the records into CSV files inside a 'CSV' folder, that is created |
| #!/bin/bash | |
| set -e | |
| echo -e "Image Converter for Slack Emoji\nNOTICE: The image will be overwritten." | |
| if [ $# -lt 1 ]; then | |
| echo "USAGE:" | |
| echo -e " ${0} IMG_FILE [IMG_FILE...]\n" | |
| echo "IMG_FILE:" |
| exports.handler = function (event, context) { | |
| try { | |
| console.log("event.session.application.applicationId=" + event.session.application.applicationId); | |
| if (event.session.application.applicationId !== "amzn1.echo-sdk-ams.app.b67c3ab5-40ec-4345-856e-21c281cfded7") { | |
| context.fail("Invalid Application ID"); | |
| } | |
| if (event.request.type === "IntentRequest") { | |
| onIntent(event.request, |
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.
On a mac you can use homebrew by running the command brew install pandoc.
Save this file as ai2svg, make it executable via chmod +x ai2svg then run it optionally passing the folder to look for.
It will convert in that folder, or the current one, all .ai files into .svg
#!/usr/bin/bash
createsvg() {
local margin="$1"
local d| #!/usr/bin/env python | |
| # Note, updated version of | |
| # https://github.com/ipython/ipython-in-depth/blob/master/tools/nbmerge.py | |
| """ | |
| usage: | |
| python nbmerge.py A.ipynb B.ipynb C.ipynb > merged.ipynb | |
| """ | |
| import io |
| LEVELS = [:major, :minor, :patch] | |
| def version | |
| @version ||= begin | |
| v = `git describe --always --tags` | |
| {}.tap do |h| | |
| h[:major], h[:minor], h[:patch], h[:rev], h[:rev_hash] = v[1..-1].split(/[.-]/) | |
| end | |
| end | |
| end |