Skip to content

Instantly share code, notes, and snippets.

View hUwUtao's full-sized avatar
🔜
kotlin made me crazy, and this icon doesn't meant it

stdpi hUwUtao

🔜
kotlin made me crazy, and this icon doesn't meant it
View GitHub Profile
@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
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active July 18, 2024 15:23
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

This no longer works if you're alone in vc! Somebody else has to join you!

Warning

There are now two quest types ("stream" and "play")! Pay attention to the instructions!

@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==
@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?

@hu2di
hu2di / ConvertVie.js
Last active July 10, 2024 09:18
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");
@wojteklu
wojteklu / clean_code.md
Last active July 25, 2024 03:17
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