Skip to content

Instantly share code, notes, and snippets.

View glenkusuma's full-sized avatar

Glen Kusuma glenkusuma

View GitHub Profile
@glenkusuma
glenkusuma / install-zsh-windows-git-bash.md
Last active January 1, 2025 14:23 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@MrDuartePT
MrDuartePT / nvidia-optimus.md
Last active October 22, 2024 17:33
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;
@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 November 19, 2024 03:58
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:

@Aikufurr
Aikufurr / hibernation.md
Created November 17, 2021 19:07
How to add hibernation to Arch Linux using a swapfile
  1. Run as root
sudo su

  1. Create swap file

Note: set count to your RAM capacity + 2, eg 8GB RAM so count=10

@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 December 9, 2024 20:59
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;