Skip to content

Instantly share code, notes, and snippets.

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

Davide Iafrate Tuxliri

🏠
Working from home
View GitHub Profile
@Tuxliri
Tuxliri / gist:f5b0552c45fc819027ed3d9d533516f3
Created October 6, 2026 14:02
Change DNS on TIM HUB Pro
  1. Login to the web interface at 192.168.1.1
  2. Go to Rete locale -> LAN -> Server DHCP
  3. Open Chrome Web Tools by pressing F12
  4. Go in the Console tab
  5. Type allow pasting in the console and press Enter
  6. Paste the following script and press Enter:
$("[id*='DNS'], [id*='dns']").each(function() {
$(this).attr('style', 'display: block !important; visibility: visible !important; opacity: 1 !important;');
@Tuxliri
Tuxliri / choosy
Last active January 6, 2023 17:12 — forked from cesarolea/choosy
Open browser based off of certain rules (like choosy for macOS)
#!/bin/bash
URL=$1
DOMAIN=$(echo "$URL" | awk -F[/:] '{print $4}')
## Domain starts with
if [[ $DOMAIN =~ $(echo ^\($(paste -sd'|' /home/your-user/.config/url-start.txt)\)$) ]]; then
microsoft-edge "$URL" & disown
elif [[ $DOMAIN =~ $(echo ^\($(paste -sd'|' /home/your-user/.config/url-is.txt)\)$) ]]; then
microsoft-edge "$URL" & disown