Downgrading Subversion from 1.8 to 1.7 in MacPorts
Snippets . Toolingbash-3.2# cd /tmp bash-3.2# svn co http://svn.macports.org/repository/macports/trunk/dports/devel/subversion –revision 108493 A subversion/files A subversion/files/patch-Makefile.in.diff A subversion/files/patch-osx_unicode_precomp.diff A subversion/files/config_impl.h.patch A subversion/files/servers.default A subversion/Portfile Ausgecheckt, Revision 108493. bash-3.2# cd subversion/ bash-3.2# port install —> Computing dependencies for subversion —> Fetching archive for subversion —> Attempting to fetch subversion-1.7.10_1.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/subversion —> Attempting to fetch subversion-1.7.10_1.darwin_12.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/sites/packages.macports.org/subversion …
Nice Vagrant Script for setting up a LDAP VM for Testing
Snippets . TestingI found a nice Setup Script at https://github.com/gschueler/vagrant-rundeck-ldap for creating a working LDAP VM with a basic vagrant up You just need to do some more steps before: make sure you have installed Version 4.2.12 of Virtualbox! (the latest version – 4.2.14 – breaks vagrant) get your vagrant setup from here download the necessary ubuntu
Command to Print Out Directory Tree Listing
Bash . Snippetsls -R | grep “:$” | sed -e ‘s/:$//’ -e ‘s/[^-][^\/]*\//–/g’ -e ‘s/^/ /’ -e ‘s/-/|/’ Found here
Hacking just for Fun: using Bookmarklets
Hacking . Javascript . Play! Framework . SnippetsSo there are a handful of webtools using Bookmarklets for their services. The first i know was del.icio.us for saving a Webpage to your del.icio.us bookmarks. Another famous service is Instapaper (it uses internally read it later pocket, but that is another Story). I have a special service in mind, i want to create using
Hacking just for Fun: Raid5 in Java
Hacking . Java . SnippetsI was just curious how easy it might be to write a RAID5 compatible Outputstream in Java? Just a few Lines. For sure it is not the most elegante solution. Especially if you see the nice possibility to integrate one Outputstream within another… so maybe two Raid5s into one Raid0 Stream? (would be RAID50) then.
Run local/remote terminal commands with java using ssh
Java . Network . Play! Framework . SnippetsSometimes you need to use some CLI-Tools before you want to create or search for a native JNI Binding. So there is a common way, using the Java Process-Class. But then you might meet two problems i had to face in the past during several problems: There are (a really small) number of CLI-Tools, that
Mass Conversion of different video files with handbreak-CLI
Snippets . TechI am currently converting all my videos to a fixed format using handbrake. If you have a lot of videos to convert, the UI version of handbrake is not always the best solution. Handbrake offers a CLI, sometimes you it needs to be installed separately. It has a lot of options ( https://trac.handbrake.fr/wiki/CLIGuide ). So
setup your public SSH key to another UNIX Host
Security . SnippetsNormally you would prefer to use your public ssh key for login into a remote linux machine. I created a script to perform the basic steps for inserting your public key into the hosts authorized_keys files. The script looks like this: #!/bin/bash HOST=$1; echo “>> setup your ssh keys for $HOST” echo “” echo “>>
Preparation for counter update
PHP . Snippets . TechSo after a long time i plan to give my counter-engine (^^) an update. The main Problem is, that the counter itself was perfect for ~2000 counts. But now with 5000 count, the presentation of the results is just not readable anymore. So i plan the following things to do during the next days (i
Nexenta CP 2 RC1 & Java 6
NAS . nexenta . Snippetsroot@sunny:/tank/home# apt-get install sun-java6-jre root@sunny:/tank/home# java -version dl failure on line 685Error: failed /usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/i386/client/libjvm.so, because ld.so.1: java: fatal: libCrun.so.1: open failed: No such file or directory root@sunny:/tank/home# apt-get install sunwlibc root@sunny:/tank/home# java -version java version “1.6.0_10” Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode)