I hereby claim:
- I am kimar on github.
- I am kimar (https://keybase.io/kimar) on keybase.
- I have a public key whose fingerprint is 96E6 3A93 47F6 0FAC 4235 25E1 76EE 3607 81F7 6609
To claim this, I am signing this object:
#!/usr/bin/xcrun swift | |
import AppKit | |
struct Hello { | |
static func talk () { | |
println("Hello World!") | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
# | |
# File compressor plugin for jekyll | |
# ================================= | |
# | |
# By [mytharcher](https://github.com/mytharcher) | |
# 2012-05-20 | |
# | |
# Updated by [nicoespeon](https://github.com/nicoespeon) | |
# 2013-04-12 | |
# |
var getTargetDir = function() { | |
var now = new Date(); | |
return now.getFullYear() + '-' + MONTHS[now.getMonth()] + '/'; | |
}; |
#!/bin/bash | |
ax=`vnstat --oneline | awk -F ";" '{print $11}'` | |
if [[ "$ax" == *GiB* ]]; | |
then | |
if [ $(echo "$(echo "$ax" | sed 's/ GiB//g') > 999"|bc) -eq 1 ] | |
then | |
shutdown -h now | |
fi | |
fi |
killall "iPhone Simulator"; sleep 2; exit 0; |
/usr/libexec/Plistbuddy -c "Set CFBundleVersion $(git log --pretty=format:'%h' -n 1)" "${PROJECT_DIR}/${INFOPLIST_FILE}" |
if [ $CONFIGURATION == Release ]; then | |
echo "Bumping build number..." | |
plist=${PROJECT_DIR}/${INFOPLIST_FILE} | |
# increment the build number (ie 115 to 116) | |
buildnum=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${plist}") | |
if [[ "${buildnum}" == "" ]]; then | |
echo "No build number in $plist" | |
exit 2 | |
fi |
- (int) availableTcpPort | |
{ | |
struct sockaddr_in addr; | |
socklen_t len = sizeof(addr); | |
addr.sin_port = 0; | |
inet_aton("0.0.0.0", &addr.sin_addr); | |
int sock = socket(AF_INET, SOCK_STREAM, 0); | |
if (sock < 0) { | |
perror("socket()"); | |
return -1; |