Skip to content

Instantly share code, notes, and snippets.

View m4rkk's full-sized avatar
💭
Stealth Mode Startup!

Mark Alan m4rkk

💭
Stealth Mode Startup!
  • Small Planet Labs
  • Seattle, USA
View GitHub Profile
@m4rkk
m4rkk / md2n.sh
Last active May 15, 2025 21:06
Publish MarkDown document to a Notion page. I used ChatGPTExporter to export threads to .MD files manually; then post process with this to fix up code blocks and push it to Notion.
#!/usr/bin/env bash
#
# md2n.sh — Move MarkDown document into notion.
#
# DESCRIPTION:
# Preserves code blocks and provides a copy button on each block.
# Yaml blocks are suspect, so patch them up with pandoc.
#
# DEPENDENCIES:
# - Pandoc - tried and true document converter tool.
@m4rkk
m4rkk / eso_ttc_update.sh
Last active May 9, 2025 22:16
Downloads, unzips, and syncs the latest TTC PriceTable data for Elder Scrolls Online.
#!/bin/bash
#
# eso_ttc_update.sh — Update the ESO Tamriel Trade Centre pricetable on UN*X
#
# DESCRIPTION:
# Downloads, unzips, and syncs the latest TTC PriceTable data for Elder Scrolls Online.
# Safe to run from cron with minimal system impact.
#
#
# USAGE:
@m4rkk
m4rkk / Curved.shader
Created October 3, 2020 00:52 — forked from grimmdev/Curved.shader
Subway Surfer like Curved World Shader for Unity
Shader "Custom/Curved" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_QOffset ("Offset", Vector) = (0,0,0,0)
_Dist ("Distance", Float) = 100.0
}
SubShader {
Tags { "RenderType"="Opaque" }
Pass
{
@m4rkk
m4rkk / String+substring.swift
Created January 10, 2018 21:44
Clickable link
import Foundation
extension String {
func substring(start: Int, end: Int) -> String {
if (start == end || self.strlen() == 0) {
return ""
}
let startIndex = self.index(self.startIndex, offsetBy: start)
let endIndex = self.index(self.startIndex, offsetBy: end)
return String(self[startIndex..<endIndex])
@m4rkk
m4rkk / clean-git.sh
Last active November 10, 2017 22:53
Lists or removes branches already merged to HEAD. Runs prompted depending on options.
#!/bin/bash
function usage
{
cat <<EOF
Usage: `basename $0` [options] namespace
Lists or deletes <<namespace>> branches merged with HEAD; namespace defaults to "bugfix/"