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
namespace :mongo do | |
def db_name | |
Mongoid.database.name | |
end | |
def db_connection_options | |
host, port = Mongoid.database.connection.host_to_try | |
auths = Mongoid.database.connection.auths |
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
#!/bin/bash | |
set -e | |
cd ~/ | |
wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.65.tar.gz | |
tar -zxf mysql-5.1.65.tar.gz | |
cd mysql-5.1.65 | |
./configure '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-fast-mutexes' '--with-big-tables' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--without-readline' '--with-ssl' '--without-docs' '--with-extra-charsets=all' '--with-plugins=max' '--with-embedded-server' '--with-embedded-privilege-control' | |
make |
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
curl -b cookies.txt -c cookies.txt -X POST -F "name=local" -F "description=local dev" -F "pretty_json=true" "http://api-local.cloud.appcelerator.com/v1/admins/apps" | |
{ | |
"meta": { | |
"code": 200, | |
"status": "ok", | |
"method_name": "createApp" | |
}, | |
"response": { | |
"apps": [ |
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
curl -b cookies.txt -c cookies.txt -X PUT -F "description=test-3" "http://api-local.cloud.appcelerator.com/v1/admins/apps?key=xAP777Rw7uOSlOyRwW7F1BgqBJCsP9S9&pretty_json=true" | |
{ | |
"meta": { | |
"code": 200, | |
"status": "ok", | |
"method_name": "updateApp" | |
}, | |
"response": { | |
"apps": [ |
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
curl -b cookies.txt -c cookies.txt -X DELETE "http://api-local.cloud.appcelerator.com/v1/admins/apps?app_id=54754cd2dda0950809000004&pretty_json=true" | |
{ | |
"meta": { | |
"status": "ok", | |
"code": 200, | |
"method_name": "deleteApp" | |
} | |
} |
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
curl -b cookies.txt -c cookies.txt -X DELETE "http://api-local.cloud.appcelerator.com/v1/admins/apps?app_id=54754cd2dda0950809000004&pretty_json=true" | |
{ | |
"meta": { | |
"status": "ok", | |
"code": 200, | |
"method_name": "deleteApp" | |
} | |
} |
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
curl -b cookies.txt -c cookies.txt -X DELETE "http://api-local.cloud.appcelerator.com/v1/admins/apps/data?app_id=54754cd2dda0950809000004&pretty_json=true" | |
{ | |
"meta": { | |
"status": "ok", | |
"code": 200, | |
"method_name": "deleteAppData" | |
} | |
} |
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
curl -b cookies.txt -c cookies.txt -X PUT -F "certificate_dev=@aps_development.cer" "http://api-local.cloud.appcelerator.com/v1/admins/apps/apple/certs?key=xAP777Rw7uOSlOyRwW7F1BgqBJCsP9S9&pretty_json=true" | |
{ | |
"meta": { | |
"code": 400, | |
"status": "fail", | |
"message": "Error: Fail to verify certificate file: aps_development.cer. Please make sure the password is correct.", | |
"method_name": "setApplePushCertificate" | |
} | |
} |
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
curl -b cookies.txt -c cookies.txt -X DELETE "http://api-local.cloud.appcelerator.com/v1/admins/apps/apple/certis?key=xAP777Rw7uOSlOyRwW7F1BgqBJCsP9S9&pretty_json=true" | |
{ | |
"meta": { | |
"code": 400, | |
"status": "fail", | |
"message": "There is no certificate to remove.", | |
"method_name": "removeApplePushCertificate" | |
} | |
} |
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
curl -X PUT -F 'android_gcm_sender_id=****' -F 'android_gcm_apikey=*******-kCwc' "http://api-local.cloud.appcelerator.com/v1/admins/apps/android/certs?key=xAP777Rw7uOSlOyRwW7F1BgqBJCsP9S9&pretty_json=true&_session_id=9mtn8gbx92eY7LpRzQ1iV2YZjGA" | |
{ | |
"meta": { | |
"code": 200, | |
"status": "ok", | |
"method_name": "setAndroidPushCertificates" | |
}, | |
"response": { |
OlderNewer