Skip to content

Instantly share code, notes, and snippets.

View hbjydev's full-sized avatar
🇺🇦
Слава Україні!

Hayden hbjydev

🇺🇦
Слава Україні!
View GitHub Profile
@prologic
prologic / alertrules.yml
Created April 11, 2022 22:34
Prometheus AlertRules
---
groups:
- name: msgbus
interval: 15s
rules:
- alert: zero_subscribers
expr: |
msgbus_bus_subscribers == 0
for: 30s
annotations:
@mahemoff
mahemoff / README.md
Last active April 6, 2024 00:38
Vim Terminal Mode - A short introduction

Vim has a Terminal Mode!

Since v8.1 (May 2018), Vim has shipped with a built-in terminal. See https://vimhelp.org/terminal.txt.html or type :help terminal for more info.

Why use this? Mainly because it saves you jumping to a separate terminal window. You can also use Vim commands to manipulate a shell session and easily transfer clipboard content between the terminal and files you're working on.

Key Bindings

@hkoba
hkoba / sched-reboot.service
Last active November 6, 2023 16:07
systemd service and timer for scheduled reboot.
[Unit]
Description=Scheduled Reboot
[Service]
Type=simple
ExecStart=/usr/bin/systemctl --force reboot
@jamesattard
jamesattard / gist:51240a9a60ca6bf9513e
Last active March 20, 2024 14:09
Fix Permissions and Refresh KExt cache
echo "Fixing ownership and permissions..."
chmod -R 755 /System/Library/Extensions/*
chown -R root:wheel /System/Library/Extensions/*
chown root:admin /
echo "Rebuilding kext cache..."
kextcache -system-prelinked-kernel
kextcache -system-caches