Skip to content

Instantly share code, notes, and snippets.

View Bradshaw's full-sized avatar
🚀
Lost in space

Gaeel Bradshaw-Rodriguez Bradshaw

🚀
Lost in space
View GitHub Profile
@Bradshaw
Bradshaw / how-to-notarize-unity-for-macos.md
Created September 6, 2021 07:44 — forked from dpid/how-to-notarize-unity-for-macos.md
How to notarize a Unity build for MacOs 10.15 Catalina

How to notarize a Unity build for macOs 10.15 Catalina

As of January 2020, all apps running on macOs 10.15 Catalina are required to be notarized. For Unity games distributed outside the Mac App Store, such as with Steam, the notarization process is done post build using a series of Xcode command line tools.

Prerequisites

  • a Mac that is compatible with macOs 10.15 Catalina :
    • MacBook (2015 or newer)
    • MacBook Air (2012 or newer)
  • MacBook Pro (2012 or newer)
@Bradshaw
Bradshaw / list_lost_and_found.sh
Created June 15, 2021 09:33
List lost and found commits with a one-liner hash, relative date and commit message
#!/bin/bash
# Saves your life if you accidentally deleted a branch
regex="commit (.*)"
git fsck --lost-found | while read f; # unquoted in order to allow the glob to expand
do
if [[ $f =~ $regex ]]
then
@Bradshaw
Bradshaw / distort.sass
Created May 1, 2021 16:44
A little glitchy effect in Sass
@function randcol($steps: 2, $offset: 0)
@return hsl(random($steps)*(360/$steps)+$offset,100,50)
@function randoff($spread: 4)
@return #{-$spread+random()*2*$spread}px
@keyframes distort-julius
@for $i from 0 to 10
@if random()>0.3
@for $p from $i*10 through $i*10+9
@Bradshaw
Bradshaw / _README.md
Last active September 2, 2021 10:05
A cute iTerm2 config 🌸

It looks like this

My terminal prompt in all its glory

  1. Includes Git branch name
  2. Distance (ahead & behind) the origin/HEAD
  3. Symbols indicating the kind of changes
@Bradshaw
Bradshaw / prepare-commit-msg
Last active January 20, 2022 14:16 — forked from jatubio/prepare-commit-msg
prepare-commit-msg git hook to add branch name to commit message
#!/bin/sh
#
# An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the
# commit message, followed by the description of the commit
# message's source. The hook's purpose is to edit the commit
# message file. If the hook fails with a non-zero status,
# the commit is aborted.
#
# To enable this hook, put this inside `.git/hooks/prepare-commit-msg`
@Bradshaw
Bradshaw / a8e.js
Last active March 6, 2021 12:04
a8e() - abbreviate everything!
let a8e = s=>s
.split(/([^a-zA-Z])/)
.map(s=>s.length>4 ? s[0]+(s.length-2)+s[s.length-1] : s)
.reduce((a,c)=>a+c)
a8e("abbreviate() for javascript: abbreviate everything!")
// ➡ a8e() for j8t: a8e e8g!
@Bradshaw
Bradshaw / 1. Ruffle.md
Last active January 17, 2021 08:16
A description of Ruffle - Kenku Nature Domain Cleric

The trees are a strange bunch. No patience for fools, yet here they were, telling Ruffle all their secrets.

Ruffle

  • Race: Kenku
  • Background: Hermit - Discovery
  • Class: Nature domain Cleric
  • Alignment: Chaotic Good
  • Personality traits: Isolated for so long that they rarely speak, preferring gestures and the occasional grunt.
    Oblivious to etiquette and social expectations.
  • Ideals: Greater Good. Their gifts are meant to be shared with all, not used for their own benefit.
@Bradshaw
Bradshaw / README.md
Last active January 17, 2020 16:53
Generic Score system for Unity & Node for use with https://generic-scores.glitch.me/

generic-scores

A simple high-score table with a database

Go to this Glitch.com project and select the "Remix on Glitch 🎤" option in the fish menu to set up the database & website server

Include ScorePoster.cs anywhere in your Unity project

Make sure to update the url and game key to point to your Glitch project

@Bradshaw
Bradshaw / TubeRenderer.cs
Created December 17, 2019 13:38
Kinda broken tube renderer thing
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
public class TubeRenderer : MonoBehaviour {
public List<Vector3> positions;
public int positionCount {
@Bradshaw
Bradshaw / parseWebring.js
Last active July 5, 2019 13:55
Example of how to parse XXIIVV webring sites.js file
const request = require('request')
const gatherSiteObjects = () => {
return new Promise((resolve, reject) => {
request('https://webring.xxiivv.com/data/sites.json', (err, _, body) => {
if (!err) {
const siteObjects = JSON.parse(body)
resolve(siteObjects)
} else reject(err)
})