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
package main | |
// AS OF this being posted, librespot-golang has some deadlocking and you will need to use this fork: https://github.com/benpye/librespot-golang | |
import ( | |
"Spotify" | |
"librespot" | |
"librespot/core" | |
"librespot/utils" |
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
#!/bin/sh | |
# This script scrapes Crunchyroll to get an m3u8 and caption file. | |
# It then uses ffmpeg to download + mux it all into a single mp4. | |
# It uses awk for EVERYTHING. Sorry? I really wanted to use Python or something | |
# but that would make it into just a Python thing, or Node or whatever. | |
# This was painful though because I hate awk. | |
# See if argv has enough params | |
if [ $# -lt 2 ]; then |
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 | |
// This works best on Apache, and if you have enable_post_data_reading off. | |
// Set "php_flag enable_post_data_reading off" in your htaccess. It'll avoid having to parse multipart forms. | |
// enter the sock to connect to here | |
const SOCK_TO_CONNECT_TO = './run.sock'; | |
// Close the session right now, because it might make everything faster, and we don't know how long the response will last for. | |
session_write_close(); |
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 | |
// This chat thing uses nothing but shmop, but it requires SSE (Server-Sent Events) to work on your server. | |
// If this chat just does nothing, i.e. you post a message and literally nothing else happens, SSE probably doesn't work. | |
// Note that this file continuously reads a shared memory block and detects a difference, in order to get live messages. | |
// This might not be all that efficient, and can be intensive on your server. Don't leave this up for a long period of time. | |
// This will also not work with PHP's built-in server, due to it being single-threaded. Oh yeah, since this uses SSE, this will use a separate thread for every client that is connected. | |
// Have fun. This should work right away with no config. | |
// set the size of these shared memory blocks, "message buffers" here |
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
#!/bin/sh | |
if [ $REQUEST_METHOD = "POST" ]; then | |
echo | |
$(cat) 2>&1 | |
exit | |
fi | |
printf "Content-type: text/html\n\n" | |
#echo |
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 | |
//ini_set('display_errors', 1); | |
$db = new SQLite3('cheapvps-comparison.db'); | |
/* | |
CREATE TABLE "offers" ( | |
"created_at" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
"url" text NOT NULL, | |
"post_type" integer NOT NULL, |
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
html, textarea { | |
background-color: #3d3d3d; | |
color: white; | |
font-family: sans-serif; | |
} | |
textarea { | |
border-color: darkgray; | |
font-family: monospace; | |
display: block; | |
height: 100px; |
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 | |
/* | |
OlvClient by Arian Kordi | |
https://github.com/ariankordi | |
Licensed under GNU AGPLv3: https://choosealicense.com/licenses/agpl-3.0/ | |
*/ | |
class OlvClient { |
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
hi. this app is a reverse proxy, meaning that when it launches, it runs a server that connects to the official server, like a proxy (except that it only supports one site) and it modifies some requests and responses along the way. | |
now here is a terrible guide | |
first: the "iksm.py" file and its functions is copied and modified from splatnet2statink, retrieved from https://github.com/frozenpandaman/splatnet2statink at least at commit a971a21fafdbd026aa8b44d7514119d3ff6073a2. this information should be added in the file itself but it's worth mentioning here | |
when running any of these files like bruh.py or mitmproxy with bruhx.py, if you see that there's a module missing, just install it (notably requests and hashlib is required) | |
the main magic script which is the mitmproxy addon and gets tokens from splatnet2statink functions is bruhx.py. execute bruh.py, (without the x), follow the instructions, and then the value it gives you needs to be placed into the "codee" variable in bruhx.py. | |
bruh.sh starts mitmproxy. |