Skip to content

Instantly share code, notes, and snippets.

View Hi7cl4w's full-sized avatar
:atom:

Manu K Hi7cl4w

:atom:
View GitHub Profile
@Hi7cl4w
Hi7cl4w / OpenWrt HFSC QoS Script.md
Last active July 4, 2025 23:09
OpenWrt HFSC QoS Script

OpenWrt HFSC QoS Script

This script configures HFSC-based traffic shaping on OpenWrt to optimize latency-sensitive traffic (e.g., gaming), with special handling for DSCP marking and class-based queuing.

📌 Features

  • Upload/download shaping using tc and HFSC
  • DSCP marking support (via optional nftables)
  • pfifo queue for game traffic
  • Class separation: real-time (gaming), default traffic
@Hi7cl4w
Hi7cl4w / commit-message-guidelines.md
Created December 24, 2022 15:45 — forked from robertpainsi/commit-message-guidelines.md
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@Hi7cl4w
Hi7cl4w / EventListener.d.ts
Created December 22, 2022 07:54 — forked from rsms/EventListener.d.ts
Better EventEmitter TypeScript interface
export class EventEmitter<Events, K = keyof Events|symbol> {
addListener(event: K, listener: (...args: any[]) => void): this;
on(event: K, listener: (...args: any[]) => void): this;
once(event: K, listener: (...args: any[]) => void): this;
removeListener(event: K, listener: (...args: any[]) => void): this;
removeAllListeners(event?: K): this;
setMaxListeners(n: number): this;
getMaxListeners(): number;
listeners(event: K): Function[];
emit(event: K, ...args: any[]): boolean;
@Hi7cl4w
Hi7cl4w / docker_cheat_sheet.md
Last active December 17, 2022 06:37
Docker Commands

Docker Commands, Help & Tips

Basic

Show commands & management commands

docker
@Hi7cl4w
Hi7cl4w / glsl.md
Last active December 15, 2022 15:05
glsl math function

GLSL IMPORTANT FUNCTIONS


Rotation 2D

vec2 rotate(vec2 uv, float rotation, vec2 mid) {
  return vec2(cos(rotation) * (uv.x - mid.x) + sin(rotation) * (uv.y - mid.y) + mid.x, cos(rotation) * (uv.y - mid.y) - sin(rotation) * (uv.x - mid.x) + mid.y);
@Hi7cl4w
Hi7cl4w / EventEmitter.js
Last active December 12, 2022 08:02
EventEmitter.js
/* Util Class for handling user defined event listeners */
export default class EventEmitter {
/**
* The constructor function creates an object called callbacks, which has a property called base.
*/
constructor() {
this.callbacks = {};
this.callbacks.base = {};
}
@Hi7cl4w
Hi7cl4w / Oracle_Python_Env.md
Last active December 9, 2022 05:25
Oracle Python Env

1. Oracle Linux Python Dev Environment

sudo sudo yum install python3-devel

1.1. GCC

sudo dnf install make gcc

1.2. PIP

@Hi7cl4w
Hi7cl4w / settings.json
Last active December 6, 2022 06:05
vscode token custoimization similar to jetbrain IDE - Add this vscode settings to apply
"editor.tokenColorCustomizations": {
"comments": {
"fontStyle": "italic"
},
"textMateRules": [
{
"scope": [
"comment.block",
"comment.line",
],
@Hi7cl4w
Hi7cl4w / keybindings.json
Last active February 6, 2023 06:46
Vscode intellij keybindings - windows only
// Place your key bindings in this file to override the defaults
[
{
"key": ".",
"command": ""
}, // There is an issue on windows with the period key. See Issue https://github.com/ChristianKohler/NpmIntellisense/issues/12
{
"command": "redo",
"key": "shift+ctrl+z"
},
@Hi7cl4w
Hi7cl4w / .eslintrc.cjs
Last active February 7, 2024 17:18
eslint react boilerplate
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
'plugin:react-hooks/recommended',