Skip to content

Instantly share code, notes, and snippets.

View a2435191's full-sized avatar

William Bradley a2435191

  • Ithaca, NY
  • 01:06 (UTC -04:00)
View GitHub Profile
@bolu61
bolu61 / cursed.py
Last active February 28, 2025 17:54
Cursed decorators
# Chapter 1: immediate evaluation with optional composition
@lambda f: not f()
def true() -> bool:
return False
assert true == True # ???
# Chapter 2: single line composition
@TheCurle
TheCurle / MyCapability.java
Last active July 7, 2024 16:50 — forked from niklaswimmer/MyCapability.java
Getting Started with Capabilities: a practical example
public class MyCapability {
public static final Capability<MyCapabilityInterface> INSTANCE = CapabilityManager.get(new CapabilityToken<>() {});
public static void register(RegisterCapabilitiesEvent event) {
event.register(MyCapabilityInterface.class);
}
private MyCapability() {
}
@rtrouton
rtrouton / gist:3ac68ac3770ab23ebae354c581f526b7
Last active October 14, 2024 07:59
MigrateADMobileAccountToLocalAccount.command script
#!/bin/bash
# Modified 4/5/2019
Version=1.4
# Original source is from MigrateUserHomeToDomainAcct.sh
# Written by Patrick Gallagher - https://twitter.com/patgmac
#
# Guidance and inspiration from Lisa Davies:
# http://lisacherie.com/?p=239
#
# Modified by Rich Trouton
@danfinlay
danfinlay / How to download streaming video.md
Last active August 14, 2025 12:20
How to download a streaming video with Google Chrome

How to download streaming video

Streaming just means a download that they don't want you to keep. But Chrome's developer tools make it easy to access what's really going on under the hood.

Open Developer Tools

From the page where you want to download some things, go into your chrome menu to open the developer tools. You can either:

1.  (On a mac): Command-option-J
2. (On a PC): Control-alt-J