Skip to content

Instantly share code, notes, and snippets.

@szimek
szimek / git-gpg.md
Last active January 29, 2018 20:00 — forked from bcomnes/git-gpg.md
my version of gpg on the mac
  1. brew install gnupg, pinentry-mac (this includes gpg-agent and pinentry)

  2. Generate a key: $ gpg --gen-key

  3. Take the defaults. Whatevs

  4. Tell gpg-agent to use pinentry-mac:

    $ vim ~/.gnupg/gpg-agent.conf 
    

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

@szimek
szimek / a.md
Created June 29, 2012 11:03 — forked from rkh/a.md

This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Netflix
  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
# Used to graph results from autobench
#
# Usage: ruby autobench_grapher.rb result_from_autobench.tsv
#
# This will generate three svg & png graphs
require "rubygems"
require "scruffy"
require 'csv'
require 'yaml'
@szimek
szimek / gameoflife.lisp
Created December 5, 2011 19:56 — forked from qoobaa/gameoflife.lisp
Game of live in LISP
(defun next-generation (board)
(loop for row being the elements of board using (index x) collect
(loop for col being the elements of row using (index y) collect
(next-cell-p x y board))))
(defun next-cell-p (x y board)
(let ((count (neighbours-count x y board))
(cell (cell-p x y board)))
(or
(and cell (or (= count 2) (= count 3)))
@szimek
szimek / init.el
Created March 5, 2011 21:01 — forked from mig/init.el
;; emacs configuration
(push "/usr/local/bin" exec-path)
(add-to-list 'load-path "~/.emacs.d")
(setq make-backup-files nil)
(setq auto-save-default nil)
(setq-default tab-width 2)
(setq-default indent-tabs-mode nil)
(setq inhibit-startup-message t)
@szimek
szimek / campfire.rb
Created March 22, 2010 11:54 — forked from rtomayko/notify.rb
Alert Campfire of a Capistrano deploy
require 'httparty'
require 'json'
class Campfire
include HTTParty
base_uri 'http://your_domain.campfirenow.com'
basic_auth 'your_auth_token', 'whatever'
headers "Content-Type" => "application/json"