Skip to content

Instantly share code, notes, and snippets.

Ben Fox-Moore InfernoZeus

Block or report user

Report or block InfernoZeus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@InfernoZeus
InfernoZeus / Makefile.patch
Created Mar 21, 2015
AUR swapspace package fix
View Makefile.patch
--- 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 / PKGBUILD
Created Mar 8, 2015
Arch package for livestreamer-twitch-gui
View PKGBUILD
# 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 / html2canvas-indexsizeerror-patch.diff
Last active Nov 3, 2017
Patches for html2canvas to fix: - jump back to previous scroll position after parsing - indexsizeerror dom exception when element being rendered had size 0
View html2canvas-indexsizeerror-patch.diff
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");
-
View ncurses_test.c
#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 / gist:2866123
Created Jun 4, 2012
EclipseOSXRepackager
View gist:2866123
#! /bin/bash
####################################################################################
# Utility functions required for parsing user input
function fatal_error() {
echo "FATAL ERROR: $1"
exit 1
}
View install.sql
-- 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 / a2createsite.sh
Created Feb 24, 2012 — forked from florentb/a2createsite.sh
bash script - apache, vhost, website
View a2createsite.sh
#!/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
You can’t perform that action at this time.