Skip to content

Instantly share code, notes, and snippets.

View diorahman's full-sized avatar

Dhi Aurrahman diorahman

  • Cokelatia
  • Bandung
View GitHub Profile
export TERM="xterm-color"
alias ls="ls -G"
export PS1='\[\033[01;30m\][\w]\[\033[00m\]\$ '
# Developer/usr/bin
export PATH=$PATH:/Developer/usr/bin
export PATH=$PATH:/Users/diorahman/QtSDK/Desktop/Qt/4.8.0/gcc/bin
export NODE_PATH=/usr/local/lib/node_modules
# mvim
@diorahman
diorahman / server.js
Created July 30, 2012 03:04
Proxy Image
var request = require('request')
var express = require('express')
var server = express.createServer()
server.get('/image', function(req, res){
var url = req.query.url ? req.query.url : ""
if(url)
request(url).pipe(res)
else
res.send(400)
server.all('/twitter/:version/:resource?/:id?/:endpoint', function(req, res, next){
var oauth = {
consumer_key: CONSUMER_KEY,
consumer_secret: CONSUMER_SECRET,
token : "17058778-hl3kiwpXnSW0H8Iup3YInX9Pk0McTwMOPN9ezS4Ly",
token_secret : "9cRTAQHDo8ds9J9U4GfxAnWd6ngPZiztyY5zMvOK7k"
}
var header = req.headers['content-type'] ? req.headers['content-type'] : "";
$.ajax({
url: 'http://beda.dio.jit.su/ping',
contentType: 'application/json',
dataType: 'json',
data: {},
type: 'POST',
beforeSend: function(xhr) {
xhr.setRequestHeader('x-Token-Sns','Test'); // header key name case-insensitive
}
})
@diorahman
diorahman / kite.sh
Created August 1, 2012 06:10
kite note
./pagekite.py --clean --frontend=localhost:12345 --service_on=http:localhost:localhost:8000:dio10201
./pagekite.py --clean --isfrontend --ports=12345 --domain=http:localhost:dio10201
./pagekite.py --clean --frontend=http:planck.aegis.co.id:12345 --service_on=http:planck.aegis.co.id:localhost:8000:dio10201
./pagekite.py --clean --isfrontend --ports=12345 --domain=http:planck.aegis.co.id:dio10201
./pagekite.py --clean --isfrontend --ports=12345 --domain=http:planck.aegis.co.id:dio10201
@diorahman
diorahman / text
Created August 1, 2012 06:22
MANDIRI
a.n Fintiawati Nurrahmah
No. 1310001096397
Bank Address:
Mandiri KCP Bandung Kanpus Telkom
Gedung Kantor Pusat PT Telkom, Jl. Japati No. 1
(022) 7206661
SWIFT Code: BMRIIDJA
@diorahman
diorahman / kite.txt
Created August 1, 2012 21:38
Kite Setup
**PAGE KITE**
1. ON THE SERVER
-> set the frontend, maybe you'll need screen or upstart
$ screen -list
$ screen
On the server
root@rezafaisal:~/kite# ./pagekite.py --clean --isfrontend --ports=12345 --domain=http:beta.kertasapp.com:dio10201
>>> Hello! This is pagekite.py v0.5.2d. [CTRL+C = Stop]
@diorahman
diorahman / ROCKYBARS.TXT
Created August 5, 2012 03:18
HOW-TO-ORDER
===================================
ORDERING @rockybars from @cokelatia
===================================
**HOW TO**
Send message to,
- e-mail ([email protected]),
- sms (+62 22 70831808)
@diorahman
diorahman / kite.txt
Created August 6, 2012 20:58
HOWTO: KITE
#KITE#
#SERVER
./pagekite.py --clean --isfrontend --ports=12345 --domain=http:beta.kertasapp.com:dio10201
#CLIENT (LOCALHOST)
./pagekite.py --clean --frontend=beta.kertasapp.com:12345 --service_on=http:beta.kertasapp.com:localhost:8000:dio10201
@diorahman
diorahman / session.txt
Created September 13, 2012 14:51
diorahman valid remote compiler session
Entry in the QtCreator.ini file
(http://projects.developer.nokia.com/remotecompiler/ticket/42)
[wcc]
FnUserName=diorahman
LicenseAccepted=true
SessionId="@ByteArray(qt-remote-tools-session-id=WCOoD3RvanmxuVKTzGoI5fedXf;
path=/)"
Version=0