Skip to content

Instantly share code, notes, and snippets.

View Winston-Lin-9527's full-sized avatar
💩
ML

Winston Lin Winston-Lin-9527

💩
ML
View GitHub Profile
@Winston-Lin-9527
Winston-Lin-9527 / mac_spoofer
Created January 23, 2023 00:17
Extend Wifi usage indefinitely on your macbook
#
# Rock on free cafe or library wifi that impose horrendous limit on your usage.
# It spoofs your device's MAC address, run it once to turn on, twice to turn off. You get a random MAC addr everytime.
# So to extend on an existing spoofing session, turn off, then turn on again.
# Winston Lin @ 2023
#
#!/bin/bash
# disconnect the wifi
@Winston-Lin-9527
Winston-Lin-9527 / gist:ebe9a1af69d104aeb9be1845582b5985
Last active January 16, 2023 02:04
finding the smallest fib sum with 1 chance for restart
def fib(n):
a, b = 0, 1
for _ in range(n):
yield a
a, b = b, a + b
fib_list = list(fib(99))
min_sum = (sum(fib_list), 0)
print(f"test: {min_sum}")