Skip to content

Instantly share code, notes, and snippets.

View splitbrain's full-sized avatar
🙃

Andreas Gohr splitbrain

🙃
View GitHub Profile
diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h
index a935bde..3ca167c 100644
--- a/Marlin/Configuration.h
+++ b/Marlin/Configuration.h
@@ -8,13 +8,13 @@
// Huxley: http://reprap.org/wiki/RepRapPro_Huxley_maintenance
// Uncomment ONE of the next three lines - the one for your RepRap machine
-//#define REPRAPPRO_HUXLEY
-#define REPRAPPRO_MENDEL
@splitbrain
splitbrain / ickeinit.sh
Created December 3, 2012 14:10
initialises the ICKE wiki repositories
#!/bin/sh
#
# Usage: wget -qO- https://raw.github.com/gist/4195252/ickeinit.sh |sh -s <installdir>
DIR="$1"
if [ -z "$DIR" ]
then
echo "Please give install directory as first parameter."
exit
@splitbrain
splitbrain / sbm.sh
Created September 6, 2012 22:01
CLI tool to create an SSH alias
# SSH bookmark creator
sbm(){
if [ $# -lt 2 ]; then
echo "Usage: sbm <short> [<user>@]<hostname> [-p <port>]" >&2
return 1
fi
short=$1
arg=$2
@splitbrain
splitbrain / test.php
Created January 23, 2012 15:33
mpdf pre/list style bug
<?php
$html = '
<pre style="border: 2px solid #ff0000">test outside list</pre>
<ul>
<li>
a pre<br />
<pre style="border: 2px solid #ff0000">test inside list</pre>
</li>
@splitbrain
splitbrain / float.php
Created January 11, 2012 12:09
mpdf float behaviour
<?php
$html = '<html><head></head><body>
<p><img src="http://php.net/images/php.gif" style="float:left"> this is right to the image</p>
<p>Browsers will show this right to the image as well. mpdf does not</p>
@splitbrain
splitbrain / test.php
Created January 11, 2012 10:52
mpdf backslash bug
<?php
$html = '
<p>Here should be one: \\ and here should be two \\\\</p>
<pre>Here should be one: \\ and here should be two \\\\</pre>
';
include("MPDF53/mpdf.php");
$mpdf=new mPDF();
$mpdf->WriteHTML($html);
A set of shellscripts and and some HTML/JavaScript to create an 16x16 icon browser.
The icons need to be placed in folders named <setname>/ico/
The URLs to each set can be found in <setname>/ico/url
mkcontactsheet.sh
creates the single image montage and the image map. Run it for each set,
after you put the icons into the correct folders
mkindex.sh
<?php
$OTS = '/usr/bin/ots';
loadurl();
if(!isset($_REQUEST['format']) || $_REQUEST['format'] =! 'text'){
header('Content-Type: text/html; charset=utf-8');
html_header();
form();
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JOptionPane;