Skip to content

Instantly share code, notes, and snippets.

@sharpicx
sharpicx / GDB.md
Created November 2, 2022 17:02 — forked from xelemental/GDB.md
  • Breakpoints
 → break <address> : Sets a new breakpoint
→ delete <breakpoint#> : Deletes a breakpoint
→ enable < breakpoint#> : Enable a disabled breakpoint
  • Variables and memory display
→ print <query> : Prints content of variable or register.
→ display : Prints the information after stepping each instruction
site:*/sign-in
site:*/account/login
site:*/forum/ucp.php?mode=login
inurl:memberlist.php?mode=viewprofile
intitle:"EdgeOS" intext:"Please login"
inurl:user_login.php
intitle:"Web Management Login"
site:*/users/login_form
site:*/access/unauthenticated
site:account.*.*/login
@sharpicx
sharpicx / playerctl.sh
Created November 22, 2022 09:26
playerctl dunstify's script.
#/bin/bash
# sharpicx
PATH_ICON="$HOME/.icons/Arc/actions/24@2x"
STATUS_PLAYED=$(playerctl --player=spotify status | grep Playing)
DESC_PAUSED="Music just get paused!"
DESC_PLAYED="Music just get playing!"
ART_DESC=$(playerctl --player=spotify metadata | grep artist | sed 's/spotify xesam:artist//g; s/^[ \t]*//g')
SONG_DESC=$(playerctl --player=spotify metadata | grep title | sed 's/spotify xesam:title//g; s/^[ \t]*//g')
TITLE="$ART_DESC - $SONG_DESC"
@sharpicx
sharpicx / collatz.py
Last active January 14, 2023 11:07
collatz conjecture, the fabulous unsolved problems in math.
## https://www.mathcelebrity.com/collatz.php?num=+109&pl=Show+Collatz+Conjecture
## https://goodcalculators.com/collatz-conjecture-calculator/
## sharpicx
def collatz(num):
i = [num]
while num != 1:
if num % 2 == 1:
num = 3 * num + 1
else:
@sharpicx
sharpicx / crackmd5.py
Created January 14, 2023 11:07
md5 cracker
# sharpicx @ iampuffer.xyz
# hackmyvm wmessage machine solution
import hashlib
password = '85c73111b30f9ede8504bb4a4b682f48' # hash to be cracked
def main():
with open('/home/via/Desktop/rockyou.txt', encoding="utf-8", errors="ignore") as passwords: # make a dictiobary to a variable
password_lines = passwords.readlines() # reading a password file
@sharpicx
sharpicx / hotkeys-detector.sh
Created January 26, 2023 03:59
small script
#! /bin/bash
xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'
#!/bin/bash
# by sharpicx @ mycutestgirl.space - ayangnya rifda
# translating the selected sentence or word shown by dunstify daemon notification
# old func
# trans_fromEn() {
# translate-cli -f en -t id "$@" | awk -F: '{ print $2 }' | head -3 | tr '\n' ' ' | sed -s 's/[[:space:]]//'
# }
if [ "$(xsel -b)" == "" ]
import subprocess
import mtranslate
import clipboard
def translateNow(argv, dest="id"):
return mtranslate.translate(argv, dest)
def main():
text = translateNow(clipboard.paste())
try:
@sharpicx
sharpicx / kbbi_backup.sh
Created February 11, 2023 03:54
Kamus Besar Bahasa Indonesia [Old Code]
#! /bin/env bash
clear
# banner untuk memperindah CLI.
banner() {
echo ''
echo -e "${red}██ ██ ██████ ██████ ██${reset}"
echo -e "${red} ██ ██ ██ ██ ██ ██ ██${reset}"
echo -e "${red} █████ ██████ ██████ ██${reset}"
@sharpicx
sharpicx / cleaner.sh
Created February 11, 2023 17:25
cleaner for translateit.py
#!/bin/bash
selected=("/home/via/clipboard" "/home/via/mtranslate" "/home/via/subprocess")
select_random() {
printf "%s\0" "$@" | shuf -z -n1 | tr -d '\0'
}
random=$(select_random "${selected[@]}")