Skip to content

Instantly share code, notes, and snippets.

:: This script downloads and builds QtCore and QtXML libraries only on Win ::
wget ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.3.tar.gz
7za x -y qt-everywhere-opensource-src-4.6.3.tar.gz
del qt-everywhere-opensource-src-4.6.3.tar.gz
7za x -y qt-everywhere-opensource-src-4.6.3.tar
del qt-everywhere-opensource-src-4.6.3.tar
cd qt-everywhere-opensource-src-4.6.3
wget ftp://ftp.qt.nokia.com/jom/jom093.zip
7za x -y jom093.zip
del jom093.zip
echo y | configure.exe -opensource -qt-sql-oci -I "%cd%/../instantclient_11_1/sdk/include" -L "%cd%/../instantclient_11_1/sdk/lib/msvc"
jom sub-tools-bootstrap sub-moc sub-rcc sub-uic sub-corelib sub-xml sub-network sub-gui sub-sql sub-opengl sub-xmlpatterns sub-tools
exec cmake $@ -DCMAKE_CMD_ARGS:STRING="${@}"
import os, glob, errno, sys, time
if os.name == 'nt':
# Eingabepfad
path = '.\\'
# Ausgabepfad
outPath = path + 'out\\'
else:
path = './'
outPath = path + 'out/'
#!/usr/bin/env python
import os, glob, errno, sys, time, re
if len(sys.argv) > 1:
fin_filename = sys.argv[1]
else:
fin_filename = 'druck_orig.txt'
@bilke
bilke / makefile_mod.vc
Created July 18, 2011 06:10
libgeotiff-1.3.0 Makefile for NMake
#
# Typically the only thing that needs to be changed are the paths to the
# TIFF tree. Note that we expect an existing build tree, in part because we
# need private include files from libtiff, but also we need access to getopt.h.
# in the ports directory.
#
# You may want to add optimization options to the CFLAGS macro as well.
#
# This should point to an installed vtk
@bilke
bilke / gitsync
Created December 20, 2011 10:40
Git to/from SVN sync on vismac02 Gitorious (cron jobs)
#!/bin/bash
cd ~/repos > /dev/null 2>&1
cd ogs_sources_svn > /dev/null 2>&1
REBASE_OUTPUT=`git svn rebase` > /dev/null 2>&1
if [ "$REBASE_OUTPUT" != 'is up to date' ]; then
exit 0
fi
cd ../ogs_sources > /dev/null 2>&1
@bilke
bilke / Xcode-PeepOpen.applescript
Created February 26, 2012 12:53
Xcode 4.x PeepOpen applescript
tell application "Xcode"
tell front project
-- The project root
set root_group to root group
-- The first folder in the project root
-- (Sources folder in CMake generated projects)
set first_item to first item reference of root_group
-- Get the file path
set my_sources_path to full path of first_item
-- Open with peepopen
@bilke
bilke / gist:3454632
Created August 24, 2012 19:19
A Gist test
cd mywebsite
git clone git://github.com/twitter/bootstrap.git