Skip to content

Instantly share code, notes, and snippets.

View stefanjenkner's full-sized avatar
✌️

Stefan Jenkner stefanjenkner

✌️
View GitHub Profile
@jasoncodes
jasoncodes / Apple Terminal.itermcolors
Created May 11, 2011 23:18
iTerm colours that resemble Apple's Terminal.app defaults
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
@ravasthi
ravasthi / wicket-radio-01.html
Created October 24, 2011 18:37
Radio buttons in Wicket
<input type="radio" name="ticker" value="AAPL"/>Apple<br/>
<input type="radio" name="ticker" value="GOOG"/>Google<br/>
<input type="radio" name="ticker" value="MSFT"/>Microsoft<br/>
@mattbrictson
mattbrictson / 01-first_cut.html
Last active June 17, 2018 23:04
How to Implement Radio Buttons in Wicket
<input type="radio" name="ticker" value="AAPL"/>Apple<br/>
<input type="radio" name="ticker" value="GOOG"/>Google<br/>
<input type="radio" name="ticker" value="MSFT"/>Microsoft<br/>
@rodjek
rodjek / command.pp
Created January 16, 2012 06:29
augeas nrpe command editor
define nrpe::command($command, $ensure='present') {
Augeas {
context => '/files/etc/nrpe.cfg',
}
case $ensure {
absent,present: {}
default: {
fail("Invalid ensure value passed to Nrpe::Command[$name]")
}
@g3d
g3d / gist:2709563
Last active February 7, 2024 15:21 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
@adamgit
adamgit / .gitignore
Last active June 2, 2024 09:58
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@kevinold
kevinold / .ackrc
Created February 10, 2013 13:54 — forked from hernamesbarbara/.ackrc
#ack is a tool like grep, designed for programmers with large trees of heterogeneous source code
#to install ack, see http://betterthangrep.com/
#to use ack, launch terminal (mac osx) and type 'ack <some_keywords>'
#ack will search all files in the current directory & sub-directories
#here's how I have my config file setup. this file is located on mac osx here
# ~/.ackrc
# Always sort the files
@ficusk
ficusk / GsonRequest.java
Last active April 9, 2024 09:03
A Volley adapter for JSON requests that will be parsed into Java objects by Gson.
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
@magomi
magomi / setAdium
Created June 18, 2013 09:31
change adium status
tell application "AppleScript Runner"
set temp to display dialog "new status" default answer "away, ..."
end tell
set newStat to the text returned of temp
set AppleScript's text item delimiters to {","}
set statusType to the first text item of newStat
set statusMessage to the second text item of newStat
tell application "Adium"
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//link[@rel='import']">
<xsl:copy-of select="document(@href)" />
</xsl:template>
</xsl:stylesheet>