Skip to content

Instantly share code, notes, and snippets.

View michaelgold's full-sized avatar

Michael Gold michaelgold

View GitHub Profile
@michaelgold
michaelgold / checkout.sh
Last active April 10, 2024 12:36
Shallow checkout / branch switching for Unreal
#!/bin/bash
# Script to fetch and checkout a shallow clone of a specific branch
# Check if a branch name was provided
if [ $# -eq 0 ]; then
echo "Usage: $0 <branch-name>"
exit 1
fi

Tasks

Priority Tasks


	dv.table(["Status", "Task", "Link",], dv.pages().file.tasks
	.where(t => {
		console.log("today:")
		console.log(dv.date('today'))
		const isScheduled = t.scheduled <= dv.date('today')
{
"collection": {
"collectionName": "Inscribed Coins",
"collectionDescription": "Inscribed coins are the first collection of on-chain generative art made from a single Blender file which is stored on the Bitcoin blockchain. Each piece is procedurally generated from a unique seed and can be regenerated from the on-chain data at higher levels of detail and other viewing angles.",
"maxSupply": 94,
"collectionExternalUrl": "https://inscribedcoins.com"
},
"artist": {
"artistName": "Michael Gold",
"artistTwitterUrl": "https://twitter.com/michaelgold",
@michaelgold
michaelgold / decode_jpeg_embedded_content.py
Created February 10, 2023 22:18
Blender script to decode embedded generative art content from a JPEG file inscribed in an ordinal
# ▓▓░ ░▓ ░▓░
# ░██ ▓█ ▓▓ ░▓ ░▓████▓ ░▓ ░▓▓
# ██▓ ▓█▓ █▓ ░█░ ▓██▓░░█▓ █▓ ▓█
# ▓██░ ▓██ ▓▓ ▓█░ ▓▓ ▓█▓░ ▓█░ ░█░ ░█▓
# ░██▓ ▓██▓ ░██░ ▓▓ ░█░ ▓█▓ ░█▓ ▓▓ ▓█░
# ░█▓█▓ ░██▓ ░█▓ ░█░ ▓█ ▓█▓ ░█▓ ░█░ █▓
# ▓█▓█ ░█▓█▓ ▓▓ █▓ ▓█▓ ░█▓ ▓▓ ░█░
# ▓█░▓▓░▓▓▓█ ░ █▓ ░ ░█ ░█▓ ░█▓ ░ █▓ ░▓▓
# ▓█▓ █▓▓▓░█▓ ▓▓ ▓██▓ ░█░▓█▓ ░▓██▓ ░███░ ▓▓ █▓ ░ ▓██▓ ░█ ░▓███
# ░█▓ ▓██▓ ▓█░ ░█░ ▓▓ ▓▓ ▓█▓██▓ ▓█▓░░ ▓█░ █░ ░█░ ░█░ ░▓░▓▓░██▓░░▓▓ ▓▓░░▓
@michaelgold
michaelgold / docker-compose.yml
Created December 23, 2019 16:10
Wordpress Docker NGINX Letsencrpyt
https-portal:
image: steveltn/https-portal:1
ports:
- '80:80'
- '443:443'
links:
- wordpress
restart: always
environment:
DOMAINS: 'wordpress.mike.gold -> http://wordpress:80'
@font-face {
font-family: 'Source Code Pro Powerline FontAwesome';
font-style: normal;
font-weight: normal;
src: local('Source Code Pro Powerline FontAwesome'), url('https://raw.githubusercontent.com/gabrielelana/awesome-terminal-fonts/patching-strategy/patched/SourceCodePro%2BPowerline%2BAwesome%2BRegular.ttf') format('truetype');
}
body {
font-family: 'Source Code Pro Powerline FontAwesome' !important;
}
@michaelgold
michaelgold / ta
Created September 20, 2017 16:42
add taskwarrior task to project of parent task with parent task as a dependancy
#!/bin/bash
task=$1
args=""
for i in "${@:2}"
do args="$args $i"
done
task add pro:`task _get $task.project` dep:$task $args
@michaelgold
michaelgold / tap
Created September 14, 2017 00:32
Taskwarrior project report based on active tasks
#!/bin/bash
IFS=' ' read -r -a ids <<< "$(task +ACTIVE ids)"
for i in "${ids[@]}"
do
printf "\n\n\n\n\n$i - `task _get $i.description`\n"
/usr/local/bin/tnp $i
done
@michaelgold
michaelgold / tnp
Created September 11, 2017 14:21
Taskwarrior project report based on task
#!/bin/bash
# runs custom report named: ls
task sum pro:`task _get $1.project`
printf "\nPending Tasks: "
task ls pro:`task _get $1.project` status:pending
printf "\nWaiting Tasks: "
task ls pro:`task _get $1.project` status:waiting
printf "\nCompleted Tasks: "
task ls pro:`task _get $1.project` status:completed
@michaelgold
michaelgold / task.c
Created September 6, 2017 15:17
Taskwarrior Windows 10 Wrapper for Ubuntu Bash
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Forked from https://bitbucket.org/kvorobyev/taskwarriorc2/issues/32/wrapper-for-task-install-in-windows
// Compile in bash with the command: x86_64-w64-mingw32-gcc task.c -o task.exe
char* concat(const char *s1, const char *s2)
{
char *result = malloc(strlen(s1)+strlen(s2)+1);