This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import network | |
import time | |
# List of Wi-Fi SSIDs to try along with passwords. | |
ssid_list = ['wifi1', 'wifi2'] | |
#If possible, put passwords in a config_secrets.py file. | |
password_list = ['wifipw1', 'wifipw2'] | |
# password_list = ['wifipw1', ''] # If one is open wifi network. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# I had to do this to get my AX210 card in my Framework laptop to function on the Kali 2022.3 live everything iso. | |
# Connect to the internet before running this script so that the firmware can update via apt. | |
# Remove the broken firmware file. | |
rm /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm | |
# Remove the loaded kernel modules. | |
rmmod iwlmvm | |
rmmod iwlwifi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import system, name | |
hi = "Hi!" | |
mni = "My name is! " | |
ss = " Slim Shady " | |
#function to clear the screen between answers | |
def clear(): | |
# for windows | |
if name == 'nt': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin python | |
import sys | |
sys.path.append("/home/pi/git/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCDPlate") | |
from Adafruit_CharLCDPlate import Adafruit_CharLCDPlate | |
from time import sleep | |
lcd = Adafruit_CharLCDPlate() | |
str_pad = " " * 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
urllib.urlretrieve("http://username:password@192.168.1.100/snapshot.cgi?resolution=32", "/var/www/image.jpg") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import piface.pfio as pfio | |
pfio.init() | |
# A class to controll the relay | |
class Bpress: | |
def relayon(self): | |
pfio.digital_write(1,1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import piface.pfio | |
import time | |
import sys | |
def main(argv): | |
piface.pfio.init() | |
cnt = 0 | |
loop = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Launcher | |
# | |
# A Simple Launcher in Notification Center | |
from scene import * | |
import webbrowser | |
import notification | |
class Key (object): | |
def __init__(self, frame): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
branches = { | |
'192.168.2.1':'Branch1', | |
'192.168.3.1':'Branch2', | |
'192.168.9.1':'Branch3', | |
'192.168.5.1':'Branch4', | |
'192.168.6.1':'Branch5', | |
'192.168.12.1':'Branch6', |