Skip to content

Instantly share code, notes, and snippets.

View Code-Tap's full-sized avatar

Leigh Wilson Code-Tap

View GitHub Profile
@Code-Tap
Code-Tap / unifi_LED_toggle.sh
Created January 1, 2022 18:59
bash script to toggle Unifi AP led
#!/bin/sh
username=user #Replace with your admin user
password=pass #Replace with your admin pass
baseurl=https://localhost:8443 #Replace localhost with the ip or hostname of your unifi controller
site=default
cookie=/tmp/unifi_cookie
if [ $1 = true ] || [ $1 = false ]; then
curl_cmd="curl --tlsv1 --silent --cookie ${cookie} --cookie-jar ${cookie} --insecure "
@Code-Tap
Code-Tap / Twitter_unlike_Browser_script.md
Last active September 9, 2020 08:53
Unlike all your past likes on Twitter

Easily delete all your likes/favorites from Twitter.

setInterval(() => {
 for (const unlike_button of document.querySelectorAll('div[data-testid="unlike"]')) {
import random, time, sys
class fruit():
#Creating variables at start of game
def __init__(self):
self.credit = 1.0
self.results = ["Cherry","Bell","Lemon","Orange","Star","Skull"]
self.play = True
@Code-Tap
Code-Tap / PNUMLST.bas
Created January 6, 2018 23:14
TI-BASIC Generate prime numbers upto N and output to a list
2→L₆(1
3→L₆(2
Prompt N
For(B,0,N-1
dim(L₆→D
2+L₆→(D→X
1-A
Repeat L₆(A)>√(X
If not(fPart(X/L₆(A
Then
@Code-Tap
Code-Tap / FIBONACC.bas
Created January 6, 2018 23:00
TI-BASIC Get the N'th term of Fibonacci on a TI83/83+ Calclator
ClrHome
Input N
.5(1+√(5
round(Ans^N/√(5),0
@Code-Tap
Code-Tap / BOBSPASS.bas
Created January 6, 2018 09:30
Bob's Brute-Force Password Cracker Stranger Things 2 - Rewritten for the TI83 calculator
ClrHome
0→P
FOR(I,0,9,1
FOR(J,0,9,1
FOR(K,0,9,1
FOR(L,0,9,1
prgmZCHECKPASS
If P=1
THEN
Goto A