Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am szimek on github.
  • I am szimek (https://keybase.io/szimek) on keybase.
  • I have a public key ASAyzYcb8io6Ck9sSwUL5PpHlKz1FgoJEFivGmR9wvuvAAo

To claim this, I am signing this object:

@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 
    
var SimplePeer = require('simple-peer')
// get video/voice stream
navigator.getUserMedia({ video: true, audio: true }, gotMedia, function () {})
function gotMedia (stream) {
var peer1 = new SimplePeer({ initiator: true })
var peer2 = new SimplePeer({ stream: stream })
peer1.on('signal', function (data) {
@szimek
szimek / kube-api.sh
Created July 4, 2015 20:33
Run bash on any API container
$id = kubectl get pods | grep api | grep Running | head -n1 | cut -d' ' -f1
kubectl exec $id -it bash
@szimek
szimek / index.html
Created June 1, 2015 17:51
Slackbot meta tag parsing bug
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Title</title>
<meta property="description" ng-attr-content="Wrong description" content="Description" />
<meta property="og:title" ng-attr-content="Wrong title" content="Title" />
<meta property="og:description" ng-attr-content="Wrong description" content="Description" />
<meta property="og:type" content="website" />
@szimek
szimek / gist:08b0d78d7393539f2864
Last active August 29, 2015 14:14
Adobe apps download links
Lightroom 5 standalone (non-CC crap)
http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5852&fileID=5888
Photoshop CS5 Extended
http://helpx.adobe.com/creative-suite/kb/cs5-product-downloads.html
@szimek
szimek / Gemfile
Last active August 29, 2015 14:13
source "https://rubygems.org"
ruby "2.2.0"
gem "activerecord", "4.2.0"
gem "sqlite3"
@szimek
szimek / Gemfile
Last active January 3, 2016 13:49
Find who's online in the local network
source "https://rubygems.org"
ruby "2.1.0"
gem "sinatra"
gem "sinatra-contrib"
gem "redis"

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 / caching-tips.md
Created August 2, 2012 15:34
HTTP/Rails caching/optimization tips
  1. Fragment caching
  1. Caching user's home page (same URL for all visitors, but different content)
  • can't cache response in gateway proxy