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 / coffee-grinder
Last active March 11, 2021 08:18
add a noise to image edges
#!/bin/sh
arg=0
export verbose=0
script_help(){
echo "Usage: coffee-grinder [OPTIONS] "
echo " -r, --radius set edge detection radius (default 2)"
echo " -a, --amount set noise amount (default 25)"
echo " -h, --help show this help"
}
@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 / 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 / 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