View gist:251ca80557e3599332c218c8b5c60029
  • obtain your ugly, gray pdf
  • brew install imagemagick
  • brew install ghostscript
  • magic command!
    • convert -density 300x300 MYGRAYPDFNAME.pdf -threshold 80% -quality 100 NAMEIWANTTOSAVETHISAS.pdf
      • you might change the threshold value
      • -density 300x300 helps to read the file at a high resolution
      • -threshold 80% makes everything under this value black and above this value white. see the docs
    • an actual example, and I'm trying a few different thresholds:
      • convert -density 300x300 Uprising.pdf -threshold 80% -quality 100 Uprising_80.pdf
View gist:6cf9391e7ddd25a331dafbed5cee8a8e
  • brew install Caskroom/cask/wineskin-winery
  • Open app "Wineskin Winery"
    • Click "Create New Blank Wrapper" and name it "WindowsSteam"
    • Right click on app "WindowsSteam" and click "show package contents"
    • Open "Wineskin" app that lives inside the "WindowsSteam" app
    • "Advanced"
    • "middle tab"
    • "winetricks"
    • "update winetricks"
    • Install dotnet45
View listenonrepeat.md

This bookmarklet takes you from a youtube video page to the listenonrepeat page for that video

  1. Save this bookmarklet. Right-click on boomarks toolbar Add Page...
  • Name: ytโˆž or whatever you'd like (maybe short so it stays on your bookmarks toolbar)
  • URL: javascript:(document.location.href = document.location.href.replace('youtube.com', 'listenonrepeat.com'))();
  1. When on a youtube video page, click this bookmarklet to be taken to the listenonrepeat page ๐ŸŽ‰
View quicktime-hangouts-recording.md

Short link to this page: caseywatts.com/quicktime

Scenario: You want to talk with someone over google hangouts (like for a user study), and you want to record BOTH:

  • the system output audio (from them)
  • the microphone audio (from you)

(screenshots below in a comment)

General Setup (do this once)

View stubbing-relationships-ember.md
UPDATE: Actually, doing this with `reopen` is apparently deprecated. Back to creating actual objects for relationships -_-
don't do this below stuff

Stubbing relationships in model unit tests

// model
export default DS.Model.extend({
View 0-link.md
View 0.md

This helps flip between a page the development server and the same page on the production server.

Link to this page: http://caseywatts.com/flipit

View ember-test-are-any-only-present.md

To run a single test or category of tests in ember-mocha, you sometimes put .only() after your it or describe or context. But if this gets accidentally checked into the repository, the testing suite will erroneously pass for failures in any other test O_O.

This would be better as a jscs or eslint plugin - probably in ember-suave (which is migrating jscs to eslint right now). But short-term, this helps :)

View OpenCurrentImageInPixlrExpress.md

Link: http://caseywatts.com/pixlr

This bookmarklet is good for quickly modifying an image, such as overlaying some text.

  1. Save this bookmarklet. Right-click on boomarks toolbar Add Page...
  • Name: pixlr or whatever you'd like (maybe short so it stays on your bookmarks toolbar)
  • URL: javascript:(function() {this.location.href = "https://pixlr.com/express/?image=" + this.location.href})();
  1. Open an image in its own tab (like http://weknowyourdreamz.com/images/bubble/bubble-09.jpg for example)
  2. click that bookmarklet
  3. ๐ŸŽ‰
View MediawikionHeroku.md
git clone https://github.com/caseywatts/mediawiki
heroku apps:create MYAPPNAME
echo "web: vendor/bin/heroku-hhvm-apache2" >> Procfile
curl -sS https://getcomposer.org/installer | php
php composer.phar update
# add & commit composer.lock

heroku buildpacks:add heroku/php
heroku ps:scale web=1