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/sh | |
function main () | |
{ | |
local icon=$HOME/Dropbox/Photos/icons/irssi-icon.png | |
if which growlnotify > /dev/null 2>&1; then | |
growlnotify -w -n Irssi --image $icon -m "$2" "$1" | |
elif which notify-send > /dev/null 2>&1; then | |
notify-send -i $icon "$1" "$2" | |
fi |
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 QuartzCore | |
import OpenGLES | |
extension CAEAGLLayer { | |
func takeSnapshot(from renderBuffer: GLuint? = nil) -> UIImage { | |
var bufferWidth: GLint = 0 | |
var bufferHeight: GLint = 0 | |
if let buffer = renderBuffer { | |
glBindRenderbufferOES(GLenum(GL_RENDERBUFFER_OES), buffer) |
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
<?xml version="1.0" standalone='no'?> | |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
<service-group> | |
<name replace-wildcards="yes">%h</name> | |
<service> | |
<type>_adisk._tcp</type> | |
<txt-record>sys=waMa=0,adVF=0x100</txt-record> | |
<txt-record>dk0=adVN=Time Capsule,adVF=0x82</txt-record> | |
</service> | |
<service> |
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> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |