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
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
@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
{
@AppleBoiy
AppleBoiy / unity_layout.wlt
Created January 29, 2024 18:29
Unity Layout Setup
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
@AppleBoiy
AppleBoiy / Makefile
Created January 26, 2024 09:35
Git w/ submodules script
clear:
find . -name "__pycache__" -exec rm -rf {} \;
find . -name ".DS_Store" -exec rm -rf {} \;
fetp:
git fetch && git pull
save:
git add . && git commit -m "$(msg)" && git push
@AppleBoiy
AppleBoiy / README.md
Created November 30, 2023 18:08
add bits/stdc++.h to Mac

Bits/stdc++.h

This is a header file that includes every standard library. It is primarily used for competitive programming.

Platform Status
macOS

Installation

@AppleBoiy
AppleBoiy / create_docker_group.md
Created November 21, 2023 06:45
ISSUE: Docker Rancher - Permission Denied when using docker from WSL

stackoverflow issue: https://stackoverflow.com/q/72528606/22440363

$ docker ps
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied

FIX

sudo addgroup --system docker
@AppleBoiy
AppleBoiy / Footer_.md
Last active February 5, 2024 06:50
Footer for markdown
@AppleBoiy
AppleBoiy / README.md
Last active November 11, 2023 13:02
build.gradle for simple Java program

Gradle: Build Automation Tool

NOTE This method is quite advanced and is not recommended for beginners. It uses Gradle, a build automation tool, to compile and run complex programs that consist of multiple source-code files.

Project structure:

.
├── build.gradle