Skip to content

Instantly share code, notes, and snippets.

View yaelahrip's full-sized avatar
🌴
On vacation

rsvrx yaelahrip

🌴
On vacation
  • Indonesia
View GitHub Profile
@yaelahrip
yaelahrip / AnyDesk-Reset.cmd
Created September 3, 2024 20:56 — forked from janasco/AnyDesk-Reset.cmd
AnyDesk Reset
@echo off & setlocal enableextensions
title Reset AnyDesk
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit)
chcp 437
call :stop_any
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf"
del /f "%APPDATA%\AnyDesk\service.conf"
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\"
rd /s /q "%temp%\thumbnails" 2>NUL
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails"
@yaelahrip
yaelahrip / decode_transaction.py
Created December 6, 2022 08:40 — forked from yifeihuang/decode_transaction.py
Decoding an Ethereum smart contract transaction
import traceback
import sys
from functools import lru_cache
from web3 import Web3
from web3.auto import w3
from web3.contract import Contract
from web3._utils.events import get_event_data
from web3._utils.abi import exclude_indexed_event_inputs, get_abi_input_names, get_indexed_event_inputs, normalize_event_input_types
from web3.exceptions import MismatchedABI, LogTopicError
from web3.types import ABIEvent