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 | |
if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
if (isset($_POST['link']) && function_exists('shell_exec')) { | |
$link = escapeshellarg($_POST['link']); | |
$unique_dir = 'downloads/' . time(); | |
mkdir($unique_dir, 0777, true); | |
$command = "TMPDIR=/home/username/tmp-dl /home/username/yt-dlp_linux -o '$unique_dir/[watermarkdomainthing.com] %(title)s.%(ext)s' $link"; | |
// Add audio only option if checked | |
if (isset($_POST['audioOnly'])) { |
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
tell application "System Events" | |
repeat | |
key code 124 -- Key code for the right arrow key (Like) | |
-- key code 123 -- Key code for the left arrow key (Dislike) | |
-- delay 2 | |
set randomDelay to random number from 1 to 3 -- Generates a random number between 1 and 3 | |
delay randomDelay -- Waits for the randomly generated number of seconds | |
end repeat | |
end tell |
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
// ==UserScript== | |
// @name With.is - Auto Refresh | |
// @namespace http://with.is/ | |
// @version v0.1 | |
// @description 検索ページを5分ごとに自動リフレッシュして、オンライン状態を保持しましょう。 | |
// @author Glitch | |
// @match https://with.is/search* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=with.is | |
// @grant none | |
// ==/UserScript== |
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 /etc/rc.common | |
#License: GPL-2.0-or-later | |
#Original by Tad @ https://divested.dev/unofficial-openwrt-builds/mvebu-linksys/patches/work/divblock.sh | |
#This mod adds up to five hosts for a bit more granular control | |
#on which hosts you would like to use, in case the original host | |
#list is too strict for your use case. | |
START=99 | |
USE_PROCD=1 |
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
CC=gcc | |
CFLAGS=-O3 -march=native -pipe | |
OBJ = main.o | |
%.o: %.c $(DEPS) | |
$(CC) -c -o $@ $< $(CFLAGS) | |
gct-generate: $(OBJ) | |
$(CC) -o $@ $^ $(CFLAGS) |
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 | |
# iStore English Patcher by Glitch | |
echo "Welcome to the iStore English Patcher" | |
echo "What do you want to do?" | |
echo "1. Make iStore English" | |
echo "2. Revert to Chinese iStore" | |
#echo "3. Make iStore Dark Theme" | |
#echo "4. Restore iStore's Original Theme" | |
echo "3. Exit" | |
read n |
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
cd /etc/dnscrypt-proxy2/ #go to path | |
rm -f blacky.txt #remove old | |
wget -q -O 1.txt https://dblw.oisd.nl/ #download | |
wget -q -O 2.txt https://dblw.oisd.nl/extra/ #download | |
wget -q -O 3.txt https://badmojr.github.io/1Hosts/Pro/wildcards.txt #download | |
cp blocked-names.txt mine.txt #copy to tmp file to keep notes | |
cat 1.txt 2.txt 3.txt > blacky.txt #combine all downloads | |
sed -i -e 's/*.//g' blacky.txt #remove *. | |
sed -i -e '/^#/d' blacky.txt #remove header/comments | |
sed -i -e '/^$/d' blacky.txt #remove empty lines |
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
// LZSS decompressor | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys\stat.h> | |
char *decode_lzss_stuff(FILE *fp_i, unsigned int *length_ptr) { | |
unsigned char *outbuffer = NULL; // decoded data | |
// should check for size overflow, but I'm going to be stupid and not do so | |
unsigned int buffersize = 163840; // arbitrary initial size |
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
if [ -d "/Applications/Discord.app" ]; then | |
pkill -x Discord | |
rm -rf /Applications/Discord.app/Contents/Resources/app | |
wget -q https://github.com/rauenzi/BetterDiscordApp/archive/injector.zip | |
unzip -qq injector.zip | |
rm -rf injector.zip | |
mv BetterDiscordApp-injector app | |
mv app /Applications/Discord.app/Contents/Resources/ | |
chown -R $(whoami) /Applications/Discord.app/Contents/Resources/app | |
echo "BD updated, you may now open Discord" |
NewerOlder