Skip to content

Instantly share code, notes, and snippets.

View wkusnierczyk's full-sized avatar

waku wkusnierczyk

  • Zurich, Switzerland
View GitHub Profile
@wkusnierczyk
wkusnierczyk / comprehensions-loops.md
Last active November 23, 2018 10:33
List comprehensions vs for loops

In the experiment below, we compare the computational efficiency of list comprehensions versus for looping. It is a very simple, illustrative setup not meant to lead to general conclusions.

# non-local transform
def transform(value):
    return value

# comprehension-based list generation
def comprehension(ns):
Verifying my Blockstack ID is secured with the address 15jg2s6fr6TKt2baFoqrxGW7mKHqzeq1bK https://explorer.blockstack.org/address/15jg2s6fr6TKt2baFoqrxGW7mKHqzeq1bK
@wkusnierczyk
wkusnierczyk / kill-touchbar.md
Last active April 25, 2018 22:41
Restart that creepy touchbar

mac-restart-touchbar

Ever got stuck with unresponsive touch bar on mac book pro (wink wink) 2017+?

pkill "Touch Bar agent"
killall "ControlStrip"
@wkusnierczyk
wkusnierczyk / dmg-java.md
Last active April 25, 2018 22:40
Install from *.dmg with alternative java version

mac-java-version

Does your freshly downloaded DMG-packaged installer for MacOS complain about the wrong version of java installed on your system? Fix the problem in a few simple steps.

Install java

Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and install the required version of java.
Follow the instructions to install it on your system.
Confirm that the specific version is now available on your system:

Keybase proof

I hereby claim:

  • I am wkusnierczyk on github.
  • I am wkusnierczyk (https://keybase.io/wkusnierczyk) on keybase.
  • I have a public key ASDPVUvDwGTBdrcAUM4ga00x_E7TH-om4_sC_l8LEIgQ6Qo

To claim this, I am signing this object:

@wkusnierczyk
wkusnierczyk / chrome-tabs.sh
Last active May 22, 2017 07:12
Capture open Chrome tab names and URLs into a list
#!/usr/bin/env bash
set -e
export ROOT=$(cd $(dirname $BASH_SOURCE)/..; pwd -P)
export DATE=$(date +%Y.%m.%d-%H.%M)
mkdir -p "$ROOT/snapshots"
chrome-cli list links > "$ROOT/snapshots/chrome-$DATE.txt"

Keybase proof

I hereby claim:

  • I am wkusnierczyk on github.
  • I am wkusnierczyk (https://keybase.io/wkusnierczyk) on keybase.
  • I have a public key whose fingerprint is 18CE 3E95 93AE 2CF8 969A 1028 F626 6F95 0726 2E55

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am wkusnierczyk on github.
* I am wkusnierczyk (https://keybase.io/wkusnierczyk) on keybase.
* I have a public key whose fingerprint is 7D5B 687B 914C A362 46A4 102C F50A 8758 97B9 E312
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am wkusnierczyk on github.
  • I am wkusnierczyk (https://keybase.io/wkusnierczyk) on keybase.
  • I have a public key whose fingerprint is 7D5B 687B 914C A362 46A4 102C F50A 8758 97B9 E312

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am wkusnierczyk on github.
  • I am wkusnierczyk (https://keybase.io/wkusnierczyk) on keybase.
  • I have a public key whose fingerprint is 5BC0 0ABD 91A6 A1E1 0233 4B2D 307F B19B DD83 5532

To claim this, I am signing this object: