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:
| (  ̄ c ̄)y▂ξ | |
| ∧_∧ あっ! | |
| (´・ω・) | |
| O┬O ) | |
| ◎┴し'-◎ ≡ | |
| ( ′-`)y-~ | |
| ~ˋ( ̄▽ ̄#)ˊ~ |
| | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <title>Shocking Video</title> | |
| <link rel="stylesheet" href="http://2.7.be.static.xlhost.com/style3.css" type="text/css" /> |
| # General configuration. | |
| set -g base-index 1 | |
| set -g display-time 5000 | |
| set -g repeat-time 1000 | |
| set -g status-keys vi | |
| set -g status-justify left | |
| set -g status-interval 1 | |
| set -g status-left-length 15 | |
| set -g status-right-length 55 | |
| set -g status-style bg=black,fg=white |
| /* | |
| * draw a multiline string rotated in a canvas | |
| * | |
| * @param ctx (M) context of the canvas | |
| * @param text (M) string may contain \n | |
| * @param posX (M) horizontal start position | |
| * @param posY (M) vertical start position | |
| * @param textColor color | |
| * @param rotation in degrees (by 360) | |
| * @param font must be installed on client use websafe |
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
| USE [AdventureWorks2012] | |
| GO | |
| :setvar checkpoint_files_location "h:\Databases\DATA\" | |
| /*************************** Add MEMORY_OPTIMIZED_DATA filegroup to enable in-memory OLTP **********************************/ | |
| IF NOT EXISTS (SELECT * FROM sys.data_spaces WHERE type='FX') | |
| ALTER DATABASE CURRENT ADD FILEGROUP [AdventureWorks2012_mod] CONTAINS MEMORY_OPTIMIZED_DATA | |
| GO |
This gist assumes:
| # -*- coding: utf-8 -*- | |
| """ | |
| This script will delete all of the tweets in the specified account. | |
| You may need to hit the "more" button on the bottom of your twitter profile | |
| page every now and then as the script runs, this is due to a bug in twitter. | |
| You will need to get a consumer key and consumer secret token to use this | |
| script, you can do so by registering a twitter application at https://dev.twitter.com/apps | |
| @requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1) |
| from sets import Set | |
| import collections | |
| lines = [] | |
| with open('/tmp/sanji.log', 'r') as f: | |
| lines = f.readlines() | |
| boots = list() | |
| bufferLines = list() | |
| for line in lines: |