Skip to content

Instantly share code, notes, and snippets.

@mikokch
mikokch / README
Created January 29, 2018 21:55 — forked from xentac/README
Authentication with aggressive web worker caching
When mixing cookie-based out-of-application authentication and a websocket
application that attempts to hijack all attempts at authentication, one needs to
pick ones battles. Sometimes allowing unauthenticated access is the only way to
do certain things.
Take, for example,
https://github.com/home-assistant/home-assistant-polymer/issues/110 and
https://github.com/home-assistant/home-assistant/issues/6184. The entire site is
driven by a webworker that caches all urls
(https://github.com/home-assistant/home-assistant-polymer/blob/3701683d4b4ab2bd0ceb4ab78
@mikokch
mikokch / iotcam.py
Created December 31, 2017 12:12 — forked from loleg/iotcam.py
Detects barcodes from a webcam stream using Python, zbar and CV2
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import sys
import cv2
import zbar
import Image
# Debug mode
DEBUG = False

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@mikokch
mikokch / phant-vis.css
Created June 3, 2016 09:42 — forked from mplewis/phant-vis.css
Data logger visualization with Sparkfun's Phant and Highcharts. Licensed under the MIT License.
body {
margin-top: 40px;
margin-bottom: 40px;
}
.chart {
width: 100%;
height: 250px;
margin-top: 10px;
margin-bottom: 10px;
@mikokch
mikokch / download_rethinkdb_for_raspberry_pi_2.sh
Last active September 16, 2016 10:06 — forked from dalanmiller/download_rethinkdb_for_raspberry_pi_2.sh
A quick script to download and compile RethinkDB on Raspberry Pi 2
#!/bin/bash
# Change Raspberry SWAP size
# https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/
#
# sudo nano /etc/dphys-swapfile
#
# The default value in Raspbian is:
# CONF_SWAPSIZE=100
#