Skip to content

Instantly share code, notes, and snippets.

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

Akeda Bagus gedex

🏠
Working from home
View GitHub Profile
@gedex
gedex / diff-php-log.go
Created October 30, 2014 11:50
Diff cleaned PHP logs (removes unnecessary parts in the logs).
/**
* Diff cleaned PHP logs (removes unnecessary parts in the logs).
*
* @author Akeda Bagus <[email protected]>
* @license MIT
*/
package main
import (
"bufio"
@gedex
gedex / post-70.json
Last active August 29, 2015 14:06
2010
{"ID":70,"post_author":"1","post_date":"2014-09-18 13:02:00","post_date_gmt":"2014-09-18 13:02:00","post_content":"[toronto-election-mayor-leaderboard election_year=\"2014\" desc=\"This is a desc.\"]\r\n[toronto-election-mayoral-map election_year=\"2014\"]\r\n[toronto-election-ward-by-ward election_year=\"2014\"]","post_title":"2010","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"2010-2","to_ping":"","pinged":"","post_modified":"2014-09-18 13:26:33","post_modified_gmt":"2014-09-18 13:26:33","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress-trunk.dev\/?page_id=70","menu_order":0,"post_type":"page","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"page_template":"page-templates\/full-width.php","post_category":[],"tags_input":[]}
@gedex
gedex / post-70.json
Created September 18, 2014 12:59
2010
{"ID":70,"post_author":"1","post_date":"2014-09-18 13:02:00","post_date_gmt":"2014-09-18 13:02:00","post_content":"[toronto-election-mayor-leaderboard election_year=\"2014\" desc=\"This is a desc.\"]\r\n[toronto-election-mayoral-map election_year=\"2014\"]\r\n[toronto-election-ward-by-ward election_year=\"2014\"]","post_title":"2010","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"2010-2","to_ping":"","pinged":"","post_modified":"2014-09-18 13:02:00","post_modified_gmt":"2014-09-18 13:02:00","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress-trunk.dev\/?page_id=70","menu_order":0,"post_type":"page","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"page_template":"default","post_category":[],"tags_input":[]}
@gedex
gedex / README.md
Created August 31, 2014 19:06
Palindrome in Go

From Wikipedia:

A palindrome is a word, phrase, number, or other sequence of symbols or elements that reads the same forward or reversed, with general allowances for adjustments to punctuation and word dividers. Famous examples include "Amor, Roma", "A man, a plan, a canal: Panama" and "No 'x' in 'Nixon'".

Demo

http://play.golang.org/p/oIzyUsGk58

@gedex
gedex / xss.js
Last active August 29, 2015 14:01
alert('yay');
@gedex
gedex / post-488.json
Created April 12, 2014 09:28
New Post Today
{"ID":488,"post_author":"1","post_date":"2014-04-12 09:36:04","post_date_gmt":"2014-04-12 09:36:04","post_content":"Hi, I'm just testing..","post_title":"New Post Today","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"new-post-today","to_ping":"","pinged":"","post_modified":"2014-04-12 09:36:04","post_modified_gmt":"2014-04-12 09:36:04","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress.dev\/?p=488","menu_order":0,"post_type":"post","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"post_category":[1],"tags_input":[]}
@gedex
gedex / post-484.json
Created April 11, 2014 13:14
Slack WordPress Plugin is released
{"ID":484,"post_author":"1","post_date":"2014-04-11 13:14:45","post_date_gmt":"2014-04-11 13:14:45","post_content":"sdsdf","post_title":"Slack WordPress Plugin is released","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"slack-wordpress-plugin-is-released","to_ping":"","pinged":"","post_modified":"2014-04-11 13:14:45","post_modified_gmt":"2014-04-11 13:14:45","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress.dev\/?p=484","menu_order":0,"post_type":"post","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"post_category":[1],"tags_input":[]}
@gedex
gedex / post-482.json
Created April 11, 2014 12:51
Awesome post to publish
{"ID":482,"post_author":"1","post_date":"2014-04-11 12:51:06","post_date_gmt":"2014-04-11 12:51:06","post_content":"Yaya","post_title":"Awesome post to publish","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"awesome-post-to-publish","to_ping":"","pinged":"","post_modified":"2014-04-11 12:51:06","post_modified_gmt":"2014-04-11 12:51:06","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress.dev\/?p=482","menu_order":0,"post_type":"post","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"post_category":[1],"tags_input":[]}
@gedex
gedex / post-479.json
Created April 11, 2014 12:43
Test New Post to Broadcast
{"ID":479,"post_author":"1","post_date":"2014-04-11 12:43:37","post_date_gmt":"2014-04-11 12:43:37","post_content":"This is a test","post_title":"Test New Post to Broadcast","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"test-new-post-to-broadcast","to_ping":"","pinged":"","post_modified":"2014-04-11 12:43:37","post_modified_gmt":"2014-04-11 12:43:37","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress.dev\/?p=479","menu_order":0,"post_type":"post","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"post_category":[1],"tags_input":[]}
@gedex
gedex / post-474.json
Created April 11, 2014 12:36
Test a single integration post
{"ID":474,"post_author":"1","post_date":"2014-04-11 12:35:50","post_date_gmt":"2014-04-11 12:35:50","post_content":"asdasdf","post_title":"Test a single integration post","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"open","post_password":"","post_name":"test-a-single-integration-post","to_ping":"","pinged":"","post_modified":"2014-04-11 12:37:38","post_modified_gmt":"2014-04-11 12:37:38","post_content_filtered":"","post_parent":0,"guid":"http:\/\/local.wordpress.dev\/?p=474","menu_order":0,"post_type":"post","post_mime_type":"","comment_count":"0","filter":"raw","ancestors":[],"post_category":[1],"tags_input":[]}