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 7, 2024 00:53 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@MrDuartePT
MrDuartePT / nvidia-optimus.md
Last active March 18, 2024 13:57
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 December 31, 2023 06:44
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 18/01/23
// presses all radio button inputs with a value of 'Sangat Puas'
var opt = document.getElementsByClassName("opt");
for(var i = 0; i < opt .length; i++){
if(opt [i].parentElement.nextElementSibling.innerHTML === 'Sangat puas'){
opt [i].click();
}
}
// if there is a text field, gives the text field value with invisible space
if (document.querySelector('textarea')) {
@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 May 8, 2024 23:08
Zsh / Oh-my-zsh on Windows Git Bash
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 8, 2024 14:54
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

@tabrindle
tabrindle / webp-convert-directory.sh
Last active April 30, 2024 14:03
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)