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/bash | |
# To use this script: | |
# wget -qO- https://gist.github.com/ClayFreeman/a4dae9b7d0fa2c6476eb/raw | sh | |
echo | |
# Store pre-script working directory | |
export PAST_PWD=`pwd` | |
# Store MB of RAM available | |
export RAM_MB=`free -m | egrep '^Mem' | awk '{print $2}'` |
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
/* | |
* Copyright (c) 2015. Starlis LLC / dba Empire Minecraft | |
* | |
* MIT License: | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in | |
* the Software without restriction, including without limitation the rights to use, | |
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the | |
* Software, and to permit persons to whom the Software is furnished to do so, |
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
/* | |
* Copyright (c) 2015. Starlis LLC / dba Empire Minecraft | |
* | |
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval | |
* | |
*/ | |
package com.empireminecraft.systems.holograms; | |
import com.empireminecraft.config.meta.PersistentMetaKey; |
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
# Big thanks to the original creator of this script, IamLukeVice: https://www.reddit.com/user/IamLukeVice | |
# | |
# Copy all this content, paste in notepad and save as a ps1 file, example: Fix-Fornite-Replays.ps1 | |
# Then, open the folder containing the script, right click it and choose: Run With Powershell | |
# If it doesnt run, follow this: https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts | |
$LocalAppDataFolder = "$env:LOCALAPPDATA" | |
$FortniteReplaysFolder = $LocalAppDataFolder + "\FortniteGame\Saved\Demos" | |
$count = 0 | |
Get-Childitem $FortniteReplaysFolder -Filter *.replay | | |
Foreach-Object { |
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
#!/usr/bin/env python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
class S(BaseHTTPRequestHandler): |
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 re | |
import aiohttp | |
async def run(username, password): | |
session = aiohttp.ClientSession() | |
data = { | |
'client_id': 'play-valorant-web-prod', | |
'nonce': '1', | |
'redirect_uri': 'https://beta.playvalorant.com/opt_in', | |
'response_type': 'token id_token', |
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
var delay = 500; | |
var regex = /\?cid=(\d+)/; | |
var results = {}; | |
$(".instructor_endorsed_sr").each(function(i, o) { | |
var iid = setTimeout(function(){ | |
o.click(); | |
// On threads with multiple answers, only first person gets credit? | |
var name = $("#s_answer .post_region_actions .user_name").first().text() || "Anonymous"; |