Skip to content

Instantly share code, notes, and snippets.

@Zer0t3ch
Zer0t3ch / voronoi-generator.js
Last active August 2, 2017 20:48
Point/Line Manager for my Voronoi diagram generator
/**=- VERSION 1.2 -=**/
var canvas, c;
var dots = [ ];
var lines = [ ];
var count = 0;
var m = {
mousePos : function(canvas, evt) {
var rect = canvas.getBoundingClientRect();
@Zer0t3ch
Zer0t3ch / switch.py
Last active August 29, 2015 14:09
Audio Device Switcher
#!/usr/bin/python2
import subprocess as sp
import sys
devhdmi = '5'
devheadset = '8'
storedir = "/home/chaos/bin/"
filename = storedir + ".currentdevice"
@Zer0t3ch
Zer0t3ch / README.md
Created November 14, 2014 13:51
Move 'n Link

Move 'n Link

This program will move a file to a new folder, and then create a symbolic link to it in the old folder


Usage

@Zer0t3ch
Zer0t3ch / .conkyrc
Created November 15, 2014 01:27
Conky Configuration File
#####
#
# Zer0t3ch's .conkyrc
#
#####
update_interval 0.3
double_buffer yes
@Zer0t3ch
Zer0t3ch / rant.js
Last active August 29, 2015 14:11 — forked from lukes/rant.js
// <rant> to actual rant
// (requires modern browsers)
var rants = document.getElementsByTagName('rant');
for (i=0;i<rants.length;i++) {
var rant = new SpeechSynthesisUtterance(rants[i].innerHTML);
window.speechSynthesis.speak(rant);
}
@Zer0t3ch
Zer0t3ch / fish_prompt.fish
Last active August 29, 2015 14:12
coffee_and_code
# # # # #
#
# name: CoffeeAndCode (modified by zer0t3ch)
#
# # # # #
# Theme colors
set fish_color_normal 5f5f5f
set fish_color_command 5f87ff
set fish_color_quote brown
@Zer0t3ch
Zer0t3ch / .bashrc
Created February 11, 2015 19:32
dotfiles
#!/bin/bash
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
Graphics Feature Status
Canvas: Software only, hardware acceleration unavailable
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Rasterization: Software only. Hardware acceleration disabled
Video Decode: Software only, hardware acceleration unavailable
Video Encode: Hardware accelerated
@Zer0t3ch
Zer0t3ch / pacman.log
Created October 15, 2015 23:33
Output of `pacman -Syu`
$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra 1806.9 KiB 1156K/s 00:02 [################################] 100%
community is up to date
multilib is up to date
pipelight is up to date
:: Starting full system upgrade...
warning: lib32-libtirpc: local (0.3.2-2) is newer than multilib (0.3.2-1)
resolving dependencies...
@Zer0t3ch
Zer0t3ch / habitica-dark.meta.js
Last active December 18, 2015 22:50
A dark userscript theme for Habitica.com
// ==UserScript==
// -- General metadata
// @name Habitica Dark (by Zer0t3ch)
// @namespace http://zer0t3ch.com/
// @description Recolors Habitica.com to a darker style
// @copyright 2015+, Zachary "Zer0t3ch" Hill
// @match https://habitica.com/*
//
// -- Update metadata
// @version 0.0.07