Skip to content

Instantly share code, notes, and snippets.

View khi-ai's full-sized avatar

Khỉ AI khi-ai

  • Mars
  • 17:19 (UTC +07:00)
View GitHub Profile
#!/bin/bash
# macOS Silverback Debloater
# v1.0 by Wamphyre
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# Disabling Spotlight
@khi-ai
khi-ai / tinovps-install
Last active September 26, 2024 07:53
tinovps-install
#!/bin/bash
# @author: Lãng Tử Cô Độc
# @website: https://tinohost.com, https://kienthuclinux.com
# @since: 2020
gen_pass() {
MATRIX='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
LENGTH=16
while [ ${n:=1} -le $LENGTH ]; do
PASS="$PASS${MATRIX:$(($RANDOM % ${#MATRIX})):1}"
@khi-ai
khi-ai / delele-all-branch.ps1
Created October 13, 2024 10:40
Delete all local git branches on powershell
git branch --list | ForEach-Object {
$branch = $_.Trim() # Loại bỏ khoảng trắng thừa
if ($branch -notmatch 'master|main') { # Tránh xóa nhánh chính
git branch -D $branch
}
}
@khi-ai
khi-ai / bilu.css
Created October 25, 2024 09:31
bilu.css
*, ::before, ::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;