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 June 7, 2025 10:34
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
#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 July 9, 2025 06:05
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@Gadgetoid
Gadgetoid / README.md
Last active June 1, 2025 17:12
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 June 16, 2025 05:00
How to flash MIUI Fastboot ROM from Linux

How to flash MIUI Fastboot ROM from Linux

@dianjuar
dianjuar / How to make a WordPress plugin require another plugin.md
Last active July 18, 2023 19:27
Make a WordPress plugin dependent of another plugin

How to make WordPress a plugin require another plugin?

Put this function on the main php file of your dependent plugin and call it with the rigth parameters.

/**
 * Verify if a plugin is active, if not deactivate the actual plugin an show an error
 * @param  [string]  $my_plugin_name
 *                   The plugin name trying to activate. The name of this plugin
 *                   Ex: