Skip to content

Instantly share code, notes, and snippets.

View sivinnguyen's full-sized avatar

Huy Vu~ sivinnguyen

View GitHub Profile
@nhtua
nhtua / 00.install-android-sdk.sh
Last active October 13, 2025 11:44
Run a Headless Android Device on Ubuntu server (no GUI)
#!/bin/bash -i
#using shebang with -i to enable interactive mode (auto load .bashrc)
set -e #stop immediately if any error happens
# Install Open SDK
apt update
apt install openjdk-8-jdk -y
update-java-alternatives --set java-1.8.0-openjdk-amd64
java -version
@sdondley
sdondley / tmux split-window subcommand.md
Last active October 17, 2025 17:46
Super Guide to the split-window tmux Subcommand (and Beyond)

Super Guide to the split-window tmux Subcommand (and Beyond)

Guide overview

tmux, like other great software, is deceptive. On the one hand, it's fairly easy to get set up and start using right away. On the other hand, it's difficult to take advantage of tmux's adanced features without spending some quality alone time with the manual. But the problem with manuals is that they aren't geared toward beginners. They are geared toward helping seasoned developers and computer enthusiasts quickly obtain the

#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
#include "BLE2902.h"
#include "BLEHIDDevice.h"
#include "HIDTypes.h"
#include "HIDKeyboardTypes.h"
// See the following for generating UUIDs:
// https://www.uuidgenerator.net/
@trevorgreenleaf
trevorgreenleaf / px-rem-tw.csv
Last active April 1, 2024 15:42
PX to REM'S to TAILWIND CSS
PX REM TW
4 0.25 1
8 0.5 2
16 1 4
32 2 8
48 3 12
64 4 16
80 5 20
96 6 24
112 7 28
@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active November 5, 2025 16:04
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@Gadgetoid
Gadgetoid / README.md
Last active July 19, 2025 18:46
Raspberry Pi Zero / Windows 10 automatic RNDIS driver install for composite gadgets

Preface

I owe my very rapid learning journey in the world of ConfigFs to several key sources which aren't necessarily relevant to this result, but I feel deserve a mention anyway.

@vitali2y
vitali2y / recover_totolink_a850r_thru_realtek_bootloader.md
Created August 2, 2017 20:05
How to recover the firmware on Totolink A850R router thru RealTek bootloader
@tdeedlesATX
tdeedlesATX / multiline-ellipsis.less
Created July 7, 2017 20:32
Multi-line ellipsis .less function
/* @offset: should equal top + bottom padding for border-box situations */
/* @line-height: should be unitless */
.multiline-text-overflow-ellipsis(@font-size, @line-height, @max-lines, @max-width, @offset) {
display: block; /* Fallback for non-webkit */
display: -webkit-box;
max-width: @max-width;
height: @font-size*@line-height*@max-lines + @offset; /* Fallback for non-webkit */
font-size: @font-size;
line-height: @line-height;
-webkit-line-clamp: @max-lines;
@ysr23
ysr23 / pi zero W ap setup.md
Last active June 6, 2025 18:13
Raspberry Pi Zero W Access Point (ap) setup

These are my own personal notes on how i setup a Pi Zero W as an access points it is a blatant copy of this: https://gist.github.com/tcg/0c1d32770fcf6a0acf448b7358c5d059 but is just missing a couple of things from: http://imti.co/post/145442415333/raspberry-pi-3-wifi-station-ap and like tcg, this is not intended as a guide but notes as i will invariably have to rebuild this sometime and i have broken biscuits for brains.

1. making the pi zero accesible from a computer

this is really just the same info as here https://gist.github.com/gbaman/975e2db164b3ca2b51ae11e45e8fd40a

  • flash raspbian lite to sd card
  • unplug and replug sd card adapter if necessary to see 'boot' drive
  • edit cmdline.txt add: modules-load=dwc2,g_ether after the word rootwait
  • edit config.txt and add dtoverlay=dwc2 to the end of the file
  • create a blank file called ssh
@j-jith
j-jith / miui-fastboot-howto.rst
Last active October 11, 2025 02:59
How to flash MIUI Fastboot ROM from Linux

How to flash MIUI Fastboot ROM from Linux