Skip to content

Instantly share code, notes, and snippets.

View jayproulx's full-sized avatar
🎯
Focusing

Jay Proulx jayproulx

🎯
Focusing
View GitHub Profile
Note 1: The following CQ curl commands assumes a admin:admin username and password.
Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command.
Example: -F"":operation=delete""
Note 3: Quotes around name of package (or name of zip file, or jar) should be included.
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console)
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle"
Install a bundle
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F
.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,
@jayproulx
jayproulx / gist:2287355
Created April 2, 2012 21:28 — forked from shazron/gist:2238079
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
@jayproulx
jayproulx / hideaddrbar.js
Created February 1, 2012 15:57 — forked from scottjehl/hideaddrbar.js
Normalized hide address bar for iOS & Android
/*
* Normalized hide address bar for iOS & Android
* (c) Scott Jehl, scottjehl.com
* MIT License
*/
(function( win ){
var doc = win.document;
// If there's a hash, or addEventListener is undefined, stop here
if( !location.hash && win.addEventListener ){