diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`
where XXXXX
is the size of the RAM disk in terms of memory blocks.
Notes:
// The trick is to link the DeviceSupport folder from the beta to the stable version. | |
// Updated on Mar 31th, 2019 for Xcode 10.2 | |
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.2\ \(16E226\) /Applications/Xcode_10.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport | |
// Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions | |
// sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :) |
<macrodef name="snapshot" description="Snapshots all metadata in an organization - Revision 21"> | |
<attribute name="username" /> | |
<attribute name="password" /> | |
<attribute name="serverurl" default="https://login.salesforce.com" /> | |
<attribute name="outPath" default="temp/snapshot" description="Directory to write snapshot." /> | |
<sequential> | |
<!-- prompt user to confirm --> |
<macrodef name="execanon" description="Executes apex code in an organization - Revision 7"> | |
<text name="apexcode" /> | |
<attribute name="username" /> | |
<attribute name="password" /> | |
<attribute name="serverurl" default="https://login.salesforce.com" /> | |
<attribute name="apiVersion" default="44.0" /> | |
<sequential> |
<macrodef name="destroy" description="Destroys all metadata in an organization - Revision 23"> | |
<attribute name="username" /> | |
<attribute name="password" /> | |
<attribute name="serverurl" default="https://login.salesforce.com" /> | |
<attribute name="tempDir" default="temp/destroy" description="Directory to write metadata." /> | |
<attribute name="apiVersion" default="43.0" /> | |
<sequential> |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |