Skip to content

Instantly share code, notes, and snippets.

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

[0] zeroeth

🤖
🐱 🤖 🐱 🤖
View GitHub Profile
@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 / ancestors.js
Last active February 24, 2016 01:27
Chrome inspector-like DOM ancestor printer.
/* Output is: div#a > span.red > ul#c.xyz.123.hello.goodbye */
/* Can skip lower dom elements and truncate the class name list on each element */
/* Mock Duck */
var doc = {};
var a = {nodeName: "DIV", id: "a", className: ""};
var b = {nodeName: "SPAN", id: "", className: "red"};
var c = {nodeName: "UL", id: "c", className: " xyz 123 hello goodbye"};
c.parentNode = b;
@zeroeth
zeroeth / concatenation.less
Last active February 23, 2016 18:58
360 degrees of CSS child selection
/* Try it out at http://lesscss.org/less-preview/ */
/* ~"" unquotes the strings in less. */
/* Im sure you could remove the double first arguments of "*" "*" but thats a task for another day */
/* Loop structure from http://meri-stuff.blogspot.com.br/2013/03/less-css-tips-and-trics.html */
/* looping mixin */
.loop (@index, @token, @selector, @joiner) when (@index > 0) {
/* do whatever you need to do */
@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
@zeroeth
zeroeth / Bjorklund.cpp
Created January 7, 2016 06:46 — forked from unohee/Bjorklund.cpp
openframeworks (C++) Version of Bjorklund Algorithm
//
// Bjorklund.cpp
// EuclideanRhythm
//
// Created in 12/18/15.
//
//
#include "Bjorklund.h"
@zeroeth
zeroeth / README.md
Created November 29, 2015 07:22 — forked from markusfisch/README.md
bash script to build a texture atlas with a little help from ImageMagick

mkatlas

[BASH][1] script to build a [texture atlas][2] for small/medium web sites/games. Requires [ImageMagick][3].

Usage

Basic

@zeroeth
zeroeth / privacy.md
Last active November 24, 2015 21:03
privacy settings

An attempt to show all the many confusing pages google has for various account activities. Feel free to fork and add more.

Disabling History Tracking

https://www.google.com/settings/accounthistory To the right of each setting is a blue circle or grey circle. (Its supposed to represent a toggle switch) Make them ALL GREY. Each time a window will pop up, hit the 'Pause' on the bottom.