Skip to content

Instantly share code, notes, and snippets.

View roderik's full-sized avatar

Roderik van der Veer roderik

View GitHub Profile
<script type="text/javascript">
//<![CDATA[
var mobi = ['opera', 'iemobile', 'webos', 'android', 'blackberry', 'ipad', 'safari'];
var midp = ['blackberry', 'symbian'];
var ua = navigator.userAgent.toLowerCase();
if ((ua.indexOf('midp') != -1) || (ua.indexOf('mobi') != -1) || ((ua.indexOf('ppc') != -1) && (ua.indexOf('mac') == -1)) || (ua.indexOf('webos') != -1)) {
document.write('<link rel="stylesheet" href="${filespath}/tpa-camping/css/allmobile.css" type="text/css" media="all"/>');
if (ua.indexOf('midp') != -1) {
for (var i = 0; i < midp.length; i++) {
if (ua.indexOf(midp[i]) != -1) {
@roderik
roderik / moveToGitHub.bash
Created May 13, 2011 09:24
./moveToGitHub <githuburl>
#! /bin/bash
export $GITHUBURL="$1"
# clean up remote branch list
git fetch origin; git remote prune origin
# delete all local branches except master
git checkout master; git pull; git branch | while read repo; do branch=`echo "$repo" | cut -d" " -f 2`; if [ ! $branch == 'master' ]; then git branch -D $branch; fi; done; git gc
...
[ 31%] [ 31%] Building CXX object sql/CMakeFiles/mysql_tzinfo_to_sql.dir/tztime.cc.o
Generating ../include/mysqld_error.h, ../sql/share/english/errmsg.sys
Linking C executable resolveip
Linking C executable replace
[ 31%] Built target resolveip
[ 31%] Built target replace
/bin/sh: line 1: 36621 Segmentation fault: 11 ./comp_err --charset=/tmp/homebrew-mysql-5.5.12-qakN/mysql-5.5.12/sql/share/charsets --out-dir=/tmp/homebrew-mysql-5.5.12-qakN/mysql-5.5.12/sql/share/ --header_file=/tmp/homebrew-mysql-5.5.12-qakN/mysql-5.5.12/include/mysqld_error.h --name_file=/tmp/homebrew-mysql-5.5.12-qakN/mysql-5.5.12/include/mysqld_ername.h --state_file=/tmp/homebrew-mysql-5.5.12-qakN/mysql-5.5.12/include/sql_state.h --in_file=/tmp/homebrew-mysql-5.5.12-qakN/mysql-5.5.12/sql/share/errmsg-utf8.txt
make[2]: *** [include/mysqld_error.h] Error 139
CC libavcodec/lpc.o
CC libavcodec/lsp.o
CC libavcodec/lzw.o
CC libavcodec/lzwenc.o
CC libavcodec/mace.o
CC libavcodec/mdct_fixed.o
CC libavcodec/mdct_float.o
CC libavcodec/mdec.o
CC libavcodec/mimic.o
CC libavcodec/mjpeg.o
[18:27:42][kmine@uranus ~/data/vendor/plugins/redmine_backlogs](master)$ rake redmine:backlogs:install -v
(in /home/projects/kmine/data)
Testing 1829 issues for database corruption...
100, 0 problems found, (75 issues/second), estimated time remaining: 22s
200, 0 problems found, (82 issues/second), estimated time remaining: 19s
300, 0 problems found, (79 issues/second), estimated time remaining: 19s
400, 0 problems found, (82 issues/second), estimated time remaining: 17s
500, 0 problems found, (79 issues/second), estimated time remaining: 16s
600, 0 problems found, (72 issues/second), estimated time remaining: 16s
700, 0 problems found, (74 issues/second), estimated time remaining: 15s
[18:19:17][kmine@uranus ~/data/vendor/plugins/redmine_backlogs](master)$ rake redmine:backlogs:install --trace
(in /home/projects/kmine/data)
** Invoke redmine:backlogs:install (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:backlogs:install
Testing 1829 issues for database corruption...
100, 0 problems found, (72 issues/second), estimated time remaining: 23s
200, 0 problems found, (79 issues/second), estimated time remaining: 20s
300, 0 problems found, (82 issues/second), estimated time remaining: 18s
[21:21:41][kmine@uranus ~/data/vendor/plugins/redmine_backlogs](master)$ rake redmine:backlogs:install --trace
(in /home/projects/kmine/data)
** Invoke redmine:backlogs:install (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:backlogs:install
Testing 1830 issues for database corruption...
100, 0 problems found, (72 issues/second), estimated time remaining: 23s
200, 0 problems found, (82 issues/second), estimated time remaining: 19s
300, 0 problems found, (81 issues/second), estimated time remaining: 18s
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
Press enter to continue
==> /usr/bin/sudo /bin/chmod o+w /usr/local
==> Downloading and Installing Homebrew...
==> /usr/bin/sudo /bin/chmod o-w /usr/local
==> Installation successful!
@roderik
roderik / .gitignore
Created November 16, 2011 19:45
Symfony2 .gitignore
Model Folder
*.pyc
web/bundles/
app/bootstrap*
app/cache/*
app/logs/*
vendor/
app/config/parameters.ini
.idea
.DS_Store