Skip to content

Instantly share code, notes, and snippets.

Szymon Nowak szimek

Block or report user

Report or block szimek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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 Jan 29, 2018 — forked from bcomnes/git-gpg.md
my version of gpg on the mac
View git-gpg.md
  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 
    
View simple-peer-video.js
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 Jul 4, 2015
Run bash on any API container
View kube-api.sh
$id = kubectl get pods | grep api | grep Running | head -n1 | cut -d' ' -f1
kubectl exec $id -it bash
@szimek
szimek / index.html
Created Jun 1, 2015
Slackbot meta tag parsing bug
View index.html
<!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 Aug 29, 2015
Adobe apps download links
View gist:08b0d78d7393539f2864
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
View Gemfile
source "https://rubygems.org"
ruby "2.2.0"
gem "activerecord", "4.2.0"
gem "sqlite3"
@szimek
szimek / Gemfile
Last active Jan 3, 2016
Find who's online in the local network
View Gemfile
source "https://rubygems.org"
ruby "2.1.0"
gem "sinatra"
gem "sinatra-contrib"
gem "redis"
View Three Wise Monkeys.md

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 Aug 2, 2012
HTTP/Rails caching/optimization tips
View caching-tips.md
  1. Fragment caching
  1. Caching user's home page (same URL for all visitors, but different content)
  • can't cache response in gateway proxy
You can’t perform that action at this time.