This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################### | |
# # | |
# IPTV PLAYLIST MERGER # | |
# # | |
# by trent # | |
# # | |
# Usage: python3 iptv.py [FILE_NAME] # | |
# # | |
######################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Image proxy in the works. | |
*/ | |
$image = $_GET['url']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 | |
*/ |