Skip to content

Instantly share code, notes, and snippets.

View allewun's full-sized avatar
🌴

Allen Wu allewun

🌴
View GitHub Profile
@allewun
allewun / remove-watermark.sh
Last active October 1, 2018 09:30 — forked from elfsternberg/remove-watermark.sh
Remove a textual watermark from a PDF file.
#!/bin/bash
# Remove a textual watermark from a PDF file. Requires:
# - qpdf (brew install qpdf)
# - pdftx (https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg)
# - coreutils (brew install coreutils)
#
# Tested on macOS 10.12 Sierra.
if [[ -z $3 ]]; then
@allewun
allewun / ios-tools-tricks.md
Created February 4, 2015 02:52
Allen's iOS tools and tricks - Originate iOS monthly meeting (Feb 2015)

iOS monthly meeting (February 2015)

Sharing some of my trusty tools and tricks. Will write an Originate blog post maybe...

Tools

  • Terminal
    • iTerm2 - OS X terminal replacement, open-source, well-maintained
    • TotalTerminal - hooks into default Terminal to make it available via hotkey (support seems to be fading). Used this for a few years, finally dropped it last week due to Yosemite bugs.
  • Xcode
@allewun
allewun / gist:237a48a77ff8527c6bf9
Created January 21, 2015 01:30
git town cucumber profiling
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta content='IE=edge' http-equiv='X-UA-Compatible'>
<meta content='width=device-width, initial-scale=1' name='viewport'>
<meta content='Cucumber Step Characteristics' name='description'>
<title>Cucumber Step Characteristics</title>
<link href='http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css' rel='stylesheet'>
<link href='http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css' rel='stylesheet'>
@allewun
allewun / submodules-to-cocoapods.md
Created February 13, 2014 05:25
How to migrate from git submodules to cocoapods

How to migrate from git submodules to cocoapods

  1. Remove git module files used by git

     rm .gitmodules
     rm .git/modules
    
  2. Remove invididual git files/directories used by the submodules

rm submodule1/{.git/, .gitignore, .gitattributes}

=============================================================
MacBook Pro Retina 15" (late 2013)
* CPU: 2.3GHz Intel Core i7
* GPU: NVIDIA GeForce GT 750M
* RAM: 16 GB, 1600 MHz
* HDD: 512 GB SSD
MacBook Pro: | MacBook Pro:
(with student discount) | (original cost)