Skip to content

Instantly share code, notes, and snippets.

View inhji's full-sized avatar
🚲
I'll make better mistakes tomorrow.

Jonathan Jenne inhji

🚲
I'll make better mistakes tomorrow.
View GitHub Profile
@inhji
inhji / documentTags.vm
Created April 12, 2013 09:40
XWiki Tagging
#template("xwikivars.vm")
#set($tagsId = 'xdocTags')
#set($tagErrorMessage = '')
#set($xredirect = $escapetool.url($doc.getURL('view', "#${tagsId}")))
#set($predefinedTags = ['Windows','Linux','Oracle'])
##
##
##
#macro(displayTag $tag)
<span class="tag-wrapper"><span class="tag"><a href="$xwiki.getURL('Main.Tags', 'view', "do=viewTag&amp;tag=$!{escapetool.url($tag)}")">$!{escapetool.xml($tag)}</a></span>#if($xwiki.hasAdminRights())<span class="separator">[</span><a href="$doc.getURL('view', "xpage=documentTags&amp;xaction=delete&amp;tag=$!{escapetool.url($tag)}&amp;xredirect=${xredirect}")" class="tag-tool tag-delete" title="$msg.get('core.tags.remove.tooltip')">X</a><span class="separator">]</span>#end</span>
@inhji
inhji / postinstall.sh
Created April 16, 2013 16:59
Post Install Script
#!/bin/bash
# Download the latest packages & upgrade - for convenience's sake
apt-get update
apt-get upgrade -y
# PPAs
add-apt-repository -y ppa:nilarimogard/webupd8
add-apt-repository -y ppa:otto-kesselgulasch/gimp
add-apt-repository -y ppa:chris-lea/node.js
@inhji
inhji / nopatterns.md
Created April 17, 2013 19:49
no patterns

When I was a little kid, my mother told me not to stare into the sun, so when I was six I did...

There will be no order, only chaos.

@inhji
inhji / new_gist_file
Created May 6, 2013 08:35
gtk-redshift
gtk-redshift -l 50.52:8.70
@inhji
inhji / xwiki.properties
Created May 10, 2013 11:57
xwiki.properties for Office Importer
#-------------------------------------------------------------------------------------
# Settings for the OpenOffice server instance consumed by the OfficeImporter component
#-------------------------------------------------------------------------------------
#-# [Since 1.9M2]
#-# Type of the openoffice server instance used by officeimporter component.
#-# 0 - Internally managed server instance. (Default)
#-# 1 - Externally managed (local) server instance.
openoffice.serverType=0
#-# [Since 1.9M2]
@inhji
inhji / new_gist_file
Created May 13, 2013 20:23
CM10.1 Lungo Battery Life
for me battery-life is way better than normal CM 10.1...
min 192
max 1512
ondemand
scheduler ROW
thumps up! great rom!
@inhji
inhji / newsletter.html
Created May 22, 2013 13:24
newsletter.html
<!-- ***************************************************
********************************************************
HOW TO USE: Use these code examples as a guideline for formatting your HTML email. You may want to create your own template based on these snippets or just pick and choose the ones that fix your specific rendering issue(s). There are two main areas in the template: 1. The header (head) area of the document. You will find global styles, where indicated, to move inline. 2. The body section contains more specific fixes and guidance to use where needed in your design.
DO NOT COPY OVER COMMENTS AND INSTRUCTIONS WITH THE CODE to your message or risk spam box banishment :).
It is important to note that sometimes the styles in the header area should not be or don't need to be brought inline. Those instances will be marked accordingly in the comments.
********************************************************

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@inhji
inhji / GithubDark.tmtheme
Created June 5, 2013 08:22
Dark Github'ish Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Github Dark</string>
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);