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:
[Unit] | |
Description=Puma Rails Server | |
After=network.target | |
[Service] | |
Type=simple | |
User=deploy | |
WorkingDirectory=/home/deploy/app/current | |
ExecStart=/home/deploy/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/app/shared/config/puma.rb | |
ExecStop=/home/deploy/.rbenv/bin/rbenv exec bundle exec pumactl -S /home/deploy/app/shared/tmp/pids/puma.state stop |
defmodule MyApp.Mixfile do | |
use Mix.Project | |
def project do | |
[app: :my_app, | |
version: get_version, | |
elixir: "~> 1.0", | |
elixirc_paths: elixirc_paths(Mix.env), | |
compilers: Mix.compilers, | |
build_embedded: Mix.env == :prod, |
#!/usr/bin/env python | |
# Adding the current directory to the Python path is easy: | |
import os | |
import sys | |
this_dir = os.path.dirname(__file__) | |
sys.path.insert(0, this_dir) | |
# Now that the Python path includes the current directory, any | |
# application specific modules can be loaded just like this was |
## Filter Table | |
*filter | |
:INPUT ACCEPT [971:197590] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [95:9682] | |
-A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT | |
-A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT | |
COMMIT |
#! /usr/bin/env python | |
""" Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: | |
* http://en.wikipedia.org/wiki/8-bit_color | |
* http://en.wikipedia.org/wiki/ANSI_escape_code |