Skip to content

Instantly share code, notes, and snippets.

View ilbonte's full-sized avatar
🎯
Focusing

Davide Bontempelli ilbonte

🎯
Focusing
  • TN,Italy
View GitHub Profile
@ilbonte
ilbonte / docker-compose.yml
Created February 28, 2020 09:54
elasticsearch and kibana cluster v6.5.4
version: "2.2"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
@ilbonte
ilbonte / java-kikstart.md
Last active January 24, 2017 13:23
KIKSTART java development using maven

KIKSTART java development using maven

Requirements

  1. maven
  2. IntelliJ IDEA (optional?)

Steps

  1. Run
@ilbonte
ilbonte / youtube-captions.js
Created May 14, 2016 17:29
Get the transcript for any youtube's video
/*
DOES NOT WORK WITH AUTOMATIC CAPTIONS!
How to:
1. open the javascript console
2. paste the code below and press enter
3. click on the link and open the page
4. If you need to download the subtitles: right click and save as .vtt (can be open with vlc)
*/
var id=window.location.search.split("v=")[1];
var lang='en'; //default language is english (see below)