I hereby claim:
- I am pudgereyem on github.
- I am pudgereyem (https://keybase.io/pudgereyem) on keybase.
- I have a public key ASAS2tMlcmOfinA4vbv12QG6aseGsJ0nbGlgy_3PoNQxowo
To claim this, I am signing this object:
# From http://hints.macworld.com/article.php?story=20070408062023352 | |
`diff` helps you explore the difference between files and folder structures in Unix. Really good. | |
`diff -qr dirA dirB | grep -v -e 'DS_Store' -e 'Thumbs' | sort > diffs.txt` | |
--- | |
> As mentioned in other hints, diff can not only compare two files, it can, by using the -r option, walk entire directory trees, recursively checking differences between subdirectories and files that occur at comparable points in each tree. The trick is to use the -q option to suppress line-by-line comparisons in files that differ: |
# Solving "text-rendering" problem on Android 4.2 and 4.3 | |
- Source: <https://gist.github.com/pudgereyem/7da56c2f70fd57f89689> | |
- Comments: <https://twitter.com/pudgereyem> | |
`text-rendering` enables OT features such as kerning that would normally be set by the browser while also enabling ligatures. | |
More: <https://developer.mozilla.org/en-US/docs/Web/CSS/text-rendering> | |
Surprisingly, the default browsers in Android 4.2 and 4.3 do not support kerning, while the default browsers in Android 4.1 and 4.4 do. This is caused by a bug in the support for the text-rendering property in Android 4.2 and 4.3. Android 4.4 uses Chrome as its default browser, which does not exhibit the bug. |
# Serve Missing Media from a Production Server via Apache/Nginx | |
# When working on the website locally, and you don't want to download (or even have) the images that are used on the live site, a simple redirect solves the problem. You can read a good blog post on this here; <http://rzen.net/serve-missing-media-production-apache-nginx/> by Brian Richards. | |
### | |
### For Apache | |
### | |
# Attempt to load files from production if they're not in our local version | |
# If you have development/production setup, it's neat to use .htaccess to redirect all failed requests to the production server (since we wont want to sync all the uploaded media between the two) | |
<IfModule mod_rewrite.c> |
# SupportKit Email Capture Adddon | |
# Written by @pudgereyem, 2015-09-08 | |
# | |
# What it does: | |
# 1. Check if there is a SupportKit.user registered and if it has an email | |
# 2. Adds email form if it doesn't have an email attached | |
# 3. When user submits the form check if his/her email validates | |
# and start chat it does. | |
class SupportKitEmailCapture |
I hereby claim:
To claim this, I am signing this object: