Skip to content

Instantly share code, notes, and snippets.

View danielphan2003's full-sized avatar

Daniel Phan danielphan2003

View GitHub Profile
import androidx.compose.animation.core.AnimationSpec
import androidx.compose.animation.core.animate
import androidx.compose.animation.core.tween
import androidx.compose.foundation.gestures.ScrollableState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.saveable.Saver
@RainyXeon
RainyXeon / custom.rom.list.md
Last active September 27, 2025 07:14
This is the list of custom rom that I tried and collected so far. Some will pass VNeID (Vietnamese gov app) and some won't. Enjoy

My custom ROM list

This is the custom ROM list for every one wants to try or use. Collected and suggested by me and community (Will update more soon!). If you have any suggestion, comment bellow! Thanks @ngoxthjen

Table of contents

@timothyham
timothyham / ipv6guide.md
Last active October 23, 2025 20:41
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@eylenburg
eylenburg / msoffice_in_linux.md
Last active October 24, 2025 19:04
Installing Microsoft Office in Linux

Step by step guide: How to install Microsoft Office in any Linux distribution

There are multiple options how to install MS Office on Linux.

VM-based - Integrate Windows apps running in a Windows virtual machine as native-looking in Linux

  1. LinOffice - Microsoft Office Launcher for Linux, my own fork of Winapps which is focused on only running Microsoft Office, with some Office-specific improvements over Winapps and a fully automated setup. Eventually I would like to create a GUI for it. Decribed below
  2. Winapps, based on KVM, QEMU, Docker/Podman and FreeRDP. Still actively maintained (getting Github commits). Decribed below
  3. Cassowary, based on KVM, QEMU, libvirt/virt-manager, and FreeRDP. Last release in Feb 2022 and seems to be abandoned.
@msanders
msanders / README.md
Last active October 2, 2025 20:03
Backup and restore cookie and site exception list in Firefox

Installation

mkdir -p ~/bin
curl --proto "=https" --tlsv1.2 "https://gist.githubusercontent.com/msanders/57837aaf6f7da30dcc1eb0bdf6b0b733/raw/firefox_export_cookie_exceptions" > ~/bin/firefox_export_cookie_exceptions
curl --proto "=https" --tlsv1.2 "https://gist.githubusercontent.com/msanders/57837aaf6f7da30dcc1eb0bdf6b0b733/raw/firefox_restore_cookie_exceptions" > ~/bin/firefox_restore_cookie_exceptions
chmod u+x ~/bin/firefox_export_cookie_exceptions  ~/bin/firefox_restore_cookie_exceptions 
mkdir -p ~/.local/share/fxcookies

# NOTE: Firefox must be closed in order for restore to unlock the database.
@aubymori
aubymori / GUIDE.md
Created July 23, 2023 22:29
Installing Windows manually (UEFI)

Installing Windows manually (UEFI)

This guide will detail how to manually install Windows 8 and up on a UEFI-compliant system. This has many benefits:

  • Bypass the mandatory product key input on Windows 8.x
  • Bypass the hardware requirements check on Windows 11
  • Full control of your partition layout
  • Editing the registry of your new install without booting back into the PE or going through OOBE

I will be using Windows 11 Pro 22H2 as an example for this.

// Turn all HTML <a> elements into client side router links, no special framework-specific <Link> component necessary!
// Example using the Next.js App Router.
import { useRouter } from 'next/navigation';
import { useEffect } from 'react';
function useLinkHandler() {
let router = useRouter();
useEffect(() => {
let onClick = e => {
@demirdegerli
demirdegerli / ubuntu_debloater.sh
Last active August 21, 2025 14:04
Ubuntu Debloater
#!/bin/sh
if [ "$(whoami)" != "root" ]; then
echo "Please run this script as root."
exit
fi
printf "This script will\n\n- Remove Snap\n- Install the deb version of Firefox\n- Install Flatpak\n- Optionally replace Ubuntu Desktop with GNOME\n\n"
read -p "Continue? (Y/n) " start_prompt
case $start_prompt in
[nN] | [nN][oO] )
exit