This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript"><!-- | |
var mailadrfoo="flo"; | |
var maildomfoo="noqqe.de"; | |
var mailarg=""; | |
document.write('<a href="mailto:'+mailadrfoo+'@'+maildomfoo+mailarg+'">'+mailadrfoo+'@'+maildomfoo+'</a>'); | |
//--> | |
</script> | |
<noscript>name&nbsp;[at]&nbsp;domain&nbsp;[dot]&nbsp;com</noscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get a quick overview for your git repo | |
function git_info() { | |
if [ -n "$(git symbolic-ref HEAD 2> /dev/null)" ]; then | |
# print informations | |
echo "git repo overview" | |
echo "-----------------" | |
echo | |
# print all remotes and thier details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# post-recieve hook for redmine git repos | |
# clone git repo to redmine directory | |
# Copyright: (C) 2010 Florian Baumann <flo@noqqe.de> | |
# License: GPL-3 <http://www.gnu.org/licenses/gpl-3.0.txt> | |
# Date: Thursday 2010-11-26 | |
# print some informations for user | |
echo "running post-receive hook..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# change to directory | |
cd %%d | |
# create pdf from .tex | |
/usr/texbin/pdflatex --output-directory %%d %%p | |
# get name | |
tex=%%p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WORDCOUNT="$#" | |
SENTENCE="$*" | |
NUMBER="0" | |
for x in $SENTENCE ; do | |
NUMBER=$(($RANDOM % $WORDCOUNT + 1)) | |
while [ ! -z ${ARRAY[$NUMBER]} ]; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# demo of http://github.com/noqqe/statistical | |
# git author visualization | |
# author commits getting by https://github.com/esc/git-stats | |
for a in $(git shortlog -sn --all | cut -f2 | cut -f1 -d' '); | |
do | |
echo -n "$a:" | |
git log $LOGOPTS --all --numstat --format="%n" --author=$a | cut -f3 | sort -iu | wc -l | |
done | statistical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time for x in $(seq 1 6000); do echo "$x:$RANDOM" ; done | statistical | |
1 |#################### (21371) | |
2 |### (4322) | |
[...] | |
5995 |#################### (21371) | |
5996 |##################### (22318) | |
5997 |### (4428) | |
5998 |##### (6213) | |
5999 |########################### (28519) | |
6000 |###################### (23328) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/statistical b/statistical | |
index 50f443c..17423b3 100755 | |
--- a/statistical | |
+++ b/statistical | |
@@ -20,11 +20,11 @@ fi | |
for data in $SUM; do | |
# Getting informations from parameters | |
- KEY=$(echo $data | awk -F: '{printf $1}') | |
- VALUE=$(echo $data | awk -F: '{print $2}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./rt-stats | |
RequestTracker-Stats April 2011 | |
=================================================== | |
Resolved ticket statistic for this month (April) | |
--------------------------------------------------- | |
Tracy |##################### (22) | |
Amelie |##################### (22) | |
Kiri |############ (13) | |
Tersina |########## (11) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
### General R-Script | |
# MySQL | |
library(RMySQL) | |
con <- dbConnect(MySQL(), user="", password="", host="", client.flag=CLIENT_MULTI_RESULTS) | |
# Style | |
zre_colors <- colors()[grep("green",colors())] | |
zre_mint <- colors()[c(48,86,50)] |