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
// | |
// Jenkins Job DSL example to create build projects for Bitbucket branches | |
// | |
// Imports | |
import java.text.DateFormat | |
import java.text.SimpleDateFormat | |
import groovy.time.TimeCategory | |
// URL components |
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
Criteria | Daemon | Agent | |
---|---|---|---|
Launch Time | System start | User login | |
User Type | Non-login | Login | |
Home Folder | No | Yes | |
Login Keychain | No | Yes | |
iOS Simulator | No | Yes | |
Provisioning Profiles | No | Yes |
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 Alamofire | |
var keepAlive = true | |
Alamofire.request("http://httpbin.org/get") | |
.responseJSON { response in | |
print(response) // Result of response serialization | |
keepAlive = false | |
} | |
let runLoop = NSRunLoop.currentRunLoop() |
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
# Run this inside Transporter's itms directory. | |
# Patch the trasporter with internal root CA. | |
./java/bin/keytool -import -trustcacerts \ | |
-alias internal-root-ca \ | |
-file ${ROOT_CA_PATH} \ | |
-keystore java/lib/security/cacerts \ | |
-storepass changeit \ | |
-noprompt \ | |
-v |
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
PACKAGE = nsbogan-atlassian-cli | |
VERSION = 3.9.0 | |
RELEASE = 1 | |
ARCH = noarch | |
NSBOGAN_USERNAME = automation | |
NSBOGAN_PASSWORD = automation | |
JAVA_VERSION = 1.6 | |
PACKAGE_URL = https://marketplace.atlassian.com/download/plugins/org.swift.atlassian.cli/version/$(subst .,,${VERSION}) | |
# Source directory |
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 bash | |
XCARCHIVE=$1 | |
APP_DIR=$2 | |
APP_NAME=$(basename "${APP_DIR}") | |
OUT_DIR=$(dirname "$PWD") | |
PBUDDY=/usr/libexec/PlistBuddy | |
# Copy directories into xcarchive | |
mkdir -p "${XCARCHIVE}/BCSymbolMaps" |
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
alias start-bamboo="/Users/bamboo/bamboo/bin/start-babmoo.sh" | |
alias stop-bamboo="/Users/bamboo/bamboo/bin/stop-babmoo.sh" | |
alias restart-bamboo="stop-bamboo & start-bamboo" |
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" 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>Label</key> | |
<string>com.atlassian.bamboo</string> | |
<key>UserName</key> | |
<string>bamboo</string> | |
<key>ProgramArguments</key> |
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 | |
# Fix Objective-C import statements | |
# Replace all system framework imports of #import <Path/Path.h> type with @import Path; | |
# Temp directory | |
TMP_DIR=$(mktemp -dt "XXXXXXXX") | |
# Log | |
log () { |
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
{ | |
Name = "ENABLE_NS_ASSERTIONS"; | |
Type = Boolean; | |
DefaultValue = YES; | |
CommandLineArgs = { | |
YES = (); | |
NO = ("-DNS_BLOCK_ASSERTIONS=1"); | |
}; | |
FileTypes = ( | |
"sourcecode.c.objc", |
NewerOlder