Skip to content

Instantly share code, notes, and snippets.

View mschultheiss83's full-sized avatar

Martin Schultheiß mschultheiss83

View GitHub Profile
/**
* @author Thomas Bley
* @licence GNU-FDL
* Source: http://we-love-php.blogspot.fr/2012/12/create-pdf-invoices-with-html5-and-phantomjs.html
*/
var page = new WebPage();
var system = require("system");
// change the paper size to letter, add some borders
// add a footer callback showing page numbers
run:
casperjs index.js && convert *.jpg video.mpeg && gify video.mpeg out.gif && rm *.jpg video.mpeg
# This can be ran as a standalone script but really it is just a reference of things I've done with a fresh install in case I want or need to install Ubuntu on another machine.
##############################################################################################################################
# Tips from the following URL: http://howtoubuntu.org/things-to-do-after-installing-ubuntu-14-04-trusty-tahr
# ***Note: First you will need to enable partner repositories in the Software & Updates GUI.***
echo "Downloading GetDeb and PlayDeb....." &&
wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb http://archive.getdeb.net/install_deb/playdeb_0.3-1~getdeb1_all.deb &&
@mschultheiss83
mschultheiss83 / permutations-v1.md
Created January 8, 2015 17:55
js permutation functions
@mschultheiss83
mschultheiss83 / jsonLoad.md
Created January 8, 2015 17:46
node read json file from disk

Strict Mode: The Summary!

Identifiers (variables, functions) cannot be named any of these: "implements", "interface", "let", "package", "private", "protected", "public", "static", and "yield"

OctalLiterals are not allowed.

/**
* Finds your daily SublimeText2 package. Yeah, randomly.
*
* Requires CasperJS: http://casperjs.org/
*
* Usage: $ casperjs sublime-day.js
*/
var casper = require('casper').create();
var f = require("utils").format;
var packages = [];
javascript:(function(){$('link[rel="stylesheet"]').each(function(){var url=$(this).attr('href').replace(/[\?&][^\?&=]+=[0-9]+$/,'');url += (url.indexOf('?') == -1 ? '?' : '&') + 'nocache=' + (new Date()).getTime();console.log(url);$(this).attr('href',url);});})()
@mschultheiss83
mschultheiss83 / fedoraproject.md
Created August 26, 2014 12:52
Link to fedoraproject

fedoraproject

http://fedoraproject.org/de/get-fedora-all

Anforderungen

Eine leere CD oder DVD oder ein leerer 1GB+ USB-Stick 64-bit Intel-kompatibler PC 1GB Arbeitsspeicher (RAM) Mindestens 10 GB Festplattenspeicher (nur für Installation benötigt)

Infos & Downloads