Skip to content

Instantly share code, notes, and snippets.

View iGlitch's full-sized avatar
🏠

Glitch iGlitch

🏠
View GitHub Profile
@iGlitch
iGlitch / swipe.scpt
Last active April 22, 2024 14:56
Bumble, Tinder Auto-Swipe for macOS using AppleScript
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
@iGlitch
iGlitch / auto-refresh.js
Last active April 7, 2024 20:53
with.is (ウィズ) ユーザースクリプト コレクション
// ==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==
@iGlitch
iGlitch / tsumpremiumbuy.ahk
Created August 31, 2023 15:54
AutoHotKey - Auto Purchase Premium Boxes Loop
#NoEnv
#SingleInstance
SendMode Input
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Screen
; ツムツムストア開いた状態
loop {
Click, 1590, 530 ;Click プレミアム BOX
Sleep, 1000
@iGlitch
iGlitch / divblock.sh
Last active October 4, 2022 13:52
divblock mod for OpenWRT dnsmasq Adblocking
#!/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
@iGlitch
iGlitch / Makefile
Last active August 2, 2023 14:25
Yet another Gecko code to .gct. Accepts codes formatted like: 00000000 11111111
CC=gcc
CFLAGS=-O3 -march=native -pipe
OBJ = main.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
gct-generate: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
@iGlitch
iGlitch / istore.sh
Last active May 12, 2022 06:14
OpenWRT iStore English "Installer"
#!/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
@iGlitch
iGlitch / blacklist-update.sh
Last active August 13, 2022 04:16
Update DNSCrypt Blacklist oisd full & extra, 1Hosts Pro for cron
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
// 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
@iGlitch
iGlitch / bd.sh
Last active February 29, 2024 21:48
BetterDiscord Automatic Manual Installer - Mac OS
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"
@iGlitch
iGlitch / mpv.conf
Created August 4, 2019 23:19
my mpv config
###########
# General #
###########
vo=libmpv
cocoa-force-dedicated-gpu=yes
#load-stats-overlay=no
# OpenGL settings
gpu-api=opengl