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 / 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"
#!/bin/bash
URL="-i sites.txt"
ACCEPT='html,htm,css,js,php,jpg,png,jpeg,gif,bmp,img,ico,svg' #File Accept/Download List
DECLINE='tmp' #File Reject/Decline List
DIR="$HOME/Downloads/web/"
function downloadSite
{
wget --no-clobber --convert-links --random-wait -r -p -E -e robots=off -U mozilla -P $DIR $URL
}
@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 / spider.sh
Last active July 5, 2017 04:20
Spider Using xidel, xargs, and curl
#!/bin/bash
spiderFile="spider.txt"
spiderInfo="spiderInfo.txt"
errorFile="html_errors.txt"
ok="spiderList.txt"
prefix="http://"
curl=$(which curl)
spiderBin=$(which xidel)
xargsBin=$(which xargs)
if [[ -z $curl ]]; then
@T31337
T31337 / download.sh
Created July 4, 2017 12:35
Download From Websites With wget And curl
#!/bin/bash
# Allow more advanced pattern matching (for case..esac below)
shopt -s extglob
#Variables
dir="$HOME/Downloads/web/" #What Directory Do We Save Files To?
ok="ok.txt"
notok="bad_urls.txt" # We Won't Be Needing This... But It Might Be Handy...
sitelist="download.txt" #also can named urls.txt or url-list.txt
#!/bin/bash
#IP Information Gathering Script
ipList="ipList.txt" #IP ADDRESS LIST
ipData="IP_INFO.txt" #IP INFORMATION FILE
ip=""
function getIP_Data
{
if [[ -z $ip ]]; then
read -p "IP ADDRESS: " ip
fi