This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#read cron command into temporary file | |
echo "0 2 * * * . /opt/elasticbeanstalk/support/envvars; /var/app/current/path/to/command" > /tmp/mycron | |
#install new cron file | |
crontab /tmp/mycron | |
#delete unwanted mycron file | |
rm /tmp/mycron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(function(req, res, next) { | |
res.header("Access-Control-Allow-Origin", "*"); | |
next(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSURLRequest (ServiceClient) | |
+ (BOOL) allowsAnyHTTPSCertificateForHost:(NSString *) host | |
{ | |
return YES; | |
} | |
@end |