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
<html> | |
<head> | |
<style type="text/css"> | |
table table { | |
width: 600px !important; | |
} | |
table div + div { /* main content */ | |
width: 65%; | |
float: left; | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
./configure --prefix=/usr --with-compiledby="Thomas Eichberger" --with-features=huge --enable-rubyinterp --enable-pythoninterp --disable-darwin --enable-fontset --enable-gui=gnome2 -with-x && make && make install && vim --version |
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/python | |
import urllib2, sys | |
class NexusDownloader: | |
'''Simple class for downloading artifacts from a private Nexus repository.''' | |
nexus = 'http://nexus.aaa.com/nexus/service/local/artifact/maven/redirect?' |
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 | |
# | |
# Setup script for a new | |
# | |
# Software Configuration Server | |
# | |
# with: | |
# - a Puppet server | |
# - including my Puppet modules | |
# - a Git repository |
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
git add -A . | |
git commit | |
git push --tags -u origin master |
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
public static final void setupPLAF() | |
{ | |
Options.setUseNarrowButtons( false ); | |
PlasticLookAndFeel.setHighContrastFocusColorsEnabled( true ); | |
PlasticLookAndFeel.setPlasticTheme( new SkyYellow() ); | |
try | |
{ |
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
import com.sun.image.codec.jpeg.*; | |
... | |
public static void saveImageToFile( BufferedImage image, File file ) | |
throws IOException | |
{ | |
if ( image == null || file == null ) return; | |
file.delete(); |
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
/** | |
* This method calls the given function. | |
* <p> | |
* This method can be used to do something within the database without thinking about opening and closing a database connection. | |
* <p> | |
* First it opens a database connection, if none is open. | |
* Then it calls the given function. | |
* Finally it closes the database connection, if one is open. | |
* <p> | |
* If an exception is thrown within the given function, this method re-throws it. |
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
############################################################################################### | |
# Ctrl-A as prefix key | |
############################################################################################### | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key a send-prefix | |
############################################################################################### | |
start-server |
NewerOlder