This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker Upstart and SysVinit configuration file | |
# Customize location of Docker binary (especially for development testing). | |
#DOCKER="/usr/local/bin/docker" | |
# Use DOCKER_OPTS to modify the daemon startup options. | |
DOCKER_OPTS="-r=false --dns 172.17.42.1 --dns 8.8.8.8 --dns 8.8.4.4" | |
# If you need Docker to use an HTTP proxy, it can also be specified here. | |
#export http_proxy="http://127.0.0.1:3128/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Microserver container" | |
author "Tadeusz Łazurski <tadeusz@lazurski.pl>" | |
start on filesystem and started docker and started mongo-container | |
stop on runlevel [!2345] | |
respawn | |
exec /usr/bin/docker start -a microserver | |
pre-start exec sleep 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
facebook.com/$third-party,media,subdocument,object,image,script,stylesheet,xmlhttprequest,popup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var data; | |
data = { | |
fabric: { | |
type: 'shop', | |
name: 'XCATS', | |
stuff: 'Cool cats', | |
staff: { | |
boss: 'Lionel King', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm set prefix $HOME/.node_modules/ # for installing global node modules in home directory | |
read -p 'Your e-mail: ' email | |
git config --global user.email "$email" | |
git config --global user.name "Tadeusz Łazurski" | |
git config --global core.editor vim | |
curl https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh > ~/.git-prompt.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\t\n' | |
set -x | |
export DEBIAN_FRONTEND=noninteractive | |
# Install newer version of LXD | |
# See https://stgraber.org/2016/10/27/network-management-with-lxd-2-3/#comment-244979 | |
apt-get install --yes --quiet --target-release=xenial-backports lxd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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', | |
string, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js' |
OlderNewer