Skip to content

Instantly share code, notes, and snippets.

View storskegg's full-sized avatar

Liam Conrad W4PHO storskegg

View GitHub Profile
@storskegg
storskegg / delete-all-local-timemachine-backups.sh
Created January 11, 2022 16:47
Deletes all local Time Machine backups in MacOS 12.1 (and maybe other versions)
#!/bin/sh
# list local snapshots for `/`, filter output to grab snapshot timestamps, and pass them one at a time to tmutil
# to delete them.
#
# you may need to elevate your privelleges using sudo, but i found that on my single user laptop i didn't have to
tmutil listlocalsnapshots / | grep -Eo '\d\d\d\d-\d\d-\d\d-\d+' | xargs -n1 tmutil deletelocalsnapshots
@storskegg
storskegg / crash-2020-04-05_13.39.24-client.txt [All of my mods]
Last active April 5, 2020 18:52
Mekanism-related crash after installing a ton of mods
---- Minecraft Crash Report ----
// Daisy, daisy...
Time: 4/5/20 1:39 PM
Description: Initializing game
java.lang.NullPointerException: Registry Object not present
at java.util.Objects.requireNonNull(Objects.java:228) ~[?:1.8.0_51] {}
at net.minecraftforge.fml.RegistryObject.get(RegistryObject.java:91) ~[?:?] {re:classloading}
at mekanism.common.registration.WrappedRegistryObject.get(WrappedRegistryObject.java:23) ~[?:?] {re:classloading}
@storskegg
storskegg / .eslintrc
Last active August 2, 2017 13:39
Basic .eslintrc
{
"extends": "airbnb",
"env": {
"browser": true,
"jquery": true,
"worker": true
},
"globals": {
"Lemans": true
},
@storskegg
storskegg / Material Theme - Liam.icls
Created April 20, 2017 13:31
My JetBrains Color Config
<scheme name="Material Theme - Liam" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<option name="LINE_SPACING" value="1.15" />
<font>
<option name="EDITOR_FONT_NAME" value="Operator Mono Book" />
<option name="EDITOR_FONT_SIZE" value="12" />
</font>
<font>
<option name="EDITOR_FONT_NAME" value="Operator Mono Light" />
<option name="EDITOR_FONT_SIZE" value="11" />

Keybase proof

I hereby claim:

  • I am storskegg on github.
  • I am storskegg (https://keybase.io/storskegg) on keybase.
  • I have a public key ASAsKlfHw3n57KbGnGD4O7SHtzSUl_hRqTEkbJhTKtgFpAo

To claim this, I am signing this object:

@storskegg
storskegg / Ready to Play with :has CSS4 Selector.markdown
Last active August 29, 2015 14:27
Ready to Play with :has CSS4 Selector

Ready to Play with :has CSS4 Selector

When your browser supports CSS4 selector :has(), the winning statement will be revealed.

A Pen by Liam Conrad on CodePen.

License.

@storskegg
storskegg / const.js
Last active August 29, 2015 14:27
A Method to Produce Constants in ES5
// A small function that allows the creation of constants in ES5.
// Arguments:
// name <String>: The name of your constant
// value <Any>: The value of your constant
// isEnumerable <Bool>: Should your constant be enumerable? optional, defaults to true
// scope <Object>: The scope to which the constant is bound. optional, defaults to window (global)
var Const = function (name, value, isEnumerable, scope) {
"use strict";