Skip to content

Instantly share code, notes, and snippets.

View roman0x58's full-sized avatar
πŸ„β€β™‚οΈ

Belikin Roman roman0x58

πŸ„β€β™‚οΈ
View GitHub Profile
@roman0x58
roman0x58 / dom.ts
Created September 2, 2017 06:44
DOM TS
export class supports {
static classList(): boolean {
return 'classList' in document.documentElement
}
}
export class cls {
static has(el: HTMLElement, className: string): boolean {
if (supports.classList()) {
seq 10000 | parallel -n0 -j100 "curl -s --header "Connection: keep-alive" "http://localhost:9000" > /dev/null"
@roman0x58
roman0x58 / socks5.sh
Created May 1, 2019 10:36
socks5 tunnel
ssh -C2TnN -D 1080 [email protected]
@roman0x58
roman0x58 / gist:e668a37ae101332e26aee1d964cc437f
Created February 15, 2021 12:56
change PNG color with imagemagick
convert xxx.png -fuzz 75% -fill red -opaque white xxx_red.png
@roman0x58
roman0x58 / gist:18a8bb320422724dd5a0af606253d4d5
Created August 16, 2022 07:28
Remove known_host fingerprint
ssh-keygen -f "/home/xxxx/.ssh/known_hosts" -R "xxx.com"
find . -depth -type d -name target -exec rm -rf {} +