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:
| #!/bin/bash | |
| for x in $(seq 1 10); do echo $x; echo `date` >> /tmp/top-output.txt; ps -eo rss,pmem,pid,cmd | sort -nr >> /tmp/ps-output.txt;sleep 5; done |
| source 'https://rubygems.org' | |
| # Specify your gem's dependencies in logstash-mass_effect.gemspec | |
| gem "logstash-core", :path => "./logstash/logstash-core" | |
| gem "logstash-core-event-java", :path => "./logstash/logstash-core-event-java" | |
| gem "logstash-core-plugin-api", :path => "./logstash/logstash-core-plugin-api" | |
| gem "logstash-filter-grok", :path => "./logstash-filter-grok" | |
| gem "logstash-patterns-core", :path => "./logstash-patterns-core" | |
| gem "benchmark-ips" |
| Inspired by: https://github.com/reedes/vim-colors-pencil | |
| #262626,#005F87,#20A5BA,#F1F1F1,#5FD7A7,#E5E6E6,#20BBFC,#FB007A |
dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=filessudo python setup.py installTo convert DBF file to CSV:
./dbf2csv database.dbf
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Simple flask app to redirect a case number to a case url | |
| # | |
| __author__ = 'Peter Dyson <pete@geekpete.com>' | |
| __version__ = '0.1.0' | |
| from flask import Flask, redirect | |
| from simple_salesforce import Salesforce |
This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.
Here is an incomplete list of things that are different from other approaches:
Thanks to this article by Christoph Berg
Directories and files
~/| #!/usr/bin/env bash | |
| # | |
| # Backup selected directories to a Backblaze B2 bucket | |
| # | |
| # Example daily cron: | |
| # @daily /usr/local/bin/b2backup >/dev/null | |
| # | |
| # Account creds | |
| id=xxxxxxxxxx |
| #!/usr/bin/env python | |
| import sys | |
| # Lamson is an application, but also the best way to read email without | |
| # struggling with "battery include" libraries. | |
| from lamson.encoding import from_string as parse_mail | |
| from pyelasticsearch import ElasticSearch | |
| from pyelasticsearch.exceptions import ElasticHttpNotFoundError |