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 / 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 / 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"
@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 / MP3-To-WAV.bat
Created December 9, 2018 07:37
Convert All MP3 Files In Folder To WAV Files In wav SubFolder Using FFMPEG For Windows
@echo off
color 0a
title FFMPEG Conversion
cls
echo Converting Files...
for /f "tokens=1 delims=." %%a in ('dir /B *.mp3') do ffmpeg -i "%%a.mp3" "./wav/%%a.wav"
echo Done!
echo
echo You Can Now Close This Window (Or Press Enter)
@pause > nul & del nul
#!/bin/python
'''
Simple Psychic Test
By: T31337
'''
import tkinter
#from tkinter import *
from tkinter import messagebox,Label,Button,Tk
@T31337
T31337 / gpg_helper.sh
Last active May 26, 2018 21:51
gpg helper functions script
#!/bin/bash
echo -e "\n"
echo -e "==========="
echo -e "GPG HELEPR"
echo -e "=========="
genKey()
{
clear
@T31337
T31337 / FireBase-Skeleton.java
Last active April 11, 2018 14:34
Basic FireBase Skeleton Code
package Firebase.Skeleton;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.util.Log;
import android.widget.Toast;
import com.google.android.gms.tasks.OnCompleteListener;
@T31337
T31337 / SD_usb_auth.sh
Last active October 30, 2018 01:56
PAM_USB Set-Up & Configuration Helper Script With SD Card Support
#!/bin/bash
#Downlaod .bash_colors (Ensure File Exists And Has Expected Content)
wget http://raw.github.com/maxtsepkov/bash_colors/master/bash_colors.sh -O .bash_colors
#Import Colors Script
#See Here For More Info - https://github.com/mercuriev/bash_colors
source .bash_colors
#Set Authentication Device (SD-Card)
MyDevice="/dev/mmcblk0"