Skip to content

Instantly share code, notes, and snippets.

View hUwUtao's full-sized avatar
🥩
i no beef

stdpi hUwUtao

🥩
i no beef
View GitHub Profile
@wojteklu
wojteklu / clean_code.md
Last active April 21, 2025 06:12
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@hu2di
hu2di / ConvertVie.js
Last active March 1, 2025 13:15
JavaScript: Chuyển tiếng Việt có dấu sang không dấu
function removeVietnameseTones(str) {
str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a");
str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e");
str = str.replace(/ì|í|ị|ỉ|ĩ/g,"i");
str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o");
str = str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u");
str = str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y");
str = str.replace(/đ/g,"d");
str = str.replace(/À|Á|Ạ|Ả|Ã|Â|Ầ|Ấ|Ậ|Ẩ|Ẫ|Ă|Ằ|Ắ|Ặ|Ẳ|Ẵ/g, "A");
str = str.replace(/È|É|Ẹ|Ẻ|Ẽ|Ê|Ề|Ế|Ệ|Ể|Ễ/g, "E");
@azurenekowo
azurenekowo / stupid-argument.md
Last active October 28, 2023 12:18
archive lại cái argument ngớ ngẩn giữa 2 đứa không ai nhường ai

prologue

can someone please add subway surfers video over the narration of this text wall? boring asf tbh lol
~ azure

Nơi tình yêu bắt đầu

Dị điểm

--- Neyako Phạm - June 14 2023 @ 1:59 PM
Bài viết đã archive vì đến giờ tôi nhận ra là người tôi nói trong bài viết có vẻ là không có trách nhiệm với lời nói của mình và tôi đang vô tình gây ảnh hưởng đến các server liên quan.
Tóm gọn lại, tôi không đúng nhưng tôi vẫn giữ nguyên quan điểm là kênh của tôi thì tôi up cái gì cũng là chuyện của tôi. Chỉ đơn giản hãy nghĩ 1 điều là video đấy làm vui và ông không bao giờ nghĩ nó viral đi, đến lúc nó viral thì ông phải đối mặt với hàng trăm hàng nghìn comment chửi rủa thì lúc đó lên bài/làm video sẽ hay hơn hay là ngồi thật sự rep từng cái comment một với nội dung như nhau?

@azurenekowo
azurenekowo / GenshinCGS.user.js
Last active November 22, 2023 16:32
Replicate Genshin Impact's cutscenes with subtitles styling for video on the official channel.
// ==UserScript==
// @name GenshinCGS
// @namespace https://me.azuree.moe
// @version 1.0
// @description Replicate Genshin Impact's cutscene experience on videos' subtitles.
// @author azuryymiko
// @match https://www.youtube.com/*
// @icon https://raw.githubusercontent.com/azurenekowo/ayaka/main/resources/favicon.ico
// @grant none
// ==/UserScript==
@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, ...

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 21, 2025 11:17
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@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