Skip to content

Instantly share code, notes, and snippets.

View henhell's full-sized avatar
💻

Henrik Hellerstedt henhell

💻
  • Uppsala, Sweden
View GitHub Profile
@henhell
henhell / scanner.sh
Created July 2, 2020 11:21 — forked from andyrbell/scanner.sh
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
@henhell
henhell / slack_delete.py
Created March 22, 2018 07:38 — forked from Paradoxis/slack_delete.py
Delete all Slack files. Usage: python slack_delete.py --token <your token>
import argparse
import requests
import time
import json
def main():
"""
Entry point of the application
:return: void