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
import json | |
import requests | |
url = "<<instanceurl>>/rest/v10/oauth2/token" | |
payload = {"grant_type":"password","username":"<<username>>","password":"<<password>>","client_id":"sugar"} | |
r = requests.post(url, data=json.dumps(payload)) | |
response = json.loads(r.text) |
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
# this works | |
it { should \ | |
contain_file("/etc/httpd/vhosts.d/#{t}.sjc.sugarcrm.pvt.conf")\ | |
.with_content(/ServerName #{t}.sjc.sugarcrm.pvt/) } | |
# this ignores the argument and tests for an empty file | |
it { should \ | |
contain_file("/etc/httpd/vhosts.d/#{t}.sjc.sugarcrm.pvt.conf")\ | |
.without_content(/VirtualHost \*:443/) } |
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
this.loadAccessToken = function(pService) | |
{ | |
Ti.API.debug('Loading access token for service [' + pService + '].'); | |
try | |
{ | |
var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirect | |
ory, pService + '.config'); | |
} | |
catch(ex) |
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
[DEBUG] [6,22944] Loading access token for service [twitter]. | |
[TRACE] D/dalvikvm( 1221): GC_FOR_MALLOC freed 12882 objects / 779768 bytes in 110ms | |
[DEBUG] [204,23148] got contents | |
[DEBUG] [1,23149] Parsing config | |
[TRACE] E/TiBlob ( 1221): (kroll$4) [35,23184] /data/data/net.damagestudios.Linux.com/app_appdata/twitter.config (No such file or directory) | |
[TRACE] E/TiBlob ( 1221): java.io.FileNotFoundException: /data/data/net.damagestudios.Linux.com/app_appdata/twitter.config (No such file or directory) | |
[TRACE] E/TiBlob ( 1221): at org.apache.harmony.luni.platform.OSFileSystem.openImpl(Native Method) | |
[TRACE] E/TiBlob ( 1221): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:152) | |
[TRACE] E/TiBlob ( 1221): at java.io.FileInputStream.<init>(FileInputStream.java:82) | |
[TRACE] E/TiBlob ( 1221): at org.appcelerator.titanium.io.TiFile.getInputStream(TiFile.java:217) |
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
Verifying I am +zsprackett on my passcard. https://onename.com/zsprackett |
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
diff -ruN httpd-2.2.22/include/util_time.h httpd-2.2.22.patched/include/util_time.h | |
--- httpd-2.2.22/include/util_time.h 2006-07-11 20:38:44.000000000 -0700 | |
+++ httpd-2.2.22.patched/include/util_time.h 2015-04-11 17:46:18.345588587 -0700 | |
@@ -77,6 +77,13 @@ | |
AP_DECLARE(apr_status_t) ap_recent_ctime(char *date_str, apr_time_t t); | |
/** | |
+ * format a recent timestamp in the ISO8601 format | |
+ * @param date_str String to write to (must have length >= APR_ISO8601_DATE_LEN) | |
+ * @param t the time to convert |
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
[root@online-web3.sjc updates.sugarcrm.com]# ls -lR sortinghat | |
sortinghat: | |
total 4 | |
drwxrwsr-x 7 apache apache 4096 Jun 30 17:07 11323432 | |
sortinghat/11323432: | |
total 20 | |
drwxrwsr-x 2 apache apache 4096 Jun 30 17:02 0 | |
drwxrwsr-x 2 apache apache 4096 Jun 30 17:03 1 | |
drwxrwsr-x 2 apache apache 4096 Jun 30 17:05 2 |
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
./clients/base/api/MarketoApi.php | |
./clients/base/fields/listeditable/listeditable.js | |
./clients/base/fields/shareaction/detail.hbs | |
./clients/base/layouts/detail/detail.php | |
./clients/base/layouts/edit/edit.php | |
./clients/base/layouts/newrecord/newrecord.php | |
./clients/base/views/agenda/agenda.hbs | |
./clients/base/views/agenda/agenda.js | |
./clients/base/views/detail/detail.hbs | |
./clients/base/views/detail/detail.js |
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
. | |
./clients | |
./clients/base | |
./clients/base/api | |
./clients/base/api/MarketoApi.php | |
./clients/base/fields | |
./clients/base/fields/listeditable | |
./clients/base/fields/listeditable/listeditable.js | |
./clients/base/fields/shareaction | |
./clients/base/fields/shareaction/detail.hbs |
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
. | |
./clients | |
./clients/base | |
./clients/base/api | |
./clients/base/api/MarketoApi.php | |
./clients/base/fields | |
./clients/base/fields/listeditable | |
./clients/base/fields/listeditable/listeditable.js | |
./clients/base/fields/shareaction | |
./clients/base/fields/shareaction/detail.hbs |