Skip to content

Instantly share code, notes, and snippets.

View 4yman-0's full-sized avatar
๐Ÿ‘
Ok()

4yman 4yman-0

๐Ÿ‘
Ok()
View GitHub Profile
@LAK132
LAK132 / result_statement_expression_try.c
Last active February 4, 2026 07:35
Result types in C
#ifndef __cplusplus
# define decltype typeof
# include <stdbool.h>
#endif
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#define TOKEN_CONCAT_EX(x, y) x##y
#define TOKEN_CONCAT(x, y) TOKEN_CONCAT_EX(x, y)
@2KAbhishek
2KAbhishek / mirrorlist.sh
Created October 21, 2020 13:25
Generate fastest mirrors for Arch linux
#!/bin/bash
# Install reflector
sudo pacman -S reflector
# Update mirrorlist
reflector | sudo tee /etc/pacman.d/mirrorlist
@fnky
fnky / ANSI.md
Last active February 14, 2026 12:38
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27