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 May 24, 2024 11:16 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@MrDuartePT
MrDuartePT / nvidia-optimus.md
Last active June 30, 2024 13:55
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>
@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:

@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 April 5, 2024 16:32
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;
@fworks
fworks / install-zsh-windows-git-bash.md
Last active July 2, 2024 08:16
Zsh / Oh-my-zsh on Windows Git Bash
@ovelny
ovelny / timeshift-archlinux-fix.md
Last active July 15, 2024 13:26
Fix for scheduled backups with Timeshift and Arch Linux

Issue

If you installed Timeshift from the AUR package (https://aur.archlinux.org/packages/timeshift/), you'll find that scheduled backups may not work. This is due to cronie being disabled by default.

Fix

Check if cronie is present first:

systemctl list-unit-files | grep cronie