Skip to content

Instantly share code, notes, and snippets.

View trentwiles's full-sized avatar
🏁
riverside.rocks

Trent Wiles trentwiles

🏁
riverside.rocks
View GitHub Profile
@trentwiles
trentwiles / frantech.py
Created January 18, 2023 16:52
Find out if fran is selling Lux VPSs or not
import requests
from bs4 import BeautifulSoup
from flask import Flask
def find():
r = requests.get("https://my.frantech.ca/cart.php?gid=39").text
soup = BeautifulSoup(r, 'html.parser')
if int(soup.find_all("div", {"class": "package-qty"})[0].text.strip()[0]) > 0:
sudo apt install docker.io
sudo docker run --detach --name archiveteam-warrior --restart=on-failure --publish 8001:8001 atdr.meo.ws/archiveteam/warrior-dockerfile
echo "http://localhost:8001"
@trentwiles
trentwiles / ignore.txt
Created January 5, 2021 17:42
Masscan Ignore List
0.0.0.0/8
6.0.0.0/8
7.0.0.0/8
10.0.0.0/8
11.0.0.0/8
21.0.0.0/8
22.0.0.0/8
26.0.0.0/8
28.0.0.0/8
29.0.0.0/8
echo "<br><h2>Glitch Support Forum</h2>";
$supp = file_get_contents("https://support.glitch.com/u/RiversideRocks.json");
$supp_dec = json_decode($supp, true);
echo "<h4>Read " . round($supp_dec['user']['time_read']/86400) . " days. <i>(" . round($supp_dec['user']['time_read']/3600) . " hours)</h4></i>";
$likes = file_get_contents("https://support.glitch.com/u/riversiderocks/summary.json");
$likes_dec = json_decode($likes, true);
echo "<h4>Given " . $likes_dec['user_summary']['likes_received'] . " <i class='fas fa-heart'></i>'s</h4>";
echo "<h4>Gave " . $likes_dec['user_summary']['likes_given'] . " <i class='fas fa-heart'></i>'s</h4>";
echo "<h4>Solved " . $likes_dec['user_summary']['solved_count'] . " problems. <i class='far fa-check-square'></i></h4>"
@trentwiles
trentwiles / img.php
Created July 8, 2020 12:33
Image Proxy
<?php
/*
Image proxy in the works.
*/
$image = $_GET['url'];
$url = "https://discord.com/api/webhooks/yourwebhookhere";
$hookObject = json_encode([
/*
* The general "message" shown above your embeds
*/
"content" => "A message from a person named **". $_POST['name'] . "** with the email **" . $_POST['email'] . "** and the discord **" . $_POST['discord'] . "** has been sent. This is the message: **" . $_POST['text'] . "**",
/*
* The username shown in the message
*/