Skip to content

Instantly share code, notes, and snippets.

View glenkusuma's full-sized avatar

Glen Kusuma glenkusuma

View GitHub Profile
@adojos
adojos / Oh-my-zsh_Powerlevel10k.zsh.md
Last active November 24, 2023 07:22
Oh-my-zsh - Powerlevel10k Theme Config for GitBash #gitbash #linux

Oh-my-zsh - Powerlevel10k Theme Config for GitBash (Win)

My 'Powerlevel10k Theme' config for Oh-my-zsh on GitBash (Win)

.p10k.zsh

# Generated by Powerlevel10k configuration wizard on 2021-10-07 at 22:49 GMTST.
@rappasoft
rappasoft / laravel-livewire-tables-demo-table.php
Last active May 24, 2025 03:35
Laravel Livewire Tables Demo Table Source
<?php
namespace App\Http\Livewire;
use App\Models\Tag;
use App\Models\User;
use Illuminate\Database\Eloquent\Builder;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Columns\BooleanColumn;
use Rappasoft\LaravelLivewireTables\Views\Column;
@nic0-lab
nic0-lab / dwm_patches_list.md
Created June 29, 2020 18:23
List of dwm patches with the description

This is the list of patches for the dwm window manager from suckless.org, with description for each patch in one page.

activetagindicatorbar

This patch changes the rectangle indicating if a tag is used by a client into a bar above the tag name. Be sure to use a font which leaves enough space between the text of the tag name and the top of the bar.

actualfullscreen

Actually toggle fullscreen for a window, instead of toggling the status bar and the monocle layout.

@fworks
fworks / install-zsh-windows-git-bash.md
Last active July 6, 2026 06:45
Zsh / Oh-my-zsh on Windows Git Bash
@the-vampiire
the-vampiire / extract-cookies.js
Last active January 20, 2025 11:15
express supertest / superagent utility for accessing response cookies as objects
const shapeFlags = flags =>
flags.reduce((shapedFlags, flag) => {
const [flagName, rawValue] = flag.split("=");
// edge case where a cookie has a single flag and "; " split results in trailing ";"
const value = rawValue ? rawValue.replace(";", "") : true;
return { ...shapedFlags, [flagName]: value };
}, {});
const extractCookies = headers => {
const cookies = headers["set-cookie"]; // Cookie[]
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 21, 2026 01:12
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@palopezv
palopezv / dwm_config_pulseaudio.h
Last active July 14, 2026 13:27 — forked from neuro-sys/dwmconfig.h
dwm volume control with hardware multimedia keys (pipewire, pulseaudio, amixer and light as an extra)
/**
* dwmconfig.h
* Hardware multimedia keys
*/
/* Somewhere at the beginning of config.h include: */
/*
You obviously need the X11 development packages installed, X11proto in particular, but
here is the location of the keysyms header upstream copy if you can't bother
using the contents of your own hard drive. ;-P
@mjnaderi
mjnaderi / install-arch.md
Last active May 10, 2026 12:53 — forked from mattiaslundberg/arch-linux-install
Installing Arch Linux with Full Disk Encryption (LVM on LUKS)

Installing Arch Linux with Full Disk Encryption

If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.

Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.

If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.

@tabrindle
tabrindle / webp-convert-directory.sh
Last active August 10, 2025 22:45
Convert all files in directory to webp, with default params, or standard cwebp params passed from command
#!/bin/bash
PARAMS=('-m 6 -q 70 -mt -af -progress')
if [ $# -ne 0 ]; then
PARAMS=$@;
fi
cd $(pwd)