Skip to content

Instantly share code, notes, and snippets.

View HCY-ASLEEP's full-sized avatar
😆

HCY-ASLEEP HCY-ASLEEP

😆
View GitHub Profile
@u1i
u1i / guacamole_complete_setup.md
Last active August 13, 2025 05:08
Guacamole RDP Web

Apache Guacamole Multi-User Setup Guide

Complete setup for 20 concurrent users with web-based remote desktop access via Apache Guacamole, RDP, and Cloudflare tunnel on Ubuntu 24.04 LTS.

Prerequisites

  • Bare Ubuntu 24.04 LTS server
  • SSH access as root
  • Domain configured with Cloudflare DNS
  • Minimum 8GB RAM, 4+ CPU cores recommended for 20 concurrent users
@IgnacioHeredia
IgnacioHeredia / zettlr.css
Last active August 3, 2025 10:51
CSS to make the Zettlr editor look prettier
/*
Use paired with Bielefeld theme in dark mode
See also: https://github.com/Zettlr/Zettlr/discussions/2863
*/
/* ---------------- */
/* Dark mode styles */
/* ---------------- */
/* Background color */
@colematt
colematt / .Adding-Attributes-to-LLVM.md
Last active August 21, 2025 20:57
[Adding Attributes to LLVM] #llvm

Introduction

This post describes how to add a custom attribute to LLVM and Clang. Why would you want to do such a thing?

  • You have semantic information of which the front-end is aware, but the back-end discards in the Intermediate Representation (IR), and an existing attribute can't be used to retain this information. Adding the attribute using the front-end analysis preserves the information into the back-end generated IR.
  • You've considered using the GCC/LLVM annotate attribute to hold arbitrary strings, but you also need to add a parameter (or more!) to that annotation.

The Clang Internals Manual discusses how to do this, but not with the detail you might like to see. Its description is high-level, and only lists one file that needs to be modified. Tracking down all of the other files that must be changed is left as a frustrating exercise to the reader.

Conventions used i

@r-darwish
r-darwish / theme.yml
Created December 27, 2018 08:25
Alacritty One Dark Theme
colors:
# Default colors
primary:
background: '0x1e2127'
foreground: '0xabb2bf'
# Bright and dim foreground colors
#
# The dimmed foreground color is calculated automatically if it is not present.
@Locoxella
Locoxella / mingw-sshd.sh
Last active July 26, 2025 18:45
Enable sshd on MinGW
#!/bin/bash
#
# Configure sshd on MinGW for Windows
# Create host keys
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa
ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N '' -t ed25519
@romainl
romainl / redir.md
Last active October 20, 2025 23:56
Redirect the output of a Vim or external command into a scratch buffer

Redirect the output of a Vim or external command into a scratch buffer

Usage (any shell)

Show the full output of command :hi in a scratch buffer:

:Redir hi

Show the full output of command :!ls -al in a scratch buffer: