Skip to content

Instantly share code, notes, and snippets.

Tadeusz Łazurski tad-lispy

Block or report user

Report or block tad-lispy

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 common-types.js
// @flow
export type Task<T> = any => Promise<T>;
export type SQSTask<T> = T => Promise<Object>;
// TODO: Move log function types annotations to @scrambled/logger
export type LogFunction = (
'debug' | 'informational' | 'warning' | 'error',
tad-lispy /
Last active Aug 2, 2017
Setup LXD with DNS name resolution on Ubuntu 16.04
#! /usr/bin/env bash
set -euo pipefail
set -x
export DEBIAN_FRONTEND=noninteractive
# Install newer version of LXD
# See
apt-get install --yes --quiet --target-release=xenial-backports lxd

Keybase proof

I hereby claim:

  • I am tad-lispy on github.
  • I am lazurski ( on keybase.
  • I have a public key ASDVgw6KS0S06Z4oBjfR7OTnwB8gFJqD13OVAvm5xY_1cgo

To claim this, I am signing this object:

tad-lispy /
Created May 20, 2016
Default values with object / array destructuring in CoffeeScript
# You can have default values in object destructuring
o1 = a: 1, b: 2
{ a, b, c = 3} = o1
c is 3
o2 = a: 1, b: 2, c: 5
{ a, b, c = 3} = o2
c is 5
tad-lispy / funcase.js
Last active Aug 29, 2015
Funcase - IAI communication proposal
View funcase.js
(function() {
var data;
data = {
fabric: {
type: 'shop',
name: 'XCATS',
stuff: 'Cool cats',
staff: {
boss: 'Lionel King',
tad-lispy / Facebook AdBlock Filter
Last active Aug 29, 2015
Antisocial list doesn't always work for me. This is my filter to block all Facebook stuff outside of the Facebook itself.
View Facebook AdBlock Filter$third-party,media,subdocument,object,image,script,stylesheet,xmlhttprequest,popup
tad-lispy / inject-jquery.js
Created Aug 19, 2014
Inject jQuery into webpage via console (oneliner)
View inject-jquery.js
document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src = '//'
tad-lispy / etc-init-microserver-container.conf
Created Jul 18, 2014
Upstart Docker services with relaying on mongo container
View etc-init-microserver-container.conf
description "Microserver container"
author "Tadeusz Łazurski <>"
start on filesystem and started docker and started mongo-container
stop on runlevel [!2345]
exec /usr/bin/docker start -a microserver
pre-start exec sleep 30
tad-lispy / etc-default-docker
Created May 3, 2014
Docker + SkyDNS + Upstart
View etc-default-docker
# Docker Upstart and SysVinit configuration file
# Customize location of Docker binary (especially for development testing).
# Use DOCKER_OPTS to modify the daemon startup options.
DOCKER_OPTS="-r=false --dns --dns --dns"
# If you need Docker to use an HTTP proxy, it can also be specified here.
#export http_proxy=""
tad-lispy / Nazwy stron z odmianą fleksyjną pogrupowane wg. sprawy i roli.sql
Last active Jan 3, 2016
SQL query to Currenda Sawa DB to get parties to the lawsuit (plaintiff and defendant), with group concatenated names for each side separated by colon, and with inflexion cases (dative for defendant and genitive for plaintiff) and count for each side.
View Nazwy stron z odmianą fleksyjną pogrupowane wg. sprawy i roli.sql
-- Use this variable to limit scope of search to defendants last name or name in case of corporations
declare @search as varchar(32)
set @search = 'Kowalski'
-- Find lawsuits where pozwany matches search criteria
-- This will be used to limit scope of search.
-- ATM the query is very inefficient. Without this limit and for large data set it can take very long time to execute.
declare @sprawy table (
ident integer
You can’t perform that action at this time.