Skip to content

Instantly share code, notes, and snippets.

View iamtew's full-sized avatar
🤯
My status? I just found the User Status function!

Mikael iamtew

🤯
My status? I just found the User Status function!
View GitHub Profile
@iamtew
iamtew / Collect-MapMeta.ps1
Last active November 12, 2026 19:18
Collect ReSkate mod maps meta-data
# Collect only map mods (folders that contain reskate-levels.json)
# Run this script inside a Mods folder (or a folder full of unzipped maps)
$ErrorActionPreference = "Stop"
$outputFolderName = "MapsForServer"
$outputPath = Join-Path -Path (Get-Location) -ChildPath $outputFolderName
$timestamp = Get-Date -Format "yyyyMMddHHmm"
$zipFileName = "MapsForServer_$timestamp.zip"
@iamtew
iamtew / Cuckhold_Software.md
Created November 7, 2026 00:26
Cuckhold Software

Cuckold Software

  • Cuckold Software (noun)

A software project born from the systematic extraction of another project's ideas, workflows, aesthetics, assumptions, and hard-won lessons, while deliberately discarding its original implementation.

Unlike a fork, a clone, or a clean-room reimplementation, Cuckold Software does not preserve lineage with dignity. It studies the source project like a graverobber studies a corpse: harvesting useful organs, stripping away inconvenient flesh, and reassembling the desirable traits into an entirely new creature.

@iamtew
iamtew / 01_drunktard-static-website-guide.md
Last active September 13, 2026 22:25
Drunktard's guide to a website on GH

Yo Drunk Buddy, We're Gonna Make You a Real Website

Listen up you beautiful disaster.
Right now you got nothing. No website. No clue. Just vibes and maybe half a beer left.

By the end of this little adventure you will have:

  • A real live website that other humans can open in their browser
  • Hosted for free on GitHub
  • Looking like you actually know what you're doing (even though we both know you don't)
@iamtew
iamtew / clanker.md
Last active September 18, 2026 00:18
Clanker / Meat Bag convention for optimal clanking!
description Global Clanker rules. Ponytail mode. Meat Bag constitution.
globs
alwaysApply true

Clanker.mdc - Meat Bag x Clanker

Shared constitution. User docs in README/PLAN. This is how we work.

Phrases to speak for accurate voice cloning: HARVARD SENTENCES

To clone a voice accurately using speech synthesis or voice cloning technology, it's important to cover all the phonetic sounds of the English language.

The script used for this purpose should contain all the phonemes of English — known as a phonetically balanced corpus.

One commonly used example is the "Harvard Sentences."

These are a collection of sample phrases that are phonetically balanced and are often used in testing telecommunications equipment and voice synthesis technologies. The Harvard Sentences are organized into lists, each designed to have different phonetic characteristics and to be uniformly distributed in terms of phoneme representation.

@iamtew
iamtew / print256colours.sh
Created December 11, 2022 18:58 — forked from HaleTom/print256colours.sh
Print a 256-colour test pattern in the terminal
#!/bin/bash
# Tom Hale, 2016. MIT Licence.
# Print out 256 colours, with each number printed in its corresponding colour
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163
set -eu # Fail on errors or undeclared variables
printable_colours=256
@iamtew
iamtew / super_spinner.bash
Created June 14, 2022 19:25 — forked from yarlson/super_spinner.bash
Super Spinner: An Emoji-based spinner for bash
###
# Super Spinner
# An emoji-based spinner — because ASCII is boring.
#
# Usage:
# $ COMMAND & superSpinner $! "Message"
#
# Example:
# $ sleep 5 & superSpinner $! "Sleeping for 5 seconds"
#
@iamtew
iamtew / Dockerfile
Last active January 24, 2017 14:02
Custom Vamp 0.9.2 Marathon container
# Use the latest 0.9.2 DC/OS release
FROM magneticio/vamp:0.9.2-dcos
# Add our updated confgiruation
ADD https://raw.githubusercontent.com/magneticio/vamp-docker/master/vamp-dcos/application.conf /usr/local/vamp/application.conf
@iamtew
iamtew / nginx_userdir.conf
Created October 16, 2015 09:57 — forked from btbytes/nginx_userdir.conf
User-based Website Directories with Nginx
## REF: http://blog.sbf5.com/?p=6
# For requests starting with a tilde, break them into three components:
# 1. The username, everything after the tilde up to the first slash
# 2. The file location, everything after the username up to the last slash
# 3. The trailing slash(es)
# Then, rewrite to go to the f~/ branch.
location /~ {
if ($request_uri ~ ^/~([^/]*)(/.*[^/]|)(/*)$) {
set $homedir $1;
set $filedir $2;
@iamtew
iamtew / add_swapfile.sh
Created May 19, 2015 13:15
Function to create and configure swap file on Linux. Useful on VPS' and the like where images normally don't come configured with swap by default.
#! /bin/bash
test "$(id -u)" -eq 0 || exit 1
# Create and configurat swapfile
create_add_swapfile() {
test -z $1 && return 1
local size=$(echo ${1} | grep -o -E '^[0-9]*')
local unit=$(echo ${1} | grep -o -E '[^0-9](.*)?$' || echo M)