Skip to content

Instantly share code, notes, and snippets.

View wilk's full-sized avatar

Vincenzo Ferrari wilk

View GitHub Profile
@wilk
wilk / test.js
Last active September 7, 2016 08:35
Sencha Test - ST.play
beforeAll(function (done) {
console.log('BEFORE ALL');
Ext.Ajax.request({
url: AN_URL,
method: 'GET',
// the http request is going well, so let's skip the failure fn definition
success: function () {
console.log('starting');
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: node-backend
spec:
replicas: 2
template:
metadata:
labels:
app: node-backend
@wilk
wilk / telegraf.conf
Created October 23, 2016 19:31
httpjson input response_timeout issue
# Telegraf Configuration
#
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
#
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
#
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.
@wilk
wilk / tsconfig.json
Created December 12, 2016 08:41
tsconfig
{
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"lib": [
"es5",
@wilk
wilk / tslint.json
Created December 12, 2016 08:41
tslint
{
"extends": "tslint:latest",
"rules": {
"semicolon": false,
"no-console": false,
"quotemark": false,
"eofline": false,
"no-trailing-whitespace": false,
"variable-name": false
}
@wilk
wilk / gist:05e0e0b495575936fa435d3e1ec43a13
Created December 19, 2016 16:31 — forked from lsauer/gist:5196979
JavaScript List of selected MIME types (JSON)
//lsauer.com , lo sauer 2013
//JavaScript List of selected MIME types
//A comprehensive MIME List is available here: https://gist.github.com/lsauer/2838503
var mimeTypes =
{
'a' : 'application/octet-stream',
'ai' : 'application/postscript',
'aif' : 'audio/x-aiff',
'aifc' : 'audio/x-aiff',
'aiff' : 'audio/x-aiff',
@wilk
wilk / race.eve
Created January 5, 2017 16:49
A race game written in Eve
# Race
Add competitors
```
commit @race
[#competitor id: 0 name: "foo" score: 0]
[#competitor id: 1 name: "bar" score: 0]
[#competitor id: 2 name: "meh" score: 0]
[#competitor id: 3 name: "lel" score: 0]
[#competitor id: 4 name: "ghgh" score: 0]
[#competitor id: 5 name: "wat" score: 0]
@wilk
wilk / main.py
Created January 6, 2017 17:11
python example
myVar = 10
str = "hello world"
myVar += 10
print(myVar, str)
str += " wilk"
print(str)
@wilk
wilk / fill-array.js
Last active August 8, 2017 09:33
Create an array of SIZE elements with random values between 0 and MAX
const SIZE = 100, MAX = 100
Array.apply(null, {length: SIZE}).map(_ => Math.floor(Math.random() * MAX))
@wilk
wilk / cleaner.sh
Created August 25, 2017 06:07
Clean Docker space on Docker for Mac
# remove dangling volumes
docker volume rm $(docker volume ls -qf dangling=true)
# nuke cleaning
# docker system prune -a -f