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
### Keybase proof | |
I hereby claim: | |
* I am slawekkolodziej on github. | |
* I am slawekkolodziej (https://keybase.io/slawekkolodziej) on keybase. | |
* I have a public key ASDO5CThanMHVbHPZ82UHwKMZg-MSbvQfMoZc-qrJ4a0EQo | |
To claim this, I am signing this object: |
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
# Upstart config for consul-agent running on | |
# ECS instance initiated with user-script: with https://gist.github.com/slawekkolodziej/3dbcd3a27b5949ab48e022ce68e3523d | |
description "Consul Agent Container" | |
author "Slawek Kolodziej" | |
start on stopped rc RUNLEVEL=[345] | |
respawn | |
script | |
/usr/bin/docker start -a consul-agent | |
end script |
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
#!/bin/bash -xe | |
S3_BUCKET=foo | |
EXPECTED_SERVERS=2 | |
yum install -y aws-cli | |
aws s3 cp s3://$S3_BUCKET/ecs.config /etc/ecs/ecs.config | |
aws s3 cp s3://$S3_BUCKET/docker.config /etc/sysconfig/docker | |
run_consul_agent() { | |
peers="" |
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
// ==UserScript== | |
// @name New ING Login Helper | |
// @description Creates a password input field for password managers | |
// @author Slawek Kolodziej | |
// @namespace slawekkolodziej | |
// @include https://login.ingbank.pl/mojeing/app/* | |
// @run-at document-end | |
// @version 1.2.0 | |
// @grant none | |
// ==/UserScript== |
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
setInterval(function() { | |
var time = ((countdownTimestamp * 1000) - new Date()) / 1000, | |
h = Math.floor(time / 60), | |
s = Math.floor(time % 60), | |
title = h + ":" + s; | |
document.getElementsByTagName("title")[0].textContent = title; | |
}, 1000); |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/png" | |
"io/ioutil" |
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 (HC) { | |
var drawPoints = HC.seriesTypes.flags.prototype.drawPoints; | |
HC.seriesTypes.flags.prototype.drawPoints = function () { | |
drawPoints.call(this); | |
var points = this.points, | |
l, i; | |
for (i = 0, l = points.length; i < l; i++) { |
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(HC){ | |
var seriesTypes = Highcharts.seriesTypes; | |
seriesTypes.candlestick.prototype.getAttribs = function () { | |
seriesTypes.column.prototype.getAttribs.apply(this, arguments); | |
var series = this, | |
options = series.options, | |
stateOptions = options.states, |
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
Highcharts.Series.prototype.toggleConnected = function(visible) { | |
var visibility = visible || !this.visible, | |
series = this.options.connectedSeries, | |
l = series.length, | |
serie; | |
while (l--) { | |
serie = this.chart.get(series[l]); | |
serie.setVisible(visibility, false); | |
serie.checkbox && (serie.checkbox.checked = visibility); |
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 originalGetAttribs = Highcharts.seriesTypes.column.prototype.getAttribs; | |
Highcharts.seriesTypes.column.prototype.getAttribs = function () { | |
var merge = Highcharts.merge, | |
series = this, | |
points = series.points, | |
stateOptions = series.options.states, | |
negativeColor = series.options.negativeColor, |
NewerOlder