This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
| appify v3.0.1 for Mac OS X - http://mths.be/appify | |
| Creates the simplest possible Mac app from a shell script. | |
| Appify takes a shell script as its first argument: | |
| `basename "$0"` my-script.sh |
| EAS 001 George Eastman Hall | |
| RIA 002 Frank Ritter Arena | |
| CLK 003 George H. Clark Gymnasium | |
| SAU 004 Student Alumni Union | |
| WAL 005 Wallace Library | |
| LBR 006 Liberal Arts Hall | |
| UNI/VIG 007A University Gallery/Vignelli Center for Design Studies | |
| GAN 007B Frank E. Gannett Hall | |
| GOS 008 Thomas Gosnell Hall | |
| GLE 009 James E. Gleason Hall |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!python | |
| """See main.__doc__""" | |
| import os | |
| import logging | |
| import glob | |
| import unittest | |
| import sys |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| <?php | |
| namespace LM\Bundle\CoreBundle\Controller; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| class AppController extends Controller | |
| { |
| public class Foo { | |
| public static void main(String[] args) { | |
| String x = "This is weird: \u0022\u003B\u0069\u006E\u0074\u0020\u0079\u003D\u0031\u002F\u0030\u003B\u0078\u003D\u0022???"; | |
| System.out.println("x = " + x); | |
| } | |
| } |
| ## | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2014 Ryan Morrissey | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
Download and install right version of ghostscript. In my case my PHP was x86 architecture, so I download Ghostscript 9.14 for Windows (32 bit).