Skip to content

Instantly share code, notes, and snippets.

View lepz0r's full-sized avatar

Ryan Putrama Yahya lepz0r

  • Depok, Indonesia
View GitHub Profile
@lepz0r
lepz0r / open-youtube-chat
Last active August 9, 2020 17:57
Open a YouTube livestream chat
#!/bin/python
import re
import argparse
import subprocess
try:
import sys
from PyQt5.Qt import *
from PyQt5.QtWebEngineWidgets import *
from PyQt5.QtWidgets import QApplication
except ImportError:
@lepz0r
lepz0r / protectfile.bat
Last active December 12, 2020 19:53
Protect .zip file from STOP/DJVU ransomware
@echo off
::
:: USE THIS ONLY ON THE .ZIP FILE, IF THE FILE ISN'T ZIP FILE JUST PUT IT IN THE .ZIP FILE
:: Just save this file and drag & drop a file to this file
:: Tested filetype: .zip
:: In case of infection just remove the extension of the ransomware and extract the .zip file normally
:: Demo: https://youtu.be/36HmHXqmCwQ
::
powershell -Command $out = new-object byte[] 7000000; (new-object Random).NextBytes($out); [IO.File]::WriteAllBytes(\"$env:temp\randomfile\", $out)
copy /b %TEMP%\randomfile+"%1" "%~d1%~p1%~n1_protected%~x1"
@lepz0r
lepz0r / update6
Created November 24, 2019 19:44
s6-rc update script
#!/bin/sh
# Tested on Artix Linux
#
# Add a service that you want to enable to /etc/default/update6 (separated with newline or space)
export services=$(tr '\n' ' ' < /etc/default/update6)
s6-rc-bundle delete default
s6-rc-bundle add default $services
s6-rc-update /etc/s6/rc/compiled
@lepz0r
lepz0r / isp-ads.filter
Last active March 13, 2024 00:14
Filter Privoxy untuk menghapus inject iklan Telkomsel & Indihome | Privoxy filter to remove Telkomsel & Indihome ad injection
# 1. Simpan file ini ke C:\Program Files (x86)\Privoxy\isp-ads.filter untuk Windows 64-bit, C:\Program Files\Privoxy\isp-ads.filter untuk Windows 32-bit, /etc/privoxy/isp-ads.filter untuk linux
# 2. Tambahkan "filterfile isp-ads.filter" ke C:\Program Files (x86)\Privoxy\config.txt untuk Windows, /etc/privoxy/config untuk linux
# 3. Tambahkan ini (tanpa '#') ke C:\Program Files (x86)\Privoxy\match-all.action untuk Windows, /etc/privoxy/match-all.action untuk Linux
#
# {+filter{isp-ads} +server-header-filter{isp-ads-page}}
# /
#
# Video (Windows): https://youtu.be/mbfp2SIVnsU
# EN: