Skip to content

Instantly share code, notes, and snippets.

@sekka1
sekka1 / credits-get
Created April 22, 2012 19:40
Credits GET
curl -H "authToken: <Authentication Token>" http://v1.api.algorithms.io/credits -v
@sekka1
sekka1 / dataset-get
Created April 22, 2012 19:42
Dataset Get
curl -i -H "authToken: <Authentication Token>" http://v1.api.algorithms.io/dataset -v
@sekka1
sekka1 / dataset-post
Created April 22, 2012 19:43
Dataset POST
curl -i -H "authToken: <Authentication Token>" -H "type:<File Type>" -H "friendly_name:<Name of File>" -H "friendly_description:<Description>" -H "version:<Verion>" -F theFile=@<File on local system> http://v1.api.algorithms.io/dataset -v
@sekka1
sekka1 / dataset-delete
Created April 22, 2012 20:23
Dataset Delete
curl -X DELETE -H "authToken: <Authentication Token>"
http://v1.api.algorithms.io/dataset/id/<datasource_id_seq> -v
@sekka1
sekka1 / UseCase_1_Recommendation_step_1
Created June 1, 2012 00:48
UseCase_1_Recommendation_step_1
curl -i -H "authToken: <authToken>"
-H "type:rec"
-H "name:Movie_Lens_100k"
-H "description:100k rows of user prefs"
-H "version:1"
-F theFile=@Movie_Lens_100k_data.csv
https://v1.api.algorithms.io/dataset
@sekka1
sekka1 / UseCase_1_Recommendation_step_2
Created June 1, 2012 00:53
UseCase_1_Recommendation_step_2
curl -i
-d 'job_params={
"job": {
"algorithm": {
"id": "13"
},
"input_variables": {
"datasource_id_seq": "<ID Returned in Step #1>",
"field_user_id": "user",
"field_item_id": "item",
@sekka1
sekka1 / UseCase_1_Recommendation_step_3
Created June 1, 2012 00:54
UseCase_1_Recommendation_step_3
curl -i
-d 'job_params={
"job": {
"algorithm": {
"id": "14"
},
"input_variables": {
"datasource_id_seq": "<ID Returned in Step #1>",
"type": "item",
"item": "Terminator The 1984"
@sekka1
sekka1 / algorithms GET
Created June 1, 2012 00:56
algorithms GET
curl -H "authToken: <authToken>" https://v1.api.algorithms.io/algorithms
#cloud-config
ssh_authorized_keys:
- ssh-rsa <YOUR SSH KEY HERE>
write_files:
- path: /etc/systemd/system/fleet.socket.d/30-ListenStream.conf
owner: root:root
permissions: 0644
content: |
[Socket]
2015-11-10_16:45:40.30665 It looks like you are trying to access MongoDB over HTTP on the native driver port.
2015-11-10_16:45:40.31044 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
2015-11-10_16:45:40.31058 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
2015-11-10_16:45:40.66679 INFO [CmdLineTool] Loaded plugins: [Anonymous Usage Statistics 1.1.1 [org.graylog.plugins.usagestatistics.UsageStatsPlugin]]
2015-11-10_16:45:40.72084 INFO [CmdLineTool] Running with JVM arguments: -Xms1g -Xmx1500m -XX:NewRatio=1 -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow -Dlog4j.configuration=file:///opt/graylog/conf/log4j.xml -Djava.library.path=/opt/graylog/server/lib/sigar/
2015-11-10_16:45:42.37703 INFO [InputBufferImpl] Message journal is enabled.
2015-11-10_16:45:42.62995 I