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 | |
BG_RED=`tput setaf 1` | |
BG_GREEN=`tput setaf 2` | |
BOLD=`tput bold` | |
RESET=`tput sgr0` | |
EMACS='/Applications/Emacs.app' | |
EMACS_CLIENT='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient' | |
DEFAULT_EVAL='(switch-to-buffer "*scratch*")' |
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
compiler-check: match-exact | |
resolver: lts-7.10 | |
compiler: ghc-8.0.1.20161117 | |
setup-info: | |
ghc: | |
linux64: | |
8.0.1.20161117: | |
url: http://downloads.haskell.org/~ghc/8.0.2-rc1/ghc-8.0.1.20161117-x86_64-deb8-linux.tar.xz | |
content-length: 112047972 | |
sha1: 6a6e4c9c53c71cc84b6966a9f61948542fd2f15a |
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 assumes WAN is eth0 and LAN is switch0. Please adjust for your own setup | |
configure | |
# Tunnel first | |
edit interfaces tunnel tun0 | |
set encapsulation sit | |
set local-ip xxx.xxx.xxx.xxx # your WAN IP | |
set remote-ip xxx.xxx.xxx.xxx # HE.net Server IPv4 Address | |
set address xxxx:xxxx:xxxx:xxxx::2/64 # Client IPv6 Address |
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
// Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
// Licensed under MIT (http://opensource.org/licenses/MIT) | |
// | |
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
// PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
#import <objc/runtime.h> | |
#import <objc/message.h> |
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
/** | |
EXTNull | |
Experimental | |
EXTNull is a subclass of NSNull that acts more like nil. | |
Calling unrecognized methods on EXTNull *will not* throw | |
a NSInvalidArgumentException but again return EXTNull. | |
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 | |
# This script automatically sets the version and short version string of | |
# an Xcode project from the Git repository containing the project. | |
# | |
# - Uses version from latest git tag for CFBundleShortVersionString | |
# (e.g. 1.2.3 from "v1.2.3") | |
# - Uses combined string <commit number>.<short commit hash> for CFBundleVersion | |
# (e.g. 18.9d75e30) | |
# |
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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
require 'formula' | |
class Emacs < Formula | |
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.bz2' | |
md5 'f2cf8dc6f28f8ae59bc695b4ddda339c' | |
homepage 'http://www.gnu.org/software/emacs/' | |
if ARGV.include? "--use-git-head" | |
head 'git://repo.or.cz/emacs.git' | |
else |