LATEST_SIMULATOR_SDK=$(xcodebuild -showsdks | grep "Simulator - iOS" | grep -o '\d*\.\d*' | head -n 1)
This will allow Jenkins to run windowed processes like the iOS Simulator. Stop the Jenkins service and move to launch agents:
#!/bin/bash | |
# Set automatic network proxies in System Preferences | |
# The specified proxy url below will be set for both the Ethernet and Wi-Fi interfaces | |
PROXY_URL="http://www.example.com/proxy.js" #automatic-proxy url | |
########### | |
LISTED_NETWORK_SERVICES=$(networksetup -listallnetworkservices | sed '/An asterisk ([*]) denotes that a network service is disabled./d; s/^[*]//') | |
IFS=$'\n' SERVICES=($LISTED_NETWORK_SERVICES) #Separate string into array of services |
#!/bin/bash | |
# Sets up and configured Git to work with an enterprise proxy for | |
# cloning submodules through the git/https protocol. Tunnels all git | |
# traffic through the proxy to allow for these commands. | |
#Set proxies: | |
http_proxy="proxy.example.com:83" | |
http_proxy_port="83" #specifically specify the port only | |
https_proxy="proxy.example.com:83" |
#!/usr/bin/ruby | |
# | |
# Usage: | |
# ./{program} {filepath} {provisioning profile} | |
# Example: ./{program} path/to/project/myapp.xcodeproj EB75C687-2F3E-4D57-B895-0F515DA178CC | |
# | |
require 'xcodeproj' | |
project_path = ARGV[0] |
#!/bin/bash | |
# Problem : OSX in VMWare displays at too high a resolution | |
# Fix : Enable custom resolution setting for a screen size in perferences | |
# | |
# Run this script to turn on display settings in system preferences to allow OSX in VMWare to display | |
# at a proper resolution for the screensize | |
sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true | |
echo "Reboot this VM and select the proper display setting in System Preferences." |
// | |
// Logging.swift | |
// JCLogging-Swift | |
// | |
// Created by Cardasis, Jonathan (J.) on 8/29/16. | |
// Copyright © 2016 Jonathan Cardasis. All rights reserved. | |
// | |
import Foundation |
#!/bin/bash | |
# This program configures your ssh configuration file to | |
# allow all ssh traffic to pass though a specified proxy. | |
#Install corkscrew - Enables TCP traffic through a proxy | |
brew install corkscrew | |
#Ensure corkscrew was installed | |
hash corkscrew 2>/dev/null || { echo >&2 "corkscrew was not properly installed from homebrew. Ensure it is properly linked."; exit 1; } |
extension String{ | |
private func min(numbers: Int...) -> Int { | |
return numbers.reduce(numbers[0], {$0 < $1 ? $0 : $1}) | |
} | |
func distanceFrom(string: String) -> Int{ | |
let x = Array(self.utf16) //convert to a unicode 16 format for comparison | |
let y = Array(string.utf16) | |
//Create the Levenshtein 2d matrix, which has an extra preceeding row and column |
LATEST_SIMULATOR_SDK=$(xcodebuild -showsdks | grep "Simulator - iOS" | grep -o '\d*\.\d*' | head -n 1)
This will allow Jenkins to run windowed processes like the iOS Simulator. Stop the Jenkins service and move to launch agents:
This will rewrite the branch's commit history and is useful for combining users if two emails were used for a single user at any point.
Note: Since this edits all history, everyone will need to re-clone the repo in order to get the correct history on their local machines.
A list of users who committed can be viewed via git shortlog -s -n
.
$ git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "jonViaDesktop@localhost" ];
then