Skip to content

Instantly share code, notes, and snippets.

View glenkusuma's full-sized avatar
✨

Glen Kusuma glenkusuma

✨
View GitHub Profile
@OmerFarukOruc
OmerFarukOruc / opencode-kimi-setup.md
Last active August 28, 2026 08:37
OpenCode + Kimi For Coding (K2.5) Setup

OpenCode + Kimi For Coding (K2.5) Setup

1. Add credentials

opencode auth login
# Select "Kimi For Coding"
# Enter your API key (sk-kimi-...)
@glenkusuma
glenkusuma / how-to-make-gif-from-youtube-video-or-any-websites-using-linux-and-foss.md
Created February 13, 2025 17:38
How to Make Gif from Youtube Video or any Websites using Linux & FOSS

How to Make Gif from Youtube Video or any Websites using Linux & FOSS

GIF or JIF?

“GIFs are like that ex you can't stand but keep going back to—they're quirky, outdated, sometimes glitchy — but somehow still steals every scene with its endless, looped charm — nothing else quite captures the moment like they do”

– Anonymous, from a Reddit thread on internet culture


This guide We going explore a workflow of cliping a youtube video then, video segment downloading, video editing with Kdenlive, conversion to GIF with FFmpeg, further optimization using Gifsicle, and finally uploading for public access.

@glenkusuma
glenkusuma / install-zsh-windows-git-bash.md
Last active October 20, 2026 12:06 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@MrDuartePT
MrDuartePT / nvidia-optimus.md
Last active February 13, 2026 15:39
How to setup Nvidia Optimus Laptop on Linux

How to setup Nvidia Optimus Laptop on Linux

This tutorial was made for Gentoo, Arch and Fedora/RHEL base distros, this can be adapt for any distro open a pull request or a issue indicating the package name (or just use the manually way of install.

Note: The tool use in this guide were developer for Asus laptop if you are using a Asus laptop please refer to this link for other brands try this method

Note: Don't use on PopOS they have there own way of managing Optimus Laptop built in the distro!!!*

My Setup:

  • Lenovo Legion 5 15ACH6H running Vanila Arch and Gentoo on two sepreate btrfs subvolume;
@glenkusuma
glenkusuma / igracias_edom.js
Last active June 3, 2024 16:54
igrasias edom script - feelin lazy pressin all the input form in igracias edom? just copy and paste this javascript into your dev tool console! let the javascript magic do it's thing and voilà✨
// igrasias edom script version 03/06/24
// Constants for the labels
const SATISFIED_LABELS = new Set(["Ya", "Sangat puas"]);
// Function to click radio buttons based on labels
const clickRadioButtons = () => {
const optElements = document.getElementsByClassName("opt");
Array.from(optElements).forEach(optElement => {
const label = optElement.parentElement.nextElementSibling.innerText;
@genyrosk
genyrosk / REISUB.md
Created November 3, 2022 18:52
REISUB: A gentle Linux restart

REISUB

If a Linux machine locks up or freezes completely, use REISUB to restart it more gently than pushing the Power Button.

Hold down Alt and the SysReq (Print Screen) keys, and then type R E I S U B, with 2-3 second delays between the key presses to give the commands a better chance to complete.

  • R: Switch the keyboard from raw mode to XLATE mode
  • E: Send the SIGTERM signal to all processes except init
  • I: Send the SIGKILL signal to all processes except init
  • S: Sync all mounted filesystems
@zachrank
zachrank / wsl2-zsh-powerlevel10k.md
Created August 8, 2022 01:43
WSL 2 + Windows Terminal + Oh My Zsh + Powerlevel10k

WSL 2 + Windows Terminal + Oh My Zsh + Powerlevel10k

wsl2-zsh-powerlevel10k

This gist takes heavy inspiration from kevin-smets / iterm2-solarized.md gist for iTerm2.

Windows Subsystem for Linux 2 (WSL 2)

The first thing that you will want to do is install WSL 2 and a Linux distro.

@Tynael
Tynael / httpd-xampp.conf
Created July 20, 2022 15:49
Multiple PHP versions in XAMPP configurations
# PHP 8.1.7 Set-up
ScriptAlias /php817/ "C:/xampp/php817/"
Action application/x-httpd-php817-cgi "/php817/php-cgi.exe"
<Directory "C:/xampp/php817">
AllowOverride None
Options None
Require all denied
<Files "php-cgi.exe">
Require all granted
</Files>
@RobFisher
RobFisher / framework_arch.markdown
Last active July 4, 2025 02:25
Install Arch on Framework laptop with BTRFS, encrypted swap and hibernate

See video: https://www.youtube.com/watch?v=BAQ78pBPjjc

Set up laptop

In BIOS, under security, set "Enforce secure boot" to "disabled".

Get install environment working

Keyboard layout for boot env:

localectl list-keymaps | grep uk

loadkeys uk

@andrijunaedi
andrijunaedi / permutasi-dan-kombinasi.md
Last active April 7, 2022 07:09
Permutasi dan Menghitung Kombinasi

Permutasi & Minghitung Kombinasi

Creator

Soal

Tentukan jumlah susunan yang akan diperoleh, jika hendak menghabiskan uang sejumlah $100 untuk tepat membeli 100 ayam, kriteria jenis ayam dan harganya ditentukan berikut: