Skip to content

Instantly share code, notes, and snippets.

View kztera's full-sized avatar
🎯
Focusing

Khoa Nguyen kztera

🎯
Focusing
  • Vietnam
  • 21:34 (UTC +07:00)
View GitHub Profile
@pinei
pinei / README.md
Last active July 15, 2025 01:41
A Carousel component for Quartz v4.5

Description

What is a Carousel Component?

A carousel (also known as a slider or image gallery) is a UI component that displays a series of content items (in this case, images) in a rotating fashion. Users can navigate through the content using:

  • Navigation arrows (previous/next buttons)
  • Dot indicators (click to jump to specific slides)
  • Keyboard navigation (arrow keys)
  • Touch/swipe gestures (on mobile devices)
@VVispy
VVispy / Revanced Obtainium Guide.md
Last active July 19, 2025 02:51
Revanced Obtainium Guide

Install Updatable ReVanced Apps ReVanced LogoObtainium Logo

This guide will teach you how to use Obtainium to install and update Revanced apps. The apps are prepatched and prebuilt on ReVanced Magisk Module. A new version of the included apps is created every time a new revanced patch releases. APKMirror is used to source the APKs, using the latest or recommeded version by Revanced.

Note

You must uninstall any previously installed ReVanced apps if it shows a conflict error when updating to the Obtainium version for the first time.

@ilovefreesw
ilovefreesw / reg.bat
Created March 24, 2022 07:17
A batch script for Windows to Fix "Some settings are managed by your organization". Works on Windows 10 and Windows 11.
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKCU\Software\Policies" /f
reg delete "HKLM\Software\Microsoft\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f
@jjvillavicencio
jjvillavicencio / setup.sh
Last active June 26, 2025 02:24
Install Android SDK on Windows Bash (WSL)
cd /home/<user>/
sudo apt-get install unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
cd Android/tools/bin
@wojteklu
wojteklu / clean_code.md
Last active July 19, 2025 09:33
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules