- Open multi-page PDF
- Select all pages (Cmd+A with focus in thumbnail sidebar)
- Tools > Rectangular Selection
- On single page drag to select area to crop
- Tools > Crop (or Cmd+K)
All pages are cropped identically!
if (typeof (AC) === "undefined") { | |
AC = {} | |
} | |
AC.ImageReplacer = Class.create({ | |
_defaultOptions: { | |
listenToSwapView: true, | |
filenameRegex: /(.*)(\.[a-z]{3}($|#.*|\?.*))/i, | |
filenameInsert: "_☃x", | |
ignoreCheck: /(^http:\/\/movies\.apple\.com\/|\/105\/|\/global\/elements\/quicktime\/|_(([2-9]|[1-9][0-9]+)x|nohires)(\.[a-z]{3})($|#.*|\?.*))/i, | |
attribute: "data-hires", |
var language = window.navigator.userLanguage || window.navigator.language; | |
language = language.substring(0, 2); | |
var url = document.location.href; | |
var tweet = url.split("/")[5]; | |
var translation = "https://twitter.com/i/translations/show.json?dest=" + language + "&id=" + tweet; | |
document.location.href = translation; |
circleToCircle: function(obj1, obj2) { | |
return game.physics.arcade.distanceBetween(obj1, obj2) < (obj1.body.width/2 + obj2.body.width/2); | |
} |
#!/bin/bash | |
DATE=`date +%Y%m%d%H%M%S` | |
defaults write "/Users/matt/Projects/Wire Hang/Info.plist" CFBundleVersion -string "$DATE" | |
cp "Info.plist" "Wire Hang Redux.app/Contents/" | |
cp "icons/Wire Hang Redux.icns" "Wire Hang Redux.app/Contents/Resources/" | |
touch "Wire Hang Redux.app" | |
xattr -cr "Wire Hang Redux.app" | |
codesign -f -s "3rd Party Mac Developer Application: Matt Sephton (A1B234CD5E)" "Wire Hang Redux.app" | |
productbuild --component "Wire Hang Redux.app" /Applications --sign "3rd Party Mac Developer Installer: Matt Sephton (A1B234CD5E)" "Wire Hang Redux.pkg" | |
spctl -a -v --type install "Wire Hang Redux.pkg" |
#!/usr/bin/env php | |
<?php | |
// requirements: python, pip | |
// dependencies: font-line | |
// installation: | |
// sudo -H python -m ensurepip | |
// sudo -H pip install font-line |
All pages are cropped identically!
brew install exiftool
exiftool -Creator="ScanSnap Manager #S1300i" *.pdf
#!/bin/sh | |
URL="https://file.io" | |
DEFAULT_EXPIRE="14d" # Default to 14 days | |
if [ $# -eq 0 ]; then | |
echo "Usage: file.io FILE [DURATION]\n" | |
echo "Example: file.io path/to/my/file 1w\n" | |
exit 1 | |
fi |
#!/bin/sh | |
URL="https://0x0.st" | |
if [ $# -eq 0 ]; then | |
echo "Usage: 0x0.st FILE\n" | |
exit 1 | |
fi | |
FILE=$1 |