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:
| # Install ffmepg (for the screencast) & imagemagick (to optimize the GIF file for web usage) | |
| brew install ffmpeg | |
| brew install imagemagick | |
| # Make the screencast and compress it | |
| ffmpeg -i ScreenFlow.mov -pix_fmt rgb24 output.gif | |
| convert -layers Optimize output.gif output_optimized.gif | |
| # Upload it somewere in the cloud... | |
| # ... and use the file in the desire website. Here's the markdown syntax: |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "github.com/gorilla/sessions" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/url" |
| section .text | |
| global _start | |
| _start: | |
| xor eax, eax | |
| xor ebx, ebx | |
| xor esi, esi | |
| jmp _socket | |
| _socket_call: |
Quick, take a guess, what's the first hop latency to your home wireless router?
Below 1ms, right? Yeah, you wish!
Below are results from a quick test on my home router (Linksys E1550). Some lessons learned:
| source 'https://rubygems.org' | |
| gem 'clockwork' |
| <?php | |
| class ser extends stdClass implements Serializable { | |
| var $prop; | |
| public function __construct() { | |
| $this->prop = "Property Value"; | |
| } | |
| public function serialize() { |
| #!/usr/bin/env python | |
| ## Tiny Syslog Server in Python. | |
| ## | |
| ## This is a tiny syslog server that is able to receive UDP based syslog | |
| ## entries on a specified port and save them to a file. | |
| ## That's it... it does nothing else... | |
| ## There are a few configuration parameters. | |
| LOG_FILE = 'youlogfile.log' |
| enum SexType { | |
| MALE = 1, | |
| FEMALE = 2 | |
| } | |
| struct User { | |
| 1: string firstname, | |
| 2: string lastname, | |
| 3: i32 user_id = 0, | |
| 4: SexType sex, |
| #!/bin/bash | |
| ## | |
| ## A simple little shell script that will return the current | |
| ## fingerprint on the SSL certificate. It's crude but works :D | |
| ## | |
| ## Author: Bob Saska (r35krag0th) <[email protected]> | |
| openssl s_client -connect tuner.pandora.com:443 < /dev/null 2> /dev/null | \ | |
| openssl x509 -noout -fingerprint | tr -d ':' | cut -d'=' -f2 |