Skip to content

Instantly share code, notes, and snippets.

@kennbrodhagen
kennbrodhagen / launch.rb
Created January 27, 2013 22:55
calabash-cucumber launch.rb that will not restart the iOS Simulator for each scenario but still restart the app itself each time.
########################################
# #
# Important Note #
# #
# When running calabash-ios tests at #
# www.lesspainful.com #
# this file will be overwritten by #
# a file which automates #
# app launch on devices. #
# #
@pyrtsa
pyrtsa / throttle-SourceKitService
Created July 26, 2016 07:46
Script to keep SourceKitService from eating up all OS resources
#!/bin/bash
limit="${1-10000000}";
echo "Keeping SourceKitService below $limit KiB of virtual memory."
echo "Hit ^C to quit."
while true; do
sleep 1;
p=`pgrep ^SourceKitService$`
if [ -n "$p" ]; then
vsz=`ps -o vsz -p "$p" | tail -1`