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
<!DOCTYPE html> | |
<style type="text/css"> | |
p.clear { | |
clear:both; | |
} | |
</style> | |
<div style="float: left;"> | |
<img class="newsPhoto" src="http://www.iphoneplatform.nl/upload/1238413896apple-logo-black-xsan.jpg" width="250" height="100"> | |
<br> | |
<img src="http://www.iphoneplatform.nl/upload/1238413896apple-logo-black-xsan.jpg" width="60" height="60"> |
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 java.util.Calendar; | |
public class JavaDay { | |
public static void main(String[] args) { | |
Calendar date = Calendar.getInstance(); | |
date.set(2012, 6, 28); | |
System.out.println(date.getTime() + " is Java Day, a day where everybody speaks in Java."); | |
System.out.println("Why? Just because we can.\n"); |
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 python | |
# By Mark Janssen, | |
# Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License | |
from xml.dom import minidom | |
from math import ceil | |
from collections import deque | |
from subprocess import call | |
from tempfile import mkdtemp |
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
C (GCC 4.7.2): | |
gcc -g -Wall -O2 -std=gnu99 -static -pipe -o $DEST "$@" -lm | |
C++: | |
g++ -g -Wall -O2 -std=gnu++98 -static -pipe -o $DEST "$@" | |
C++11: | |
g++ -g -Wall -O2 -std=c++11 -static -pipe -o $DEST "$@" | |
Java 7: | |
Compileren: javac -encoding UTF-8 -d . "$@" | |
Runtime: java -Xrs -Xss8m -Xmx1721440k $MAINCLASS |
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 python | |
# -*- coding: utf-8 -*- | |
# a last.fm now playing script originally written by Brandon Sutton | |
# some modifications by lifning | |
# and more modifications by praseodym | |
import urllib2 | |
import sys |
This file has been truncated, but you can view the full file.
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
~ % brew install -v qt 2>&1 | |
==> Downloading http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/qt-4.8.5.tar.gz | |
tar xf /Library/Caches/Homebrew/qt-4.8.5.tar.gz | |
==> ./configure -prefix /usr/local/Cellar/qt/4.8.5 -system-zlib -confirm-license -opensource -nomake demos -nomake examples -cocoa -fast -release -no-3dnow -no-ssse3 -L/opt/X11/lib -I/opt/X11/include -platform unsupported/macx-clang -no-qt3support -nomake docs -arch x86_64 | |
./configure -prefix /usr/local/Cellar/qt/4.8.5 -system-zlib -confirm-license -opensource -nomake demos -nomake examples -cocoa -fast -release -no-3dnow -no-ssse3 -L/opt/X11/lib -I/opt/X11/include -platform unsupported/macx-clang -no-qt3support -nomake docs -arch x86_64 | |
This is the Qt for Mac OS X Open Source Edition. | |
You are licensed to use this software under the terms of |
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
# The application is signed using a broken signature: | |
codesign -vvvv YourKit_Java_Profiler_12.0.6.app | |
# YourKit_Java_Profiler_12.0.6.app: invalid Info.plist (plist or signature have been modified) | |
# In architecture: x86_64 | |
# Get a clean copy of the JavaApplicationStub | |
cp /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub YourKit_Java_Profiler_12.0.6.app/Contents/MacOS/JavaApplicationStub | |
# Unsign it using the script from http://snipt.org/kto/ (linked from http://lists.apple.com/archives/java-dev/2012/Jul/msg00136.html) | |
unsign_snipt.rb YourKit_Java_Profiler_12.0.6.app/Contents/MacOS/JavaApplicationStub |
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
<?php | |
/** | |
* Clears header field to avoid injection | |
* http://www.anders.com/projects/sysadmin/formPostHijacking/ | |
* http://www.davidseah.com/archives/2005/09/01/wp-contact-form-spam-attack/ | |
*/ | |
function preprocessHeaderField($value) { | |
//Remove line feeds |
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 python | |
""" Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: | |
* http://en.wikipedia.org/wiki/8-bit_color | |
* http://en.wikipedia.org/wiki/ANSI_escape_code |
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 | |
# csr.sh: Certificate Signing Request Generator | |
set -e | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 hostname [alt.hostname1] [alt.hostname2]" | |
exit 1 | |
fi |
OlderNewer