Skip to content

Instantly share code, notes, and snippets.

View nterray's full-sized avatar

Nicolas Terray nterray

  • Enalean
  • Grenoble
View GitHub Profile
@nterray
nterray / report_template.html
Created January 21, 2014 20:13
Dirty hack to group activities by categories in hamster (time tracker) exported report. Place this file in ~/.local/share/hamester-applet/ (adjust path accordingly to your distro)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="hamster-applet" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/base/jquery-ui.css" rel="stylesheet" />
@nterray
nterray / email-gateway.php
Created June 25, 2013 16:30
Bootstrap for email gateway
#!/usr/bin/php
<?php
// As of today you have to update the /etc/aliases to add the following line
//
// tuleap-123: "|/path/to/script.php 123"
//
// Where 123 is the id of the artifact.
//
// TODO: use postfix virtual/catchall to prevent having to modify the aliases
// foreach tuples (artifact, user) — see below for the email.
@nterray
nterray / stack_done_cards.user.js
Last active October 14, 2015 00:37
This greasemonkey script enhances the Tuleap Agile Dashboard by stacking cards in the «Done» column of the cardwall. Click on the cell and the cards become unstacked.
// ==UserScript==
// @name stack done cards
// @namespace tuleap
// @description Automatically stacks cards which are on the column «done» of the cardwall (Tuleap Agile Dashboard)
// @include https://tuleap.net/plugins/agiledashboard/*
// @version 1
// @require http://tuleap.net/scripts/prototype/prototype.js
// @grant none
// ==/UserScript==
@nterray
nterray / systray.user.js
Created December 4, 2012 23:12
Greasemonkey script to add a systray at the bottom of Tuleap in order to have a shortcut to the agile dashboard of the current project.
// ==UserScript==
// @name systray
// @namespace tuleap
// @include http://tuleap.net/*
// @include https://tuleap.net/*
// @version 2
// @grant none
// @require http://tuleap.net/scripts/prototype/prototype.js
// ==/UserScript==
function addCss(cssString) {
@nterray
nterray / gist:3302784
Created August 9, 2012 09:52
Outer Glow effect based on script.aculo.us Effect.Highlight
Effect.OuterGlow = Class.create(Effect.Highlight, {
setup: function() {
// Prevent executing on elements not in the layout flow
if (this.element.getStyle('display')=='none') { this.cancel(); return; }
this.oldStyle = { boxShadow: this.element.getStyle('box-shadow') };
},
update: function(position) {
this.element.setStyle({ boxShadow: '0px 0px ' + Math.round(30 - 30 * position) + 'px ' + this.options.startcolor });
},
finish: function() {
@nterray
nterray / tuleap_viewvc_fix.user.js
Created November 28, 2011 16:24
Greasemonkey script to temporary fix viewvc color issues on Tuleap
// ==UserScript==
// @name Tuleap viewvc fix
// @namespace https://tuleap.net/
// @include https://tuleap.net/*
// @include http://tuleap.net/*
// @include https://*.tuleap.net/*
// @include http://*.tuleap.net/*
// ==/UserScript==
var fileref = document.createElement("link");