Skip to content

Instantly share code, notes, and snippets.

View heinthanth's full-sized avatar
🏠
Working from home

Hein Thant heinthanth

🏠
Working from home
View GitHub Profile
@heinthanth
heinthanth / MSI-CYBORG-12-A12VF-010TH.md
Created December 29, 2023 14:03
MSI CYBORG 12 A12VF-010TH ( 15K1IMS1.110 ) EC

MSI CYBORG 12 A12VF-010TH ( 15K1IMS1.110 ) EC

I'm was figuring out the values of EC memory based on MSI Center setting. Thanks to RW-Everything for the amazing tool.

Charge Threadshold

address: 0xD7
possible values: 0xE4 ( stop 100% ), 0xD0 ( under 70%, stop at 80% ), 0xBC ( under 50%, stop at 60% )
@heinthanth
heinthanth / todo.nim
Created August 30, 2021 07:42
Just mini app ideas
# HIIIiN's todoapp
# line 27 ကို စကြည့်ပါ။
import os, strformat, json, strutils
proc printHelp() =
# ဒါကထွေထွေထူးထူးမရှိပါဘူး။ multiline string ကိုသုံးပြီး output ထုတ်ရုံပဲ။
const helpString = """
todo v1.0.0. Just a simple todo app.
@heinthanth
heinthanth / linux-course-outline.md
Created December 28, 2020 04:45
linux-course-outline.md

Linux Course Outline

Introduction to Linux

  • History of Linux, Understanding Linux Kernel
  • Linux vs Other OSes
  • Linux family, Linux distributions and choosing distros

Installation ( Basics )

@heinthanth
heinthanth / build-php8-macos.sh
Created September 16, 2020 15:35
Build PHP 8 on macOS.
#!/usr/bin/env bash
brew install pkg-config iconv openssl oniguruma postgresql libzip
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export LDFLAGS="-L /usr/local/opt/[email protected]/lib -L /usr/local/opt/readline/lib"
export CPPFLAGS="-I /usr/local/opt/[email protected]/include -I /usr/local/opt/readline/include"
export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig"
./configure --prefix=$HOME/opt/php \

Keybase proof

I hereby claim:

  • I am heinthanth on github.
  • I am heinthanth (https://keybase.io/heinthanth) on keybase.
  • I have a public key whose fingerprint is 46D4 B293 38EE 5105 BCA7 9A14 2E10 82FB F9CB 91E9

To claim this, I am signing this object:

@heinthanth
heinthanth / pentest-arsenal.md
Last active October 16, 2024 22:03
Penetration Testing Tools for MacOS X
  • [] radare2 - brew
  • [] cutter (radare2) - brew cask
  • [] ghidra - brew cask
  • [] ida-free - brew cask
  • [] nmap - brew
  • [] proxychains - brew (https://gist.github.com/allenhuang/3792521)
  • [] sqlmap - brew
  • [] powershell - brew cask
  • [] impacket scripts - git
  • [] powersploit - git
@heinthanth
heinthanth / composer.json
Created April 19, 2020 08:03
moddable - composer.json
{
"name": "heinthanth/moddable",
"description": "Simple, Hackable, Mini PHP MVC framework",
"type": "project",
"license": "MIT",
"authors": [
{
"name": "Hein Thanth",
"email": "[email protected]"
}
@heinthanth
heinthanth / name-test.js
Created September 1, 2019 09:34
name-test
var pattern = /^[A-Z][a-z]+(\s[A-Z][a-z]+)*$/;
var str1 = "Hein Thant Maung Maung";
var str2 = "Huang Ying Yue"; // not my name; my in-game name LOL
var str3 = "H31iUM";
console.log(str1.test(pattern)); // true
console.log(str2.test(pattern)); // true
console.log(str3.test(pattern)); // false
@heinthanth
heinthanth / vowel-regex.js
Created September 1, 2019 09:06
Vowel-Regex
var str = "Hello, World! I'm Hein Thanth";
var pattern = /[aeiou]/i;
var result = str.match(pattern);
// now result = [e, o, o, I, e, i, a]
@heinthanth
heinthanth / selector.html
Created September 1, 2019 05:30
CSS Selector
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
nav {
color: blue; /* selection with tag name */
}
.demo1 {
color: red; /* selection with class name */