Skip to content

Instantly share code, notes, and snippets.

View purwandi's full-sized avatar
🏠
Working from home

purwandi purwandi

🏠
Working from home
View GitHub Profile
@purwandi
purwandi / README.md
Created January 30, 2014 05:30 — forked from mtigas/README.md

[mike.tig.as][mta] server configuration

This gist contains the nginx and tor configurations for the [mike.tig.as][mta] servers, mainly to show:

  • Use of the chris-lea/nginx-devel PPA to allow use of SPDY.
  • ssl_ciphers selection to mitigate BEAST attack, enable [perfect forward secrecy][pfs] if possible and select the strongest possible ciphers within those bounds. (Exception is made for several ciphers at the end of list, for compatibility reasons.)
@purwandi
purwandi / tweet.json
Created February 17, 2014 02:53
Isi Twitter TMC
{
"data":
[
{
"id": 435240508806295552,
"tweet": "09:30 Situasi lalu lintas Ciledug Indah arah Graha Raya Bintaro (Regency) pinang padat merayap imbas jalan berlubang",
"screen_name": null,
"time": null,
"parsed": 0,
"created_at": "2014-02-17 02:34:03",
@purwandi
purwandi / resume
Last active August 29, 2015 14:03
// http://jsonresume.org/
{
bio: {
firstName: string,
lastName: string,
email: {
work: string, // e.g. thomas@facebook.com
personal: string // thomas@gmail.com
},
phone: { // Phone numbers are stored as strings so use any format you like
# start/stop/restart atmail
/etc/init.d/atmailserver start
/etc/init.d/atmailserver stop
/etc/init.d/atmailserver restart
# count of messages in queue
/usr/local/atmail/mailserver/bin/exim -bpc
# list of messages in queue
/usr/local/atmail/mailserver/bin/exim -bp
var Browser = require('zombie'),
url = require('url'),
fs = require('fs'),
$q = require('Q'),
saveDir = __dirname + '/_snapshots';
var scriptTagRegex = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;
var stripScriptTags = function(html) {

##Chrome Packaged Apps

Introduction

Introduced at Google I/O 2012, Chrome packaged apps are a new way to develop apps that are running 'natively' within Chrome on the desktop as well as on Chrome mobile in the near future. I'm currently in the middle of a project where I develop a Chrome packaged app and in this article I would like to share my experience with the development of packaged apps.

Please note: This article should give you a basic insight of topics that I think are helpful to know for developing packaged apps. Furthermore I will give links to each topic, so you can dive deeper into that specific topic if you want to. It's not the goal of this article to act as a complete introduction to Chrome packaged apps, for a much more detailed overview of packaged apps development, please look at the official packaged app documentation.

What are Chrome Packaged Apps

Chrome packaged apps are applic

@purwandi
purwandi / ppdb-api.md
Last active August 29, 2015 14:16
API Request

Timeline

timeline bergungsi untuk mencatat aktifitas pengguna di dalam sistem

{
	"meta": {

	},
	"data" : [
{
"token":"SMKTOKEN",
"asesor":[
{"status":"Asesor I","nama":""},{"status":"Asesor II","nama":""}
],
"data":[
{
"npsn":"20224331",
"nama":"SMK NEGERI 1",
"jenjang_id":"18",
@purwandi
purwandi / Installer.log
Created May 9, 2015 02:31
My slanger installer log
This file has been truncated, but you can view the full file.
Last login: Fri May 8 23:02:04 on ttys003
~$ ssh purwandi@192.168.61.132
The authenticity of host '192.168.61.132 (192.168.61.132)' can't be established.
RSA key fingerprint is fd:5b:8f:25:6b:4c:3d:f4:e8:f2:6e:13:af:67:1b:1d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.61.132' (RSA) to the list of known hosts.
purwandi@192.168.61.132's password:
Linux socket 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u1 x86_64
The programs included with the Debian GNU/Linux system are free software;
@purwandi
purwandi / App.md
Last active August 29, 2015 14:20
Installing Slanger