Skip to content

Instantly share code, notes, and snippets.

View raymatos's full-sized avatar

Ray Matos raymatos

  • Philadelphia, PA
View GitHub Profile
Refresh
curl -X POST "https://qa.xafe.io/api/v1/clients/refreshStatusByTravelCodes" -H "accept: */*" -H "Content-Type: application/json" -d "{\"travel_codes\":[\"string\"]}"
Get TC by Gateway
curl -X GET "https://qa.xafe.io/api/v1/gateways/1/getTravelCodes" -H "accept: application/json"
{
"Type": "Work order created",
"address": "FBA PREP – WO-012<br>7900 N RADCLIFFE ST<br>BUILDING 101, 2ND FLOOR<br>BRISTOL, PA 19007",
"company": "BhnxHEeSwUt5knnWNpeZ",
"created_at": {
"_seconds": 1570933034,
"_nanoseconds": 995000000
},
"created_by": "035mS65xW4h91kYXaTQvZdcCkB03",
"description": "new request",
Sep 21 13:01:55 fn9 zfsd: CaseFile::Serialize: Unable to open /etc/zfs/cases/pool_16723388016141076253_vdev_15363958692924317180.case.
Sep 21 13:01:55 fn9 zfsd: CaseFile::Serialize: Unable to open /etc/zfs/cases/pool_16723388016141076253_vdev_6213643929067291486.case.
Sep 21 13:03:29 fn9 smbd[30373]: [2016/09/21 13:03:29.948273, 1] ../lib/param/loadparm.c:1629(lpcfg_do_global_parameter)
Sep 21 13:03:29 fn9 smbd[30373]: WARNING: The "null passwords" option is deprecated
Sep 21 13:05:18 fn9 smbd[30523]: [2016/09/21 13:05:18.284005, 1] ../lib/param/loadparm.c:1629(lpcfg_do_global_parameter)
Sep 21 13:05:18 fn9 smbd[30523]: WARNING: The "null passwords" option is deprecated
Sep 21 13:05:51 fn9 (da23:mps0:0:38:0): SYNCHRONIZE CACHE(10). CDB: 35 00 00 00 00 00 00 00 00 00 length 0 SMID 829 command timeout cm 0xfffffe00009f8010 ccb 0xfffff800469ef800
Sep 21 13:05:51 fn9 (noperiph:mps0:0:4294967295:0): SMID 45 Aborting command 0xfffffe00009f8010
Sep 21 13:05:51 fn9 mps0: Sending reset from mpssas_send_a
[{
"column_id": "campaign_servo_id",
"groups": [{
"count": 6,
"value": "CA-HTNSAQA"
}, {
"count": 1,
"value": "CA-BCHF3H4"
}, {
"count": 12,
@raymatos
raymatos / groups
Last active February 23, 2016 20:41
[{
column_id: 'first_grouped_column',
groups: [{
count: 12,
value: 'A'
}, {
count: 14,
value: 'B'
}]
}, {
@raymatos
raymatos / Apache_rewrite_to_Amazon_S3.txt
Last active December 8, 2015 19:58 — forked from NapoleonWils0n/Apache_rewrite_to_Amazon_S3.txt
apache: apache rewrite to amazon s3 bucket
<Directory "/www/sitename/folder/">
<IfModule mod_rewrite.c>
RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} \.php$
RewriteRule ^(.*) http://bucktname.s3.amazonaws.com/folder/$1
</IfModule>
</Directory>
tags=("s3ede0c234d634724b26777d405a9c8b5" "sd5de3d6fe8474840a22a278d5e3a011a" "sadf6fe09ef704f4c8a3a547614c21615" "s2f47d7677c1540f1b71ff75baf65081b" "sb89dc521df0d434f96ed6c04dfb55017")
for t in "${tags[@]}"
do
for i in $(seq 1 23)
do
curl -s cr$i:5050/placement?tagID=$t -o output-$t-cr$i.txt
done
done
Sep 21, 2014 21:22:52 [0x809a91c00] DEBUG - * progress => 0.9
Sep 21, 2014 21:22:52 [0x809a91c00] DEBUG - * size => -22
Sep 21, 2014 21:22:52 [0x809a91c00] DEBUG - * remaining => 42013
Sep 21, 2014 21:22:52 [0x809a91c00] DEBUG - HLS segment range: 0 - 16 average bitrate: 5.13 Mbps
Sep 21, 2014 21:22:52 [0x809a91c00] DEBUG - We want 12 segments ahead, last returned was 2 and max is 16.
Sep 21, 2014 21:22:52 [0x809a91c00] DEBUG - It took 0.000000 sec to serialize a list with 0 elements.
Sep 21, 2014 21:22:52 [0x80a89b000] DEBUG - Request: [127.0.0.1:29656] PUT /video/:/transcode/session/bif/progress?progress=37.1&size=-22&speed=27.9&remaining=102 (6 live)
Sep 21, 2014 21:22:52 [0x80a89b000] DEBUG - * progress => 37.1
Sep 21, 2014 21:22:52 [0x80a89b000] DEBUG - * size => -22
Sep 21, 2014 21:22:52 [0x80a89b000] DEBUG - * speed => 27.9
@raymatos
raymatos / Submodules
Created February 7, 2013 15:26
Subroutes in backbone?
app_router.on('route:showProjects', function(){
require(['views/projects/ProjectsView',],
function(ProjectsView){
//sub routes
var ProjectRoutes = Backbone.Router.extend({
routes : {
'clients/:id': 'showClients'
}
})