Skip to content

Instantly share code, notes, and snippets.

View InfernoZeus's full-sized avatar

Ben Fox-Moore InfernoZeus

View GitHub Profile
@InfernoZeus
InfernoZeus / PKGBUILD
Created March 8, 2015 02:05
Arch package for livestreamer-twitch-gui
# Maintainer: Ben Fox-Moore <ben.foxmoore@gmail.com>
pkgname=livestreamer-twitch-gui
pkgver=v0.7.1
pkgrel=1
pkgdesc="A multi platform Twitch.tv browser for Livestreamer"
arch=("i686" "x86_64")
url="https://github.com/bastimeyer/livestreamer-twitch-gui"
license=("MIT")
depends=("livestreamer")
provides=("livestreamer-twitch-gui")
@InfernoZeus
InfernoZeus / Makefile.patch
Created March 21, 2015 20:08
AUR swapspace package fix
--- swapspace-1.10/Makefile.orig 2006-01-03 20:19:35.000000000 -0800
+++ swapspace-1.10/Makefile 2011-10-13 11:22:23.950648477 -0700
@@ -3,7 +3,7 @@
SWAPPARENT=/var/lib
SWAPDIR=$(SWAPPARENT)/swapspace
-all: VERSION DATE
+all:
+$(MAKE) -C src VERSION="`cat VERSION`" DATE="`cat DATE`"
+$(MAKE) -C doc VERSION="`cat VERSION`" DATE="`cat DATE`"
@InfernoZeus
InfernoZeus / a2createsite.sh
Created February 24, 2012 05:42 — forked from florentb/a2createsite.sh
bash script - apache, vhost, website
#!/bin/bash
VHOST_CONF=/etc/apache2/sites-available
ROOT_UID=0
# check if is root
if [ "$UID" -ne "$ROOT_UID" ]
then
echo You must be root to run this script..
exit $UID
-- phpMyAdmin SQL Dump
-- version 3.3.7deb7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 28, 2012 at 04:19 AM
-- Server version: 5.1.49
-- PHP Version: 5.3.3-7+squeeze8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
@InfernoZeus
InfernoZeus / gist:2866123
Created June 4, 2012 03:13
EclipseOSXRepackager
#! /bin/bash
####################################################################################
# Utility functions required for parsing user input
function fatal_error() {
echo "FATAL ERROR: $1"
exit 1
}
#include <stdlib.h>
#include <curses.h>
int main(int argc, char **argv) {
if(!initscr()) {
printf("Error initializing screen.\n");
exit(1);
}
if(!has_colors()) {
printf("This terminal does not support colours.\n");
@InfernoZeus
InfernoZeus / html2canvas-indexsizeerror-patch.diff
Last active November 3, 2017 06:53
Patches for html2canvas to fix: - jump back to previous scroll position after parsing - indexsizeerror dom exception when element being rendered had size 0
diff --git a/content/scripts/html2canvas.js b/content/scripts/html2canvas.js
index 7ab27ed..52f3eab 100644
--- a/content/scripts/html2canvas.js
+++ b/content/scripts/html2canvas.js
@@ -2830,9 +2830,10 @@ _html2canvas.Renderer.Canvas = function(options) {
newCanvas = doc.createElement('canvas');
newCanvas.width = bounds.width;
newCanvas.height = bounds.height;
- ctx = newCanvas.getContext("2d");
-