I hereby claim:
- I am kylef on github.
- I am kylef (https://keybase.io/kylef) on keybase.
- I have a public key whose fingerprint is BB7D D311 C34B 09C9 0FD1 1258 93AB E8C2 33AC D3D5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # Automatically installs swiftenv and run's swiftenv install. | |
| # This script was designed for usage in CI systems. | |
| git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv | |
| export SWIFTENV_ROOT="$HOME/.swiftenv" | |
| export PATH="$SWIFTENV_ROOT/bin:$SWIFTENV_ROOT/shims:$PATH" | |
| if [ -f ".swift-version" ] || [ -n "$SWIFT_VERSION" ]; then | |
| swiftenv install -s |
| import requests | |
| """ | |
| Simple script to delete every dns entry for a cloudflare domain. | |
| Depends on requests (pip install requests). Then fill in the | |
| following three variables: | |
| """ | |
| token = 'INSERT API TOKEN' |
I hereby claim:
To claim this, I am signing this object:
| + (void)load { | |
| /* We want to add our method after the application has finished launching | |
| because that's when the key window should be setup. | |
| We will add a method to that instance. */ | |
| /* | |
| WARNING | |
| This would fail if another object was to key value observe the object | |
| we are going change the class of before we change it. That means before |
| #!/bin/bash | |
| # | |
| ### CocoaPods git-checkout hook | |
| # | |
| # This is a hook which you can install, it will automatically | |
| # run `pod install` when you do a git pull/clone/checkout. | |
| # | |
| # The hook can be used to make CocoaPods usable with Xcode CI. | |
| # | |
| ## Installation |
When reporting any problems, please provide all the information outlined below so we can properly diagnose the problem.
| # This simple python utility crawls the current directory and finds all images. | |
| # It will then search the directory for files using these images and also mark | |
| # any xcode projects which include these images. | |
| # | |
| # Allowing you to easily find images which are no longer used (or even images | |
| # included in xcode and not used). | |
| # | |
| # Usage, cd into your repository and then run: | |
| # | |
| # curl https://gist.github.com/kylef/6316920/raw/images.py -# | python - |
| /* | |
| HTTP Link header parser (http://tools.ietf.org/html/rfc5988) | |
| License: BSD | |
| NSDictionary *links = KFParseRelativeLinks(@"<http://github.com?page=2>; rel=next"); | |
| NSURL *nextURL = links[@"next"]; | |
| */ | |
| NSDictionary *KFParseRelativeLinks(NSString *header) { | |
| NSMutableDictionary *links = [[NSMutableDictionary alloc] init]; |