Skip to content

Instantly share code, notes, and snippets.

View nuest's full-sized avatar

Daniel Nüst nuest

View GitHub Profile
@sneakers-the-rat
sneakers-the-rat / clean_pdf.sh
Last active February 14, 2024 16:52
Strip PDF Metadata
# --------------------------------------------------------------------
# Recursively find pdfs from the directory given as the first argument,
# otherwise search the current directory.
# Use exiftool and qpdf (both must be installed and locatable on $PATH)
# to strip all top-level metadata from PDFs.
#
# Note - This only removes file-level metadata, not any metadata
# in embedded images, etc.
#
# Code is provided as-is, I take no responsibility for its use,
@EmilHvitfeldt
EmilHvitfeldt / xaringancolor-andrew-example
Last active February 5, 2021 16:34
xaringan andrew example
---
title: "Coloring stuff!"
author: "Andrew Heiss"
date: "`r Sys.Date()`"
output:
xaringan::moon_reader:
lib_dir: "libs"
seal: false # No title slide
nature:
highlightStyle: github
@boneskull
boneskull / README.md
Last active April 10, 2024 12:47
example of how to debug mocha v4 if hanging

Here's an example of how to debug Mocha v4 if it hangs.

Ensure you're using a Node.js 8 or newer (or any version with async_hooks support).

If you run your test, you'll notice it hangs:

$ mocha test.js
@LukasLohoff
LukasLohoff / README.md
Last active April 13, 2017 09:51
Userscript adding a "Upload to O2R" button to Zenodo / Zenodo Sandbox.

"Upload to O2R" - Userscript for Zenodo

Requirements

  • Firefox or Chrome Web Browser

Installation

  1. Install a browser extension to support userscripts
@LukasLohoff
LukasLohoff / README.md
Last active March 29, 2017 11:36
Userscript adding a "upload to o2r" button to sciebo(owncloud)

"Upload to O2R" - Userscript for Sciebo

Requirements

  • Firefox or Chrome Web Browser

Installation

  1. Install a browser extension to support userscripts
@andyshinn
andyshinn / Dockerfile
Created December 24, 2015 19:07
BusyBox cron container example
FROM gliderlabs/alpine:3.3
COPY myawesomescript /bin/myawesomescript
COPY root /var/spool/cron/crontabs/root
RUN chmod +x /bin/myawesomescript
CMD crond -l 2 -f