Skip to content

Instantly share code, notes, and snippets.

View nicomazz's full-sized avatar

Nicolò Mazzucato nicomazz

  • Zurich
View GitHub Profile
@nicomazz
nicomazz / book_bibione_beach.py
Last active August 28, 2020 17:13
Small script to help your grandmother who doesn't know what internet is to book her beach spot in the first row before the others
#!/usr/bin/python
import threading
from datetime import date, datetime, timedelta
from multiprocessing import Pool
import requests
from bs4 import BeautifulSoup
# logging.basicConfig(level=logging.DEBUG)
@nicomazz
nicomazz / wifi_connect.sh
Created February 5, 2019 10:46
wifi adb automatic connection
#!/bin/bash
ip=`adb shell ip addr show wlan0 | grep 'inet ' | cut -d' ' -f6|cut -d/ -f1`
echo "ip found: $ip"
adb tcpip 5555
echo "remove the usb cable"
read -n 1
echo "connecting.."
adb connect $ip:5555
# to return in usb mode use: "adb usb"