Skip to content

Instantly share code, notes, and snippets.

View marcopeocchi's full-sized avatar
🧙‍♂️

Marco Piovanello marcopeocchi

🧙‍♂️
View GitHub Profile
@marcopeocchi
marcopeocchi / configuration.nix
Created June 4, 2024 11:51
Thinkpad E14 nix
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
---
version: "3"
services:
traefik:
image: traefik:v2.10
container_name: traefik
command: --api.insecure=true --providers.docker
restart: always
environment:
- CF_DNS_API_TOKEN=:D
@marcopeocchi
marcopeocchi / 10-xhcihcd.sh
Created March 15, 2022 09:37
Fix for thinkpad E-14 Gen 2 fried USB 2.0 port
#!/bin/bash
# fix for thinkpad E-14 Gen 2 fried USB 2.0 port
# /usr/lib/systemd/system-sleep/10-xhcihcd.sh
case $1/$2 in
pre/*)
# echo "Going to $2..."
echo "0000:04:00.3" > /sys/bus/pci/drivers/xhci_hcd/unbind
;;
# Illegal italian Anime streaming platforms blocklist
# They serve content illegally and profift from them and from invasive ads
www.animesaturn.it
www.animesaturn.tv
www.animesaturn.com
www.animesaturn.org
www.animeforce.it
www.animesaturn.me
www.animeunity.tv
#!/bin/bash
# Questo script installa una toolchain per sviluppo su ARM
# crosscompiler linux-arm-gnueabi-gcc
# debugger linux-arm-gnueabi-gdb
# gdbgui per linux-arm-gnueabi-gdb
# in futuro configurazioni per Vagrant con vm ubuntu 21.04 e provider virtualbox
# testato su Ubuntu 20.04 e 21.04
# compatibile con l'installazione WSL di Ubuntu 20.04 (funziona anche con debian ma la sconsiglio)