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:
| # raw | |
| response = yield tchannel.call( | |
| argscheme="raw", | |
| service="someservice", | |
| endpoint="something", | |
| body="RAWRESPONSE", | |
| headers={ | |
| 'X-Source': 'geo' | |
| }, | |
| ttl=1000 |
| consul: | |
| image: progrium/consul | |
| name: consul | |
| ports: | |
| - "8500:8500" | |
| - "53:53/udp" | |
| command: -server -bootstrap -ui-dir /ui | |
| registrator: | |
| image: progrium/registrator |
| client | |
| dev tun | |
| # "Allow calling of built-in executables and user-defined scripts." In other | |
| # words, this must be specified for the `up` script to be executed. | |
| script-security 2 | |
| route-nopull | |
| up vpn-up.sh | |
| down vpn-down.sh |
| # This has since been improved and moved to: https://github.com/breerly/fig-mesos | |
| # Cheers :) |
| import tornado | |
| class RequestContextHandler(tornado.web.RequestHandler): | |
| def _execute(self, transforms, *args, **kwargs): | |
| # following the example of: | |
| # https://github.com/bdarnell/tornado_tracing/blob/master/tornado_tracing/recording.py | |
| global_data = {} # add whatever here, e.g. self.request |
| --- | |
| - hosts: all | |
| gather_facts: no | |
| sudo: no | |
| tasks: | |
| - name: run ssh-keyscan to add keys to known_hosts | |
| local_action: shell ssh-keyscan {{ ansible_ssh_host }} >> ~/.ssh/known_hosts |
| # Create vagrant image | |
| vagrant init ubuntu12_64 http://files.vagrantup.com/precise64.box | |
| vagrant up | |
| vagrant ssh | |
| # Fork aws/opsworks-cookbooks on github | |
| # https://github.com/aws/opsworks-cookbooks | |
| # Clone locally | |
| git clone [email protected]:yourusername/opsworks-cookbooks.git | |
| cd opsworks-cookbooks |
| Tricks to add encrypted private SSH key to .travis.yml file | |
| To encrypt the private SSH key into the "-secure: xxxxx....." lines to place in the .travis.yml file, generate a deploy key then run: (to see what the encrypted data looks like, see an example here: https://github.com/veewee-community/veewee-push/blob/486102e6f508214b04414074c921475e5943f682/.travis.yml#L21 | |
| base64 --wrap=0 ~/.ssh/id_rsa > ~/.ssh/id_rsa_base64 | |
| ENCRYPTION_FILTER="echo \$(echo \"-\")\$(travis encrypt veewee-community/veewee-push \"\$FILE='\`cat $FILE\`'\" | grep secure:)" | |
| split --bytes=100 --numeric-suffixes --suffix-length=2 --filter="$ENCRYPTION_FILTER" ~/.ssh/id_rsa_base64 id_rsa_ | |