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:
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19 | |
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
NOTES: | |
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use. | |
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. |
#!/usr/bin/env ruby | |
# usage: stripiT.rb file1.m4a file2.m4a file3.m4a | |
# automatically outputs to file1 - stripped.m4a, file2 - stripped.m4a, and so on. | |
# Script to remove extraneous/unwanted atoms from iTunes purchased files by way of AtomicParsley. | |
# Output should be comparable to the atoms left over after reencoding the file in iTunes itself. | |
# I only care about songs, so I have no clue how well this applies to video files | |
# Some information taken from: https://code.google.com/p/mp4v2/wiki/iTunesMetadata |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
CHARS = %w{ } | |
def encode(string) | |
string.chars.map{|c|"#{CHARS[c[0]/16]}#{CHARS[c[0]%16]}"}.join | |
end | |
program = <<-EOF |
[findRegularExpression "[ÀàÁáÂâÃãÄäÅåĀāĂ㥹ǞǟǺǻ]", <name>, "a"] | |
[findRegularExpression "[ÆæǼǽ]", <name>, "ae"] | |
[findRegularExpression "[Ḃḃ]", <name>, "b"] | |
[findRegularExpression "[ĆćÇçČčĈĉĊċ]", <name>, "c"] | |
[findRegularExpression "[ḐḑĎďḊḋĐđÐðDZdzDŽdž]", <name>, "d"] | |
[findRegularExpression "[ÈèÉéĚěÊêËëĒēĔĕĘęĖėƷʒǮǯ]", <name>, "e"] | |
[findRegularExpression "[Ḟḟƒfffiflffifflſt]", <name>, "f"] | |
[findRegularExpression "[ǴǵĢģǦǧĜĝĞğĠġǤǥ]", <name>, "g"] | |
[findRegularExpression "[ĤĥĦħ]", <name>, "h"] | |
[findRegularExpression "[ÌìÍíÎîĨĩÏïĪīĬĭĮįİıIJij]", <name>, "i"] |
[find "À", <name>, "a" ] | |
[find "à", <name>, "a" ] | |
[find "Á", <name>, "a" ] | |
[find "á", <name>, "a" ] | |
[find "Â", <name>, "a" ] | |
[find "â", <name>, "a" ] | |
[find "Ã", <name>, "a" ] | |
[find "ã", <name>, "a" ] | |
[find "Ä", <name>, "a" ] | |
[find "ä", <name>, "a" ] |
#!/bin/bash | |
# args | |
MSG=${1-'deploy from git'} | |
BRANCH=${2-'trunk'} | |
# paths | |
SRC_DIR=$(git rev-parse --show-toplevel) | |
DIR_NAME=$(basename $SRC_DIR) | |
DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH |
import os | |
from PIL import Image | |
''' | |
I searched high and low for solutions to the "extract animated GIF frames in Python" | |
problem, and after much trial and error came up with the following solution based | |
on several partial examples around the web (mostly Stack Overflow). | |
There are two pitfalls that aren't often mentioned when dealing with animated GIFs - |
#!/usr/bin/env ruby | |
require 'fileutils' | |
# SETUP | |
# Details about the local transmission service | |
transmission_remote_location = "/usr/sbin/transmission-remote" | |
transmission_server_port = "mini.local:9091" | |
# The place where downloaded but unsorted tv show torrents land | |
downloads_television_directory = "/Volumes/Drobo/Downloads/Television/" |
The problem is that some lines in the file are missing timestamps when they aren't continuations of any previous line. It's dumb, really.
The mysql query log is seriously bullshit format, but nothing logstash can't unscrew.
The main goal here is to show how we can fix the 'missing timestamp' problem.
% ruby bin/logstash agent -e '