Skip to content

Instantly share code, notes, and snippets.

View diazabdulm's full-sized avatar

Abdul Diaz diazabdulm

View GitHub Profile
@diazabdulm
diazabdulm / package.sh
Created July 2, 2022 22:07
Mutter-rounded with performance patches
#!/bin/bash
# The source of blur effect. You can replace with:
# - https://gitee.com/mirrors_GNOME/gnome-shell/raw
# - https://gitlab.gnome.org/GNOME/gnome-shell/-/raw
blur_effect_url="https://gitlab.gnome.org/GNOME/gnome-shell/-/raw"
# Choose rounded corners patch
declare -A patches
patches=(
class Pokemon {
constructor(name, attack, defense, health, type) {
this.name = name;
this.attack = attack;
this.defense = defense;
this.health = health;
this.type = type;
this.initialHealth = health;
}
@diazabdulm
diazabdulm / script.js
Last active March 10, 2021 00:57
Automatically delete old Google Drive files and folders
// 1. Import the following into Google Apps Scripts
// 2. Select your desired execution interval
function getItemsOlderThan(numDays) {
const threshold = new Date().getTime() - 3600 * 1000 * 24 * numDays;
const cutoffDate = new Date(threshold).toISOString();
const query = `(modifiedDate < "${cutoffDate}") and ('me' in owners)`;
const response = Drive.Files.list({ q: query });
@diazabdulm
diazabdulm / AutoHotKey.ahk
Last active October 6, 2020 16:59
Magic Keyboard Configuration for Windows 10 (using AutoHotKey) - Extended @nathanpeck's version
;-----------------------------------------
; Mac keyboard to Windows Key Mappings
;=========================================
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; ^ = CTRL
; + = SHIFT
@diazabdulm
diazabdulm / cloudSettings
Last active November 2, 2019 01:55
VS Code Backup
{"lastUpload":"2019-11-02T05:55:42.785Z","extensionVersion":"v3.4.3"}
@diazabdulm
diazabdulm / bloat_removal.txt
Created October 15, 2019 15:49
Samsung Bloat Removal (ADB)
pm uninstall -k --user 0 com.samsung.android.bixby.es.globalaction
pm uninstall -k --user 0 com.samsung.android.bixbyvision.skincare
pm uninstall -k --user 0 com.asurion.android.verizon.vms
pm uninstall -k --user 0 com.motricity.verizon.ssodownloadable
pm uninstall -k --user 0 com.vzw.hs.android.modlite
pm uninstall -k --user 0 com.vznavigator.Generic
pm uninstall -k --user 0 com.samsung.android.app.watchmanager
pm uninstall -k --user 0 com.samsung.android.spdfnote
pm uninstall -k --user 0 com.sec.android.app.withtv
pm uninstall -k --user 0 com.samsung.android.app.memo
@diazabdulm
diazabdulm / pokemon.js
Created March 4, 2019 04:39
Pokemon class
// Define Pokemon class
class Pokemon {
constructor(name, attack, defense, health, type) {
this.name = name;
this.attack = attack;
this.defense = defense;
this.health = health;
this.type = type;
this.initialHealth = health;