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:
| unsigned char* hexstr_to_char(const char* hexstr) | |
| { | |
| size_t len = strlen(hexstr); | |
| IF_ASSERT(len % 2 != 0) | |
| return NULL; | |
| size_t final_len = len / 2; | |
| unsigned char* chrs = (unsigned char*)malloc((final_len+1) * sizeof(*chrs)); | |
| for (size_t i=0, j=0; j<final_len; i+=2, j++) | |
| chrs[j] = (hexstr[i] % 32 + 9) % 25 * 16 + (hexstr[i+1] % 32 + 9) % 25; | |
| chrs[final_len] = '\0'; |
| MIT License | |
| Copyright (c) 2012 endolith | |
| 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 | |
| furnished to do so, subject to the following conditions: |
| #!/bin/bash | |
| mkdir toolchain | |
| cd toolchain | |
| wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz | |
| wget http://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.gz | |
| wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.tar.bz2 | |
| wget http://ftp.gnu.org/gnu/gcc/gcc-4.6.0/gcc-core-4.6.0.tar.bz2 |
| #!/bin/bash | |
| AWK_SCRIPT=/tmp/symbolizecrashlog_$$.awk | |
| SH_SCRIPT=/tmp/symbolizecrashlog_$$.sh | |
| if [[ $# < 2 ]] | |
| then | |
| echo "Usage: $0 [ -arch <arch> ] symbol-file [ crash.log, ... ]" | |
| exit 1 | |
| fi |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |