Skip to content

Instantly share code, notes, and snippets.

View zeroeth's full-sized avatar
🤖
🐱 🤖 🐱 🤖

[0] zeroeth

🤖
🐱 🤖 🐱 🤖
View GitHub Profile
@zeroeth
zeroeth / bubble02.coffee
Created July 18, 2017 18:52
bubble02 animation script (High Quality Zen + Coffeescript)
#!/usr/bin/env coffee
#
# Animation script for HQZ.
# Micah Elizabeth Scott <[email protected]>
# Creative Commons BY-SA license:
# http://creativecommons.org/licenses/by-sa/3.0/
#
# Output: https://youtu.be/j5E9JCgbI0I
# Tool: https://github.com/scanlime/zenphoton/tree/master/hqz
#
@zeroeth
zeroeth / iso2wbfs
Created June 18, 2017 22:58 — forked from openback/iso2wbfs
Uses Wiimms ISO Tool to convert one or more Wii ISO into a WBFS file, properly named for use on non-WBFS partitions
#!/bin/bash
#===============================================================================
#
# FILE: iso2wbfs
#
# USAGE: ./iso2wbfs [option] FILE... [wbfs directory]
#
# DESCRIPTION: Uses wit to convert one or more Wii ISO into a WBFS file
# properly named for use on non-WBFS partitions.
#
@zeroeth
zeroeth / subtitle-extract.txt
Created January 16, 2017 06:32 — forked from kevinlawler/subtitle-extract.txt
extract subtitles from *.mkv-files on osx
lines with $ are commands
### install mkvtoolnix:
$ brew install mkvtoolnix
### list content of the mkv-file:
$ mkvmerge -i mymoviefile.mkv
### what will give you:
@zeroeth
zeroeth / Makefile
Created December 21, 2016 21:07 — forked from saitoha/Makefile
SIXEL color graphics DEMO (xterm pl#301 and gnuplot)
#
# SIXEL color graphics DEMO
#
# xterm pl#301 with --enable-sixel-graphics option
# gnuplot with --with-bitmap-terminals option
#
# Now the color palette of xterm VT-340 mode is limited to 16.
# If you want to change it to 256, apply the following patch.
# https://gist.github.com/saitoha/7822989/raw/20727b88f0f826bfcb9d644907944b29a456b67f/graphics.c.diff
#
@zeroeth
zeroeth / gist:fd55b34009fedef79b546b1f1f78bfdd
Created August 9, 2016 03:58 — forked from RyanScottLewis/gist:911786
BCR2000/BCF2000 SysEx Messages
require 'midi-winmm'
class Numeric
def to_hex
"%02x" % self
end
end
class String
def to_hex
@zeroeth
zeroeth / fade.c
Created April 26, 2016 17:13 — forked from bashaus/fade.c
Game Boy Color fade script
#include <gb/gb.h>
#include "fade.h"
UWORD FadePalette[32] = {
RGB(30,0,0), RGB(0,30,0), RGB(0,0,30), RGB(0,0,0)
};
void Fade(UWORD *org_p, FadeDirection direction, FadeColor color, UWORD speed)
{
UBYTE i,x;
@zeroeth
zeroeth / vagrant-win-howto.md
Created February 26, 2016 01:48 — forked from cmbaughman/vagrant-win-howto.md
Vagrant >=1.6 Windows Instructions

How to set up a Windows VM with Vagrant

Create your VM

==================

  1. Obtain a windows vm from Modern IE.
  • Win 8 OSX
curl -O -L "https://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE10-Win8.1&parts=5&filename=VMBuild_20131127/VirtualBox/IE10_Win8/Mac/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"
@zeroeth
zeroeth / setup-modernie-vagrant-boxes.md
Created February 26, 2016 00:57 — forked from andrealbinop/setup-modernie-vagrant-boxes.md
Setup modern.ie vagrant boxes

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

@zeroeth
zeroeth / TrueColour.md
Created February 15, 2016 21:55 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
@zeroeth
zeroeth / vim_cheatsheet.md
Created February 11, 2016 21:48 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close