Skip to content

Instantly share code, notes, and snippets.

View QuanTrieuPCYT's full-sized avatar
:shipit:
hi

QuanTrieuPCYT QuanTrieuPCYT

:shipit:
hi
View GitHub Profile
@QuanTrieuPCYT
QuanTrieuPCYT / excellent_enchants_4.0.5_java17_MC_1_20_6_removed.sh
Last active June 17, 2024 07:48
ExcellentEnchants 4.0.5 with removed MC 1.20.6 support and Java 17 support.
#!/usr/bin/env bash
#
# Script to build ExcellentEnchants 4.0.5 with removed MC 1.20.6 support and Java 17 support.
# Provided that your environment meets the followings:
# - JDK 17 or later installed
# - `git` installed, `mvn` installed (Apache Maven)
# - Using an OS that uses GNU's `sed` utility (such as Linux). macOS uses a different `sed`, so please double-check!
#
# Clone the repository
@QuanTrieuPCYT
QuanTrieuPCYT / securebootsign.sh
Last active April 19, 2024 13:53
Debian Linux Manual Secure Boot signing script
#!/usr/bin/env bash
# DPKG Post-Install Script to sign vmlinuz kernel images and EFI executable binaries for Secure Booting with custom certificates
# Required for full OpenCore Secure Boot (for example: you want to use Secure Boot in Windows 11 for Valorant, just like me!)
#
# Requirement:
# - You have followed this guide: https://github.com/perez987/OpenCore-and-UEFI-Secure-Boot
# - Custom ISK.key and ISK.pem in a folder of choice, I will just name it /path/to/securebootkeys as in this script
# - You are running Debian Linux, with `sbsigntool` installed (`sudo apt install sbsigntool --no-install-recommends -y`)
# - Have a brain
@QuanTrieuPCYT
QuanTrieuPCYT / FPTU.md
Created April 15, 2024 13:04
FPTU Kỳ Truyện - Đại học FPT: khi sinh viên gian lận và hack vào server trường

Đại học FPT: khi sinh viên gian lận và hack vào server trường

Lấy từ nguồn: https://tinhte.vn/thread/dai-hoc-fpt-khi-sinh-vien-gian-lan-va-hack-vao-server-truong.1091706/


Trường Đại Học FPT (FU) số 8 Tôn Thất Thuyết - Cầu Giấy - Hà Nội (Toà nhà Detect - đối diện bến xe Mĩ Đình) Trong 3 năm nay, FU có thực hiện việc thi cử online bằng phần mềm chuyên dụng của trường, được nhà trường đặt hàng của Phan Trường Lâm (LamPT) có 2 phiên bản đều được code bằng C# .NET:
1- bản EOS Client dùng thi môn Business English (BE).
2- bản IT Client thi các môn Software Engineering: Java, C#, C/C+- Computer Network, Operating System (OS), Introduction to Database, ...

@QuanTrieuPCYT
QuanTrieuPCYT / rmjavacheck
Last active April 19, 2024 10:36
Script to remove JavaCheck.jar on Minecraft Launcher on macOS Platforms
#!/bin/bash
file_path="~/Library/Application
Support/minecraft/launcher/launcher.bundle/Contents/Resources/JavaCheck.jar"
if [ -e "$file_path" ]; then
rm -R "$file_path"
echo "Minecraft Launcher's JavaCheck.jar deleted!"
else
echo "Minecraft Launcher's JavaCheck.jar not found!"
@hUwUtao
hUwUtao / prototype.txt
Last active June 14, 2023 17:30
A Turing's machine compatible language in mind
// base language
// value
// if start with 0-9 then will be parse to number
// if start with [ then the very next line will be the value
// if line start with | then try to pipe the next value until EOL (apply to text have space)
// else will find until a valid value (charCode >= 64), end with space
// then it will try to find comparision keyword l(eq, gr, ge, lr, le)
@ungeskriptet
ungeskriptet / tcl-debloater.sh
Last active March 16, 2024 18:17
TCL TV debloater
#!/usr/bin/sh
set -e
TEMP_DIR=tmp-tcl-debloater
KODI_URL=https://mirrors.kodi.tv/releases/android/arm/kodi-20.1-Nexus-armeabi-v7a.apk
FLAUNCHER_URL=https://gitlab.com/flauncher/flauncher/-/releases/0.18.0/downloads/flauncher-0.18.0.apk
MATERIALFILES_URL=https://f-droid.org/repo/me.zhanghai.android.files_31.apk
BLOAT=$(cat <<EOF
com.tcl.partnercustomizer
com.tcl.smartalexa
com.tcl.gallery
@GameParrot
GameParrot / cocoa_window.m
Last active May 24, 2022 14:04
Modified cocoa_window.m for GLFW and Minecraft
//========================================================================
// GLFW 3.4 macOS - www.glfw.org
//------------------------------------------------------------------------
// Copyright (c) 2009-2019 Camilla Löwy <elmindreda@glfw.org>
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
@MeguminSama
MeguminSama / Discord Experiments.js
Last active June 7, 2024 14:14
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@theothernt
theothernt / apple-tv-screen-saver-feeds.txt
Last active June 21, 2024 11:43
A list of the feeds Apple uses for its video screensavers
tvOS 10: 1080p + H.264
http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/entries.json
tvOS 11: 1080p/4K + SDR/HDR + HEVC
https://sylvan.apple.com/Aerials/2x/entries.json
https://t27q97zg19.execute-api.us-east-1.amazonaws.com/prod/aerialAltJSON/4kEntites.json
tvOS 12: 4K + SDR/HDR + HEVC, 1080p + H.264, localised descriptions
https://sylvan.apple.com/Aerials/resources.tar
List<double> result = GetErrorStatisticsArray(score.HitErrors);
hint = String.Format("Accuracy:\nError: {0:0.00}ms - {1:0.00}ms avg\nUnstable Rate: {2:0.00}\n", result[0], result[1], result[4] * 10, result[6], result[5]);
// input is a list of (user_hit_time - correct_time)
internal List<double> GetErrorStatisticsArray(List<int> list)
{
if (list == null || list.Count == 0)
return null;
List<double> result = new List<double>(4);