Skip to content

Instantly share code, notes, and snippets.

View mendsec's full-sized avatar
:shipit:
Going everywhere

Fábio Mendes mendsec

:shipit:
Going everywhere
View GitHub Profile
@startergo
startergo / KVM_in_WSL2.md
Last active December 26, 2025 09:28
KVM on WSL2 Windows 11
  • In WSL2 run:
sudo apt update
sudo apt install qemu qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils cpu-checker \
network-manager iptables-persistent linux-headers-generic \
qemu uml-utilities virt-manager git \
wget libguestfs-tools p7zip-full make dmg2img tesseract-ocr \
tesseract-ocr-eng genisoimage vim net-tools screen firewalld libncurses-dev -y
sudo apt install virt-manager
sudo addgroup kvm
@gbishop
gbishop / Nerd.md
Created December 23, 2023 19:14
Make Nerd fonts work with the Chromebook terminal

Make Nerd fonts work with the Chromebook terminal

Here is a too complicated hack to make Nerd fonts work on the Chromebook terminal. There should be an easier way. Please tell me if you find it.

First we need a CORS compliant web server to fetch the font. I didn't want to have to be online to use the terminal so I'm going to run the server locally. Fetch the server.py file (below) and save it to your linux environment. I put it in ~/hacks/nerdfont/server.py. This little script adds the CORS headers to the python3 http server. It will only serve files from the current folder.

In my ~/.bashrc I added these lines:

# make the nerdfont available to the chromebook terminal
@Hebilicious
Hebilicious / cloudflare-pages-bun.env
Last active April 17, 2025 05:03
Cloudflare Pages and Bun
# Bun is now officially supported and these environments variables are no longer needed. Keeping this gist for legacy purposes.
# SKIP_DEPENDENCY_INSTALL=true
# UNSTABLE_PRE_BUILD=asdf install bun latest && asdf global bun latest && bun i
@zbalkan
zbalkan / Wazuh pain points.md
Last active September 20, 2024 13:53
After I started to use Wazuh, around June 2022, I came across many pain points. Here, I recorded and grouped some of them together. There is no specific order, neither alphabetical nor by importance.
@izzqz
izzqz / nerd-font-in-chromeos-terminal.md
Last active December 27, 2025 06:03
How to setup JetBrains Mono Nerd Font with ligatures to use is inside crostini terminal

Setup Nerd Fonts in Chrome OS terminal

Press Ctr + Shift + j to open devtools console in crostini terminal.

Paste this to use Jetbrais Mono with ligatures:

term_.prefs_.set('font-family', 'JetBrains Mono Nerd Font, monospace');
term_.prefs_.set('user-css-text', '@font-face {font-family: "JetBrains Mono Nerd Font"; src: url("https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf"); font-weight: normal; font-style: normal;} x-row {text-rendering: optimizeLegibility;font-variant-ligatures: normal;}')
@bradtraversy
bradtraversy / carbon-lang-snippets.md
Last active July 1, 2025 19:11
Google Carbon Snippets

Google Carbon Snippets

This file contains some of the basic syntax for Google Carbon as well as some info and how to get set up.

The official repo and docs can be found at: https://github.com/carbon-language/carbon-lang

Carbon is an experimental successor to C++. It is NOT ready for production and will not be for a while. This crash course and document were made to explore some of the basic syntax.

How to get started

Forked from various GitHub-repos

(There might be some duplicates...)

Scripts that need to be installed

To run the project, you will need to install the following programs:

@kostorv
kostorv / debian-wsl2-kvm-win10.md
Last active September 30, 2025 02:03
Win10 WSL2 KVM Debian installation

Build An Accelerated KVM Guest Custom Kernel for WSL 2 - Debian edition

In this gist I try to build an accelerated KVM Guest Custom Kernel for WSL2 for Debian distro. In this link Hayden Barnes implements it on OpenSUSE Tumbleweed distro. Though the procedure seems pretty straightforward I am stumbling upon some issues which I will describe below.

Fresh installation of WSL2 Debian

$ uname -r 
5.10.60.1-microsoft-standard-WSL2 (This changes with different Windows Updates for WSL)
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
...
@sean-gilliam
sean-gilliam / qemu-gpupassthrough-lookingglass-scream-setup.md
Last active December 29, 2025 10:17
Setup Qemu for GPU Passthough with Looking Glass and Scream support.

Setup Qemu for GPU Passthough with Looking Glass and Scream support.

Before we begin, make sure that you have a monitor hooked up to the second GPU. In some situations, the video card will fail to properly initialize if one isnt attached. Also it helps with debugging issues that will most assuredly arise.

GPU Passthrough setup

Ensure that IOMMU is enabled in the BIOS. For me using an Intel system from Dell, it was under Virtualization -> Direct I/O. It should be something along those lines for AMD as well. That was the easy part :).

Before we proceed we're going to need to gather some information. Run the command, lspci -nn|grep NVIDIA (or AMD if your using that). The output for me was:

@planetWayne
planetWayne / ReadME.rst
Last active November 21, 2025 07:45
Quick and Dirty walkthrough for setting up Enterprise WiFi on Unifi on Windows domain

Walk-through to setup Enterprise Wifi with Unifi on Windows Server

Update 14/02/2024 : Added step 3-d - allowing the cert template to be issued by a CA

Why

Quite simply, you will have the ability to log on to your Company Wifi network using your Windows Domain Username and Password. No more remembering someone else's idea of a secure password. A Single Sign-on for all resources.