Skip to content

Instantly share code, notes, and snippets.

View berkedel's full-sized avatar

Akhmad Syaikhul Hadi berkedel

View GitHub Profile
berkedel /
Created October 24, 2022 13:32
Quick and dirty verbose LuaJIT's bytecode version 2 disassembler. For v1, please refer to
#!/usr/bin/env python3
import sys
import struct
import math
# Constants
# Internal (LEB128 buffer)
MAX_ULEB_SIZE = 256 # Maximum proto size here is 2^7^256

Encrypt and Decrypt Plain String


echo "<plain_string>" | openssl enc -e -des3 -base64 -pass pass:mypasswd -pbkdf2


berkedel /
Created July 8, 2021 01:54 — forked from AnatomicJC/
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Fetch application APK

To get the list of your installed applications:

berkedel /
Last active June 15, 2024 13:36
Mount HFS+ in Raspberry Pi

The first thing to do before we access HFS+ drive, ensure our board is running lastest software.

sudo apt update
sudo apt upgrade

Install all HFS packages we need.

sudo apt-get install hfsplus hfsutils hfsprogs gdisk
berkedel /
Created May 21, 2021 08:48
Fix Bootloop/Softbrick on Asus Zenfone C Z007

Fix Bootloop/Softbrick on Asus Zenfone C Z007

Prerequisite files:

  1. fastboot
  2. Firmware ASUS Zenfone C Z007 ZC451CG WW v4.11.40.55

WARNING: The steps below will wipe up your device!

In order to fix the bootloop or softbrick, you will need a couple steps below:

  1. Boot the device into fastboot mode by holding power button and volume up until the droid image shows up.
berkedel /
Created October 12, 2020 10:43
How to import x509.pem pk8 file into jks keystore

How to import x509.pem pk8 file into jks keystore


Generate a file platform.priv.pem from you pk8 file.

openssl pkcs8 -in platform.pk8 -inform DER -outform PEM -out platform.priv.pem -nocrypt
berkedel /
Created July 2, 2020 01:54
Setup Tools on WSL Ubuntu

Setup Tools on WSL Ubuntu

This is a personal note to make a documentation when I use WSL Ubuntu 20.04 LTS on Windows 10.

Change hostname

Edit the default hostname by editing two files below. Replace all the old hostname with the new one.

$ sudo vi /etc/hostname
berkedel /
Last active July 5, 2024 16:50
Fix `xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance`

Tried to create react app

npx create-react-app app

Unfortunately, got an xcodebuild error

node-pre-gyp ERR! Tried to download(404):
berkedel /
Created January 3, 2020 11:21
Fix `sudoers` issue on macOS Catalina

Fix sudoers Issue on macOS Catalina

If you messed up with editing sudoers, this solution is for you. The solution is limited to restoring /etc/sudoers file to the original state. It is easier to mess up your config such as saving wrong format, etc.

How to Fix

  • Please reboot your macOS into recovery mode. While rebooting press and hold Cmd+R key.
  • After you completely reboot, you will see a dialog. You need to open Terminal by clicking Utilities > Terminal on menu.
  • In order to mount /etc as writable state, you need to disable SIP first by executing csrutil disable.
  • Reboot into single user mode. While rebooting press and hold Cmd+S key.