Skip to content

Instantly share code, notes, and snippets.

View parseword's full-sized avatar

Shaun Cummiskey parseword

View GitHub Profile
@Freaky
Freaky / zenbleed_workaround
Last active August 12, 2023 18:59
FreeBSD Zenbleed mitigation rc script
#!/bin/sh
#
# PROVIDE: zenbleed_workaround
# REQUIRE: root mountcritlocal microcode_update
# BEFORE: SERVERS
# KEYWORD: nojail resume
# Source: https://gist.github.com/Freaky/2560975d3c94246b86f464b8be75c967
#
# Copyright (c) 2023 Thomas Hurst <tom@hur.st>
@grahamperrin
grahamperrin / freebsd-ports-git.md
Last active April 20, 2021 17:39
Beginning to use Git for FreeBSD ports: a rough guide

Beginning to use Git for FreeBSD ports: a rough guide

Not for committers.

Please treat this page as work in progress during the transition to Git.

Preparations

  1. rm /var/db/gitup/ports
  2. rm -r /usr/ports/*
@ryancdotorg
ryancdotorg / rotate_dkim.py
Last active October 27, 2023 15:22
Experimental DKIM rotate/revoke/repudiate script for Exim+Route53. I take no responsibility for its use.
#!/usr/bin/env python
import os
import grp
import sys
import stat
import time
import hmac
import boto3
import tempfile
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active April 30, 2024 23:36
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName