Skip to content

Instantly share code, notes, and snippets.

View justin's full-sized avatar

Justin Williams justin

View GitHub Profile
@mary-ext
mary-ext / bluesky-osa.md
Last active September 15, 2025 19:41
Bluesky's age assurance sucks, here's how to work around it.

Bluesky's age assurance sucks, here's how to work around it.

Bluesky has implemented age verification measures in response to regional laws that restrict access:

  • UK users are shown a banner for attempting identity verification through Epic Games' Kids Web Services before they could access adult content, following the Online Safety Act.

  • Mississippi users are completely blocked from acccessing Bluesky due to

@jcsalterego
jcsalterego / .gitignore
Last active December 14, 2023 16:59
Bluesky Icon
icon.iconset
@gdavis
gdavis / xcode-vim.markdown
Last active August 30, 2025 14:47
Notes for working with Xcode VIM mode

Xcode VIM

Learning VIM in Xcode comes with its own set of challenges and limitations, but there is enough there for you to give your mousing hand a break and master the keyboard.

A limited set of commands are available in Xcode, and this document attempts help ease the learning curve of using VIM in Xcode by providing a handy reference as well as what I find works for me in practice.

NOTE: Commands are case-sensitive. A command of N means pressing shift + n on the keyboard.

This document is a work in progress! Leave a comment if you would like to see a change.

@mattmc3
mattmc3 / optparsing_demo.zsh
Last active August 19, 2025 13:16
Zsh option parsing example
# Manual opt parsing example
#
# Features:
# - supports short and long flags (ie: -v|--verbose)
# - supports short and long key/value options (ie: -f <file> | --filename <file>)
# - supports short and long key/value options with equals assignment (ie: -f=<file> | --filename=<file>)
# - does NOT support short option chaining (ie: -vh)
# - everything after -- is positional even if it looks like an option (ie: -f)
# - once we hit an arg that isn't an option flag, everything after that is considered positional
function optparsing_demo() {
@IsaacXen
IsaacXen / README.md
Last active September 12, 2025 10:52
(Almost) Every WWDC videos download links for aria2c.
@magnetikonline
magnetikonline / README.md
Last active September 8, 2025 15:25
Add user ssh-agent as daemon to Ubuntu 18.04LTS server.

Add user ssh-agent as daemon to Ubuntu 18.04LTS server

Create a new systemd user unit, which starts ssh-agent upon login to server. Will remain resident until the final session for the user has logged out.

Steps

  • Create /etc/systemd/user/ssh-agent.service.

  • Run the following commands (under your user account, not root) to install the systemd unit and start:

NSView *contentView = [self.window contentView];
self.button = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 50.0f)];
[self.button setTranslatesAutoresizingMaskIntoConstraints:NO];
[self.button setTitle:@"This is a test button"];
[self.button setBordered:YES];
[contentView addSubview:self.button];
NSButton *button = self.button;
- (void)loadDefaultSettings
{
NSMutableDictionary *defaults = [NSMutableDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default-Settings" ofType:@"plist"]];
// other setup...
[[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithDictionary:defaults]];
}
- (void)resetDefaultSettings
@aitskovi
aitskovi / NSObject_KVCExtensions.h
Created April 28, 2011 06:24
Key Value Coding - canSetValueForKey/KeyPath
#import <Foundation/Foundation.h>
@interface NSObject (NSObject_KVCExtensions)
- (BOOL)canSetValueForKey:(NSString *)key;
- (BOOL)canSetValueForKeyPath:(NSString *)keyPath;
@end
@cbarrett
cbarrett / BLOCK bself macro
Created March 16, 2011 04:25
I think this was it. I stopped using it because it made Xcode 3 put all errors or warnings for the block on the line of the macro invocation; total nonstarter.
#define BLOCK(...) ({ __block __typeof__(self) bself = self; __VA_ARGS__(); )}