Skip to content

Instantly share code, notes, and snippets.

View Thomashighbaugh's full-sized avatar
☢️
radioactive decay

Thomas Leon Highbaugh Thomashighbaugh

☢️
radioactive decay
View GitHub Profile
@intrntbrn
intrntbrn / fancy_taglist.lua
Last active May 13, 2025 18:26
awesomewm fancy_taglist: a taglist that contains a tasklist for each tag
-- awesomewm fancy_taglist: a taglist that contains a tasklist for each tag.
-- Usage:
-- 1. Save as "fancy_taglist.lua" in ~/.config/awesome
-- 2. Add a fancy_taglist for every screen:
-- awful.screen.connect_for_each_screen(function(s)
-- ...
-- local fancy_taglist = require("fancy_taglist")
-- s.mytaglist = fancy_taglist.new({
-- screen = s,

Alpine chroot install Emulation

Simulate an instalation using chroot on an Qemu machine

Start Qemu machine

See this Qemu script to start an virtual machine on windows 10 with one disk to boot, 4 disks to simulate an RAID and 1 usbdisk, and 2 nic devices

Initial setup

Start Alpine from iso file and setup to save config into usbdisk
Hint: first user is root with no password
OBS: Do not setup disks yet

echo -e "/dev/sdf1\t/media/usb\tvfat\trw\t0\t0" > /etc/fstab
@eromatiya
eromatiya / backdrop.lua
Created September 16, 2020 13:36
[awesomewm] Client backdrop effect
local wibox = require('wibox')
local gears = require('gears')
local awful = require('awful')
local function update_backdrop(w, c)
local cairo = require('lgi').cairo
local geo = c.screen.geometry
w.x = geo.x
w.y = geo.y
@XSystem252
XSystem252 / RaspberryPi4Archlinux64EncryptionUSBBootBtrfsGuide.md
Last active September 14, 2024 19:37
How To Set Up a Raspberry Pi 4 with Archlinux 64-bit (AArch64) and Full Disk Encryption (+SSH unlock), USB Boot (No SD-Card) and btrfs

How To Set Up a Raspberry Pi 4 with Archlinux 64-bit (AArch64) and Full Disk Encryption (+SSH unlock), USB Boot (No SD-Card) and btrfs

Written by: XSystem
First published on: 20 Dec 2020
Last updated on: 20 Dec 2020

[0] Introduction

Overview

@NSWG
NSWG / VMware Workstation 16 Pro and Player keys
Last active July 31, 2025 19:10
VMware Workstation 16 Pro and Player keys
VMware Workstation Pro 16.x Serials
YA7RA-F6Y46-H889Z-LZMXZ-WF8UA
ZV7HR-4YX17-M80EP-JDMQG-PF0RF
UC3XK-8DD1J-089NP-MYPXT-QGU80
GV100-84W16-M85JP-WXZ7E-ZP2R6
YF5X2-8MW91-4888Y-DNWGC-W68TF
AY1XK-0NG5P-0855Y-K6ZXG-YK0T4
VMware Workstation Player 16.x Serials
@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active July 29, 2025 23:44
Set of optimizations, I use on my Artix Setup
# For those who does not care iCloud and stock mac Applications
# As well as stopping Spotlight completley
# tested on bigsur (Intel and M )
#!/bin/bash
# Reboot your Mac into Recovery Mode
# Terminal from top menu
# csrutil disable
# csrutil authenticated-root disable
@MartinRamm
MartinRamm / dynamic-menu-awesomewm.lua
Last active July 12, 2025 05:46
Dynamic Menu Entries for Awesome WM
--as seen on https://gist.github.com/MartinRamm/d2c9762fe87c9ed0427ff2a36cc7b74a
--we extend the awful menu class here
DynamicMenu = awful.menu
--there is no "super" function in LUA. So we need to keep a reference of the original method like this
local original_new_fn = DynamicMenu.new
--now override the super method. In this case this is the method that is
function DynamicMenu.new(args, parent)
--if required, set iconRight to the fallbackSubmenuIcon
if args.fallbackSubmenuIcon and args.items then
@MartinRamm
MartinRamm / awesome-layout-sprial-changable-width.lua
Last active July 6, 2025 23:45
AwesomeWM: Spiral layout with changable width
-- as seen on https://gist.github.com/MartinRamm/fd91dbaa9744e9301ec8e617416ccc49
local spiralWithChangableWidth = {}
spiralWithChangableWidth.name = "dwindle"
function spiralWithChangableWidth.arrange(p)
local fullWidth = p.workarea.width
local fullHeight = p.workarea.height
local tag = p.tag or screen[p.screen].selected_tag
--number between 0 and 1, by default changable via Mod+L and Mod+H. Defaults to 0.5
local rawFactor = tag.master_width_factor