Skip to content

Instantly share code, notes, and snippets.

View ilkka's full-sized avatar
:octocat:
sanitary deeds done at reasonable prices

Ilkka Poutanen ilkka

:octocat:
sanitary deeds done at reasonable prices
View GitHub Profile
@ilkka
ilkka / tag_cloud_tag.rb
Created November 22, 2010 20:07
Jekyll tag cloud / tag pages plugin
module Jekyll
class TagCloudTag < Liquid::Tag
safe = true
def initialize(tag_name, text, tokens)
super
end
def render(context)
html = ""
import Qt 4.7
Item {
property int foo : 1
Timer {
interval: 1000; running: true; repeat: true
onTriggered: {
console.log("Triggered");
foo = foo *2;
$ nanoc compile
Loading site data...
Compiling site...
identical [2.20s] _site/index.html
+--- /!\ ERROR /!\ -------------------------------------------+
| An exception occured while running nanoc. If you think this |
| is a bug in nanoc, please do report it at |
| <http://projects.stoneship.org/trac/nanoc/newticket> -- |
| thanks in advance! |
@ilkka
ilkka / fix-outlook-quoting.rb
Created January 31, 2011 12:29
This script is a text filter to correctly quote e-mail messages mangled by Outlook.
#!/usr/bin/env ruby
# Fix outlook quoting. Inspired by perl original by Kevin D. Clark.
# This program is meant to be used as a text filter. It reads a plaintext
# outlook-formatted email and fixes the quoting to the "internet style",
# so that::
#
# -----Original Message-----
# [from-header]: Blah blah
# [timestamp-header]: day month etc
# [...]
g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_DECLARATIVE_LIB -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_OPENTYPE -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include/QtGui -I../../include/QtOpenGL -I../../include/QtXmlPatterns -I../../include/QtSql -I../../include/QtSvg -I../../include/QtScript -I../../include -I../../include/QtDeclarative -I.rcc/release-shared -Iutil -Igraphicsitems -Iqml -Iqml/parser -Iqml/rewriter -Idebugger -Iscenegraph/coreapi -Iscenegraph/convenience -Iscenegraph/3d -Iscenegraph/adaptationlayers -Iitems -I../3rdparty/harfbuzz/src -I/usr/X11R6/include -I.moc/release-shared -o
ilaukkan@ilaukkan-laptop:~
1 :( $ sudo pear list-all -c indeyets
All packages [Channel indeyets]:
================================
Package Latest Local
indeyets/AppServer 0.4.0 A set of components for building extremely fast universal web-apps
indeyets/AppServer_backport52 0.2.2 A set of components for building extremely fast universal web-apps
indeyets/httpparser 1.0.0 HTTP/1.1 Parser
indeyets/midgardmvc_installer 1.0.4 Midgard MVC Installer
indeyets/pake 1.6.1 PHP automation tool with capabilities similar to make.
$ brew doctor
Your OS X is ripe for brewing.
Any troubles you may be experiencing are likely purely psychosomatic.
[meego@localhost ~]$ chromium-browser
Warning: Running non-meego graphics system enabled MeeGo touch, forcing native graphicssystem
Debug: Adding Master Pointer: Virtual core pointer ( 2 )
Debug: Skipping non-Touch device: Virtual core XTEST pointer ( 4 )
Debug: Adding ATTACHED touch device: eGalax Inc. USB TouchController ( 9 )
Warning: QGtkStyle was unable to detect the current GTK+ theme.
Debug: void MInputContext::connectToDBus()
Debug: MInputContext: void GlibDBusIMServerProxy::connectToDBus()
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
@ilkka
ilkka / gist:1274940
Created October 10, 2011 09:29
rvm trace for gem install gist
--trace gem install gist
rvm 1.8.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
+__rvm_parse_args:730> [[ -n 4.3.11 ]]
+__rvm_parse_args:753> [[ -z '' && -n '' ]]
+__rvm_parse_args:755> [[ 0 -eq 1 || -n '' ]]
+__rvm_parse_args:20> [[ -n gem ]]
+__rvm_parse_args:22> rvm_token=gem
+__rvm_parse_args:24> (( 2 > 0 ))