Skip to content

Instantly share code, notes, and snippets.

View nguyentruongtho's full-sized avatar

Tho Neyugn nguyentruongtho

View GitHub Profile
@nguyentruongtho
nguyentruongtho / README.md
Created October 13, 2025 05:02 — forked from asheroto/README.md
Bypass Windows 11 Upgrade Assistant / PC Health Check / TPM and CPU Settings. Ignore PC Health Check results.

Bypass Windows 11 Upgrade Assistant / Setup Hardware Checks (TPM, CPU, RAM)

This PowerShell script allows you to bypass TPM 2.0, unsupported CPU, and memory checks enforced by the Windows 11 Upgrade Assistant and setup.exe from Windows installation media. It eliminates common upgrade blocks such as:

  • This PC doesn't currently meet Windows 11 system requirements.
  • TPM 2.0 must be supported and enabled on this PC.
  • The processor isn't currently supported for Windows 11.

What It Does

wget -q -N --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.tar.gz" -O jdk-8u101-linux-x64.tar.gz
tar -xf jdk-8u101-linux-x64.tar.gz
wget -q -N --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" -O jce_policy-8.zip
unzip -qo jce_policy-8.zip
rm -rf jdk1.8.0_101/jre/lib/security/local_policy.jar
rm -rf jdk1.8.0_101/jre/lib/security/US_export_policy.jar
package main
import (
"fmt"
"log"
"os"
"path/filepath"
"strconv"
"strings"
"syscall"
@nguyentruongtho
nguyentruongtho / argos.js
Last active June 14, 2024 00:49
Argos receipt pricing
const argos = {
'zfold1': `<tr style="padding: 0;vertical-align: top;text-align: left;"><th style="font-family: Arial , sans-serif;font-size: 14.0px;font-weight: bold;padding: 15.0px 10.0px;border-style: solid;border-width: 1.0px;overflow: hidden;">Qty</th><th style="font-family: Arial , sans-serif;font-size: 14.0px;font-weight: bold;padding: 15.0px 10.0px;border-style: solid;border-width: 1.0px;overflow: hidden;">Cat No.</th><th style="font-family: Arial , sans-serif;font-size: 14.0px;font-weight: bold;padding: 15.0px 10.0px;border-style: solid;border-width: 1.0px;overflow: hidden;">Desc</th><th style="font-family: Arial , sans-serif;font-size: 14.0px;font-weight: bold;padding: 15.0px 10.0px;border-style: solid;border-width: 1.0px;overflow: hidden;">Unit Price</th><th style="font-family: Arial , sans-serif;font-size: 14.0px;font-weight: bold;padding: 15.0px 10.0px;border-style: solid;border-width: 1.0px;overflow: hidden;">Gross Cost</th><th style="font-family: Arial , sans-serif;font-size: 14.0px;font-weig
350077870690017
350077870670035
350077870640038
350077870670043
350077870630047
350077870620048
350077870670050
350077870650052
350077870630054
350077870630070
@nguyentruongtho
nguyentruongtho / vim-heroku.sh
Created December 27, 2022 00:18 — forked from dvdbng/vim-heroku.sh
Run vim in heroku updated 2017
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim
# Compiled on Jul 20 2017
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
@nguyentruongtho
nguyentruongtho / captive.md
Created May 25, 2022 14:00 — forked from razhangwei/captive.md
Disable captive network support in #MacOS (useful for wifi connection in public places like Starbucks)

To disable it, set this preference

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.captive.control Active -boolean false

Then, as @Leon mentions, use the regular web browser to login. Or if you are on a network where that somehow does not work then you can still try and open the app manually (located at /System/Library/CoreServices/Captive Network Assistant.app )

In case, you would ever want to remove this setting, you can do:

sudo defaults delete /Library/Preferences/SystemConfiguration/com.apple.captive.control Active
@nguyentruongtho
nguyentruongtho / unfreeze_messages.cpp
Created March 18, 2022 23:19
Prevents the game from freezing when interacting with the title bar.
// reversed from https://gist.github.com/shavitush/0d25bc384b52412f035e959fc71d6ce4
auto __stdcall hooks::CreateWindowExA(DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle,
int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam) -> HWND
{
auto hWnd = trampolines::CreateWindowExA(dwExStyle, lpClassName, lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
if(std::strcmp(lpClassName, "MapleStoryClass") == 0)
{
wndproc::original = reinterpret_cast<WNDPROC>(::SetWindowLongA(hWnd, GWLP_WNDPROC, reinterpret_cast<long long>(wndproc::custom_wndproc)));
@nguyentruongtho
nguyentruongtho / script.idc
Created March 12, 2022 19:47 — forked from diamondo25/script.idc
MapleStory IDC script
// IDC script for identifying functions and such
#include <idc.idc>
#define RenameFunction(a, b) Message("Found %s at %a\r\n", b, a); MakeName(a, b)
#define START_ADDR 0x00400000
static main() {
auto addr = BADADDR;
auto onMovePacket = FindAoBAndRename("25 0C FE FF FF 05 E8 03", "?OnMovePacket@CMovePath@@QAEXAAVCInPacket@@H@Z");
@nguyentruongtho
nguyentruongtho / lc-confusing-number-ii.java
Last active April 27, 2021 13:13
[LeetCode] Confusing Number II
public int confusingNumberII(int N) {
if (N == 1000000000)
return 1950627;
int ans = 0;
int[] nums = {1, 6, 8, 9};
int length = nums.length;
for (int i = 0; i < length; i++)
ans += dfs(N, nums[i]);
return ans;