Skip to content

Instantly share code, notes, and snippets.

View limkhashing's full-sized avatar
:octocat:
When there is a challenge, there is an opportunity

Lim Kha Shing limkhashing

:octocat:
When there is a challenge, there is an opportunity
View GitHub Profile
@limkhashing
limkhashing / BufferedReadAndWrite.kt
Created January 22, 2025 16:54
Kotlin I/O Essentials
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
import kotlin.system.measureTimeMillis
fun main() {
val file = File("hello2.txt")
@limkhashing
limkhashing / autoexec.cfg
Last active January 26, 2025 18:37
dota2 autoexec.cfg
//Performance
engine_no_focus_sleep 0 // Maintain high fps when alt tabbed
sv_forcepreload 1
dota_minimap_creep_scale 3
dota_health_hurt_decay_time_max 0 // Fade time on DMG done/received reduced to instant
dota_health_hurt_decay_time_min 0
dota_health_hurt_delay 0
dota_pain_factor 0
dota_pain_fade_rate 0
@limkhashing
limkhashing / autoexec.cfg
Created January 26, 2025 18:37
CS:GO autoexec.cfg
cl_disablehtmlmotd "1" // Disables The Servers Message of The Day.
cl_forcepreload "1"
r_drawtracers_firstperson "0" // Firstperson Tracers OFF.
r_eyegloss "0" // No Makeup.
r_eyemove "0" // No Eye Movement.
r_eyeshift_x "0" // No Eye Movement X-Angel.
r_eyeshift_y "0" // No Eye Movement Y-Angel.
r_eyeshift_z "0" // No Eye Movement Z-Angel.
r_eyesize "0" // Smaller Eyes.
@limkhashing
limkhashing / bypass_paywalls_clean_custom.json
Last active February 14, 2025 16:56
Bypass Paywall Custom Site
{
"Business Times":{
"block_js":1,
"domain":"businesstimes.com.sg",
"group":"businesstimes.com.sg"
},
"Lian He Zao bao":{
"block_js":1,
"domain":"zaobao.com.sg",
"group":"zaobao.com.sg"
@limkhashing
limkhashing / AppModule.kt
Last active December 19, 2025 16:18
Dagger-Hilt vs. Koin vs. Manual Dependency Injection
// Hilt
@Module
@InstallIn(SingletonComponent::class)
object AppModule {
@Provides
@Singleton
fun provideDatabase(@ApplicationContext context: Context): MyAppDatabase {
return MyAppDatabase(context)
}
}
@limkhashing
limkhashing / Andoid XDA.md
Last active June 2, 2026 09:37
Android useful XDA resources for Modded app
@limkhashing
limkhashing / EdgeToEdgeDemo.kt
Created February 12, 2025 14:40
Handle Edge to Edge that was enforced on Android 15
@Composable
fun ScreenContent() {
EdgeToEdgeDemoTheme {
// Need to add Scaffold, and can apply Material 3 theme. Scaffold will automatically handle the window insets
Scaffold(
topBar = {
TopAppBar(
title = { Text("Hello world!") },
colors = TopAppBarDefaults.topAppBarColors(
containerColor = Color(0xFF37B362)
@limkhashing
limkhashing / deploy.yml
Last active August 7, 2025 17:57
Nginx config
name: Deploy Notes SpringBoot Backend
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
@limkhashing
limkhashing / .zshrc
Last active June 20, 2025 16:44
ZSH config for Terminal
########## Shell Configuration ##########
if [[ -f "/opt/homebrew/bin/brew" ]] then
# If you're using macOS, you'll want this enabled
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# Set the directory we want to store zinit and plugins
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
@limkhashing
limkhashing / config.yaml
Created June 19, 2025 08:14
Tabby Config
version: 7
profiles: []
groups: []
configSync:
parts: {}
hotkeys:
toggle-window:
- Ctrl-Space
copy-current-path: []
ctrl-c: