Skip to content

Instantly share code, notes, and snippets.

@lucabelluccini
lucabelluccini / nexus-7-2012-wifi-fix.md
Last active February 11, 2024 17:55
Nexus 7 2012 (ASUS, Grouper/Tilapia) might not be able to connect to wifi due to IGTK / Protected Management Frames
@lucabelluccini
lucabelluccini / keybase.md
Created March 17, 2020 09:29
Keybase Elastic

Keybase proof

I hereby claim:

  • I am lucabelluccini on github.
  • I am lucabelastic (https://keybase.io/lucabelastic) on keybase.
  • I have a public key ASCW6JTsTJgz36mapRlFiYIErJ_juzwp2UksovbFkern8wo

To claim this, I am signing this object:

@lucabelluccini
lucabelluccini / Dockerfile
Created March 4, 2020 00:41
Gstreamer latest cross architecture
FROM lopsided/archlinux
RUN yes | pacman -Sy gstreamer gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly gst-python git python python-pip python-setuptools
RUN cd /home/ && \
git clone https://github.com/centricular/gstwebrtc-demos && \
cd gstwebrtc-demos && \
python3 -m pip install --user websockets
@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 / rpi4.boot-from-sd-rootfs-on-usb.md
Last active October 13, 2023 12:38
Raspberry Pi 4 - Boot from SD, Rootfs on USB

Raspberry 4B - Boot from SD and rootfs on USB

Update

RPi4 now supports booting directly from USB. First update to get an eeprom which supports USB Boot, then configure the bootloader to boot from USB.

Original guide

  1. Download Raspbian from the official site
@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}"
}
},