Skip to content

Instantly share code, notes, and snippets.

@lucabelluccini
lucabelluccini / console.js
Created January 15, 2020 23:22
Unsubscribe from YT Channels massively (Italian - Replace labels with your language)
var i = 0;
var myVar = setInterval(myTimer, 1600);
var els = document.getElementById("grid-container").getElementsByClassName("ytd-expanded-shelf-contents-renderer");
function myTimer () {
if (i < els.length) {
var unS = els[i].querySelector("[aria-label^='Annulla l']");
if (unS) {
unS.click();
setTimeout(function () {
var unSubBtn = document.querySelector("[aria-label^='Annulla iscrizione']");
@lucabelluccini
lucabelluccini / LinksWSL.md
Last active March 16, 2019 12:20
WSL Windows useful links
@lucabelluccini
lucabelluccini / youtube-domains.txt
Last active March 16, 2019 12:14
Domains of Youtube
googlevideo.com
m.youtube.com
youtu.be
youtube-ui.l.google.com
youtube.com
youtube.l.google.com
ytimg.com
ytimg.l.google.com
ytstatic.l.google.com
www.youtube.com
@lucabelluccini
lucabelluccini / ddclient.conf
Created March 6, 2019 23:42
DDClient get IP from Router
daemon=60 # check every 60 seconds, fritz won't mind
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
use=cmd, cmd=/etc/ddclient/get-ip-from-x
@lucabelluccini
lucabelluccini / dnsmasq-ingest-pipeline
Last active February 24, 2019 11:00
Elasticsearch Ingest Pipeline for DNSMasq
PUT _ingest/pipeline/dnsmasq
{
"description": "DNSMASQ Log Processor",
"processors": [
{
"dissect": {
"field": "message",
"pattern": "%{datetime} dnsmasq[%{?pid}]: %{message_body}"
}
},
@lucabelluccini
lucabelluccini / install_beats_on_arm.md
Created February 23, 2019 16:37
Install Beats on ARM

On a remote host:

git clone https://github.com/elastic/beats.git
cd beats
# checkout the version via tag
make crosscompile on the product
# pick the binaries and copy them

On the ARM system:

@lucabelluccini
lucabelluccini / ssh-jump.txt
Created December 12, 2018 01:07
How to perform SSH jump
Using ProxyJump with SSH and SCP
By Paul Heinlein | Nov 2, 2017
It’s somewhat common to have what’s known as a “jump host” serve as an SSH gateway to a remote network. You use ssh to log into the jump host (or “jump server”) and from there use ssh to log into an internal host that’s not directly accessible from the Internet.
With the release of ssh version 7.3, the OpenSSH folks made it easier to do the jump and internal login in one step.
The Old Way
I’ve used the ProxyCommand for some time now, relying on nc to push SSH traffic over an established tunnel. Without going into the gory details, the process boils down to
@lucabelluccini
lucabelluccini / gist:6df47327fbd6a70558d60fa4f3bb4d7d
Created August 28, 2017 21:49
Job schedulers / Libraries / Flow management
https://github.com/spotify/luigi
https://github.com/huginn/huginn
https://mesos.github.io/chronos/
https://github.com/thieman/dagobah
https://github.com/pachyderm/pachyderm
https://github.com/apache/incubator-airflow
https://github.com/noflo/noflo
https://toil.readthedocs.io/en/latest/
https://github.com/HubSpot/Singularity
http://rocketjob.io/