Skip to content

Instantly share code, notes, and snippets.

View dspramod's full-sized avatar
🐢
Learning

Pramod Singh dspramod

🐢
Learning
View GitHub Profile
sudo -i
/opt/aws/opsworks/current/bin/chef-zero &
cd /var/chef/runs/*/
opsworks-agent-cli get_json > attributes.json
/opt/aws/opsworks/current/bin/chef-shell -c client.rb -j attributes.json -z -S http://localhost:8889
@lbrenman
lbrenman / ACS.js
Last active January 18, 2017 13:46
Appcelerator Titanium, Appcelerator mBaaS, Raspberry Pi - Full Stack JavaScript iOT Example to use mobile app to control RPi through mBaaS
var Cloud = require('ti.cloud');
exports.ACSLogin = function(u,p,o){
Ti.API.debug("ACS: ACSLogin()");
if(Titanium.Network.networkType == Titanium.Network.NETWORK_NONE){
alert("No Network. Please try again later.");
if (o.error) { o.error("ACSLogin(): No Network"); };
return;
}