Skip to content

Instantly share code, notes, and snippets.

View AppleBoiy's full-sized avatar
🧊
/'aɪs/

Chaipat J. AppleBoiy

🧊
/'aɪs/
View GitHub Profile
@AppleBoiy
AppleBoiy / th-address.json
Created August 21, 2025 07:32 — forked from mennwebs/th-address.json
Thai Address from Postal Code - JSON
This file has been truncated, but you can view the full file.
[
{
"zipCode": "10100",
"subDistrictList": [
{
"subDistrictId": "100801",
"districtId": "1008",
"provinceId": "10",
"subDistrictName": "ป้อมปราบ"
<arasblitzscene>
<data fileversion="1.0" exeversion="1.0.0.10" />
<canvas clr="255,255,255,255" panX="-340.644" panY="292.1199" />
<grid gclrclr="255,135,206,235" aclrclr="255,255,0,0" space="10" t="0" axisv="F" v="F" lclr="F" pX="0" pY="0" sizeX="3420.006" sizeY="2178.004" />
<scene posX="0" posY="0" theta="0" scalex="1" scaley="1">
<layers count="2" activendx="1">
<layer name="Google Map" visible="T" locked="F" paint="F" posX="0" posY="0" theta="0" scale="1" lnclr="255,0,0,0" fillclr="255,0,0,0">
<items count="0" />
</layer>
<layer name="Default" visible="T" locked="F" paint="F" posX="0" posY="0" theta="0" scale="1" lnclr="255,0,0,0" fillclr="255,0,0,0">
  1. load module
module load singularity/3.9.5
  1. pull container
singularity pull tensorflow-notebook.sif docker://jupyter/tensorflow-notebook
@AppleBoiy
AppleBoiy / remove_git_history.sh
Created February 25, 2025 06:44
bash script for prune all git history
#!/bin/bash
clear && cat << EOF
##########################################| WARNING |##########################################
!THIS SCRIPT WILL DELETE ALL COMMIT HISTORY AND PUSH A NEW INITIAL COMMIT.
Make sure you really want to do this before proceeding.
##########################################| WARNING |##########################################
@AppleBoiy
AppleBoiy / .bash_aliases
Last active June 10, 2025 00:28
alias for shell
alias loadsh="source ~/.zshrc"
alias rmgit="bash /Users/ive/works/tmp/scripts/remove_git_history.sh"
alias chore="git add . && git commit -m 'chore ~' && git push"
alias stree="tree -I '.git|__pycache__|.idea|venv|.venv|node_modules' -a -C -s -h --du"
@AppleBoiy
AppleBoiy / hehe.gif
Last active November 13, 2024 06:04
GOT U!
hehe.gif
We can't make this file beautiful and searchable because it's too large.
A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,C
39, State-gov,77516, Bachelors,13, Never-married, Adm-clerical, Not-in-family, White, Male,2174,0,40, United-States, <=50K
50, Self-emp-not-inc,83311, Bachelors,13, Married-civ-spouse, Exec-managerial, Husband, White, Male,0,0,13, United-States, <=50K
38, Private,215646, HS-grad,9, Divorced, Handlers-cleaners, Not-in-family, White, Male,0,0,40, United-States, <=50K
53, Private,234721, 11th,7, Married-civ-spouse, Handlers-cleaners, Husband, Black, Male,0,0,40, United-States, <=50K
28, Private,338409, Bachelors,13, Married-civ-spouse, Prof-specialty, Wife, Black, Female,0,0,40, Cuba, <=50K
37, Private,284582, Masters,14, Married-civ-spouse, Exec-managerial, Wife, White, Female,0,0,40, United-States, <=50K
49, Private,160187, 9th,5, Married-spouse-absent, Other-service, Not-in-family, Black, Female,0,0,16, Jamaica, <=50K
52, Self-emp-not-inc,209642, HS-grad,9, Married-civ-spouse, Exec-managerial, Husband, White, Male,0,0,45, United-States, >50K
31, Private,45781,
@AppleBoiy
AppleBoiy / trunk-dev-guide.md
Created July 12, 2024 12:32
How to trunk-based development: https://cmu.to/eTeKI

Trunk-Based Development

Trunk-based development is a source-control branching model where developers collaborate on code in a single branch called the "trunk" or "mainline." This model emphasizes continuous integration and frequent merging of code changes into the trunk to ensure that the codebase remains in a deployable state.

Image Source: Trunk-Based Development

Key Concepts

  • Single Trunk Branch: All developers work on a single main branch (often called main or trunk).
@AppleBoiy
AppleBoiy / remove_git_commit.sh
Created May 24, 2024 03:10
Delete all git commit history
#!/bin/bash
clear && cat << EOF
##########################################| WARNING |##########################################
!THIS SCRIPT WILL DELETE ALL COMMIT HISTORY AND PUSH A NEW INITIAL COMMIT.
Make sure you really want to do this before proceeding.
##########################################| WARNING |##########################################
@AppleBoiy
AppleBoiy / Debugger.cs
Created April 7, 2024 02:59
Unity: Show message from console in build
using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Monitors and displays debug logs in a Unity application.
/// </summary>
public class Debugger : MonoBehaviour
{