Skip to content

Instantly share code, notes, and snippets.

View jayproulx's full-sized avatar
🎯
Focusing

Jay Proulx jayproulx

🎯
Focusing
View GitHub Profile
@agentsim
agentsim / highsierra_bootable.sh
Created June 10, 2017 02:23
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
@shazron
shazron / gist:2238079
Created March 29, 2012 14:43
PhoneGap 1.4.1 hack to load external url - override in MainViewController.m
// 0. Override these in your MainViewController.m
// 1. your .startPage is http://www.google.com for example, set in your AppDelegate.m
// 2. don't forget to add that url in your whitelist
static BOOL isExternalUrlHack = NO;
- (NSString*) pathForResource:(NSString*)resourcepath;
{
if ([self.startPage isEqualToString:resourcepath] && [self.startPage hasPrefix:@"http://"]) {
isExternalUrlHack = YES;
// return non-nil so it doesn't fail
// someResponse.amf3 is a data file saved from Charles, ServiceCapture, etc.
// embedded in a class for easy access
[Embed( source="data/someResponse.amf3", mimeType="application/octet-stream" )]
public static const savedCallResponse:Class;