Skip to content

Instantly share code, notes, and snippets.

View rizrmd's full-sized avatar
😴
I may be slow to respond.

Rizky rizrmd

😴
I may be slow to respond.
  • Surabaya, Indonesia
View GitHub Profile
@rizrmd
rizrmd / gist:f493f252dc60d55095aa
Created June 7, 2014 03:45
Kii REST API - Slide 11
curl -v -X POST \
-H "content-type:application/vnd.kii.RegistrationRequest+json" \
-H "x-kii-appid:{APP_ID}" \
-H "x-kii-appkey:{APP_KEY}" \
"https://api-sg.kii.com/api/apps/{APP_ID}/users" \
-d '{"loginName":“rizky", "displayName":“rizky ramadhan", "country":“ID", "password":"123ABC"}'
@rizrmd
rizrmd / gist:fee162cd1f4c8fff5f6a
Created June 7, 2014 03:49
Kii REST API - Slide 21
curl -v -X POST \
-H "content-type:application/vnd.kii.AuthTokenFacebookRequest+json" \
-H "x-kii-appid:{APP_ID}" \
-H "x-kii-appkey:{APP_KEY}" \
"https://api-sg.kii.com/api/apps/{APP_ID}/integration/facebook" \
-d '{"accessToken":"{ACCESS_TOKEN_PROVIDED_BY_FACEBOOK}"}'
@rizrmd
rizrmd / gist:5d319f17e207d0060bf0
Created June 7, 2014 03:50
Kii REST API - Slide 27
curl -v -X POST \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "content-type:application/vnd.{APP_ID}.mydata+json" \
-H "x-kii-appid:{APP_ID}" \
-H "x-kii-appkey:{APP_KEY}" \
"https://api-sg.kii.com/api/apps/{APP_ID}/buckets/{BUCKET_NAME}/objects" \
-d '{"score":"1800", "name":"game1"}'
@rizrmd
rizrmd / gist:5f6d94171df0af5299da
Created June 7, 2014 03:51
Kii REST API - Slide 29
curl -v -X POST \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "content-type:application/vnd.kii.QueryRequest+json" \
-H "x-kii-appid:{APP_ID}" \
-H "x-kii-appkey:{APP_KEY}" \
"https://api-sg.kii.com/api/apps/{APP_ID}/buckets/{BUCKET_NAME}/query" \
-d ‘{
"bucketQuery":{
"clause":{"type":"prefix", "field":"name", "prefix":"riz"}
}
@rizrmd
rizrmd / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;

Keybase proof

I hereby claim:

  • I am rizkyramadhan on github.
  • I am rizky (https://keybase.io/rizky) on keybase.
  • I have a public key ASB-kbHRtfzJnHtxkThQq5RgVUhTAeQVNHkuMhtpCDA8tgo

To claim this, I am signing this object:

@rizrmd
rizrmd / pubkey fix deepin
Created September 5, 2018 03:26
pubkey fix deepin
sudo apt-get update 2>&1 |
sed -ne 's?^.*NO_PUBKEY ??p' |
xargs -r -- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
network:
versions: 2
ethernets:
ens18:
addresses:
- 139.99.93.32/28
nameservers:
addresses:
- 213.186.33.99
search: []