Skip to content

Instantly share code, notes, and snippets.

View h0tbird's full-sized avatar
:octocat:
Coworking

Marc Villacorta h0tbird

:octocat:
Coworking
View GitHub Profile
@h0tbird
h0tbird / init.lua
Last active April 29, 2022 10:42
Hammerspoon
local padding = 5
local screen = hs.screen.allScreens()[1]
local frame = screen:fullFrame()
local width = frame.w - padding * 2
local height = frame.h - padding * 2
local halfWidth = frame.w / 2 - padding * 1.5
local halfHeight = frame.h / 2 - padding * 1.5
local leftHalf = hs.geometry.rect(padding, padding, halfWidth, height)
local rightHalf = hs.geometry.rect(padding * 2 + halfWidth, padding, halfWidth, height)
@h0tbird
h0tbird / arch-on-osx.md
Last active February 14, 2021 23:13
Arch on OSX

Install qemu:

brew install qemu

Create the entitlements file:

cat > ~/.qemu/entitlements.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>

Restore file from package

sudo tar -C / -I zstd -xvf /var/cache/pacman/pkg/sudo-1.8.31.p1-1-x86_64.pkg.tar.zst etc/sudoers
sudo vim /etc/systemd/resolved.conf
sudo systemctl edit systemd-resolved
# [Service]
# Environment=SYSTEMD_LOG_LEVEL=debug
@h0tbird
h0tbird / arch-install.md
Last active February 14, 2021 16:38
Arch Linux USB install for Macbookpro14,3

Build time

Partition

sudo dd if=/dev/zero of=/dev/sdb bs=1024 count=1
sudo parted -s -a optimal /dev/sdb mklabel gpt
sudo parted -s -a optimal /dev/sdb mkpart primary 1 513MB
sudo parted -s -a optimal /dev/sdb name 1 UEFI
sudo parted -s -a optimal /dev/sdb set 1 boot on
sudo parted -s -a optimal /dev/sdb mkpart primary 513MB 100%
sudo parted -s -a optimal /dev/sdb name 2 ARCH