Skip to content

Instantly share code, notes, and snippets.

View MKS-01's full-sized avatar
👽

MKS MKS-01

👽
  • REMOTE
  • 13:47 (UTC +05:30)
View GitHub Profile
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@Prasanth-Shakti
Prasanth-Shakti / Android-code-obfuscation.md
Last active January 7, 2026 07:48
Enabling android code obfuscation in react native with R8 and proguard rules

Android code obfuscation in react native

Enabling R8 code obfuscation:

App > build.gradle

debug {
        signingConfig signingConfigs.debug
    }

release {

@dannyhw
dannyhw / setup_rn_sb.sh
Last active November 26, 2023 11:14
Setup a new project to test the 6.0 alpha of react native storybook
#!/bin/bash
npx react-native init RnSBSixAlpha --template react-native-template-typescript;
cd RnSBSixAlpha;
yarn add @storybook/react-native@next \
@react-native-async-storage/async-storage \
@storybook/addon-ondevice-actions@next \
@storybook/addon-ondevice-controls@next \
@storybook/addon-ondevice-backgrounds@next \
@storybook/addon-ondevice-notes@next \
@muff-in
muff-in / resources.md
Last active April 27, 2026 19:35
A curated list of Assembly Language / Reversing / Malware Analysis / Game Hacking-resources
@masablo
masablo / apksigner.sh
Last active March 31, 2024 10:51
How to make a signed .apk file
# 1. install Android Studio from https://developer.android.com/studio/?hl=ja
# 2. add PATH for the Android SDK
cat << 'EOS' >> ~/.zshrc
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/build-tools/29.0.3
EOS
@dmandrade
dmandrade / gist:e76a2da8da8a325f3ab9e275da15d5d9
Last active May 27, 2025 19:31
React Native build unsigned apk without development server
# create assets folder in the current project
$ mkdir android/app/src/main/assets
# create bundle script
$ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
# execute command to run android to create debug apk
$ react-native run-android
# change to android folder
@npearce
npearce / install-docker.md
Last active April 24, 2026 20:03
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@Pulimet
Pulimet / AdbCommands
Last active April 29, 2026 00:26
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@keith
keith / testflight.sh
Last active October 15, 2025 06:22
Upload an ipa to testflight using altool
#!/bin/bash
set -euo pipefail
xcrun altool --upload-app --type ios --file "path/to/foo.ipa" --username "$ITC_USER" --password "$ITC_PASSWORD"
@lopspower
lopspower / README.md
Last active April 27, 2026 18:36
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha: