Skip to content

Instantly share code, notes, and snippets.

View kurnias's full-sized avatar
💭
I may be slow to respond.

Sindhu Kurnia kurnias

💭
I may be slow to respond.
View GitHub Profile
@kurnias
kurnias / Gemfile
Created August 31, 2012 06:15
Gemfile
source "http://rubygems.org"
group :development do
gem 'rake', '~> 0.9.2'
gem 'rack', '~> 1.4.1'
gem 'jekyll', '~> 0.11.2'
gem 'rdiscount', '~> 1.6.8'
gem 'pygments.rb', '~> 0.2.12'
gem 'RedCloth', '~> 4.2.9'
gem 'haml', '~> 3.1.6'
@kurnias
kurnias / gist:3550135
Created August 31, 2012 08:10
2012-08-31-flickraw-test.markdown
layout title date comments categories
post
Flickraw Test
2012-08-31 14:47
true
flickraw

Gambar ukuran besar:

@kurnias
kurnias / speedtouch-st536-v6
Created November 29, 2012 02:42
SpeedTouch ST536 V6 Bridge Mode CLI
Username : Administrator
Password : *********** (isi dengan no.serial modem CPxxxxxx)
------------------------------------------------------------------------
______ SpeedTouch 5x6
___/_____/\
/ /\ 6.2.17.5
_____/__ / \
_/ /\_____/___ \ Copyright (c) 1999-2007, THOMSON
// / \ /\ \
_______//_______/ \ / _\/______
@kurnias
kurnias / wp_rss_poster.php
Created December 2, 2012 10:43
wp_rss_poster.php
<?php
/**
* Plugin Name: WP Rss Poster
* Plugin URI: http://wp-coder.net
* Description: Easy to create posts from multiple rss sources.
* Version: 1.0.0
* Author: Darell Sun
* Author URI: http://wp-coder.net
*
* @package WRP
@kurnias
kurnias / admin.php
Created December 2, 2012 10:47
admin.php
<?php
/* Admin functions to set and save settings of the
* @package WRP
*/
require_once('pages.php');
require_once('meta_box.php');
require_once(WRP_INC.'list_table.php');
/* Disable Twitter and Facebook workaround */
// require_once(WRP_INC.'twitteroauth.php');*/
// require_once(WRP_INC.'facebook.php'); */
@kurnias
kurnias / index.php
Created December 4, 2012 03:15
Simple YOURLS frontend
// Simple YOURLS frontend
// We use native YOURLS API to do so
<?php
require_once( dirname(__FILE__).'/includes/load-yourls.php' );
//put here how many entries should be displayed
$items = yourls_api_stats( 'last', 20 );
foreach( $items['links'] as $item ) { ?>
<!-- Just replace **USERNAME** by your github username :-) -->
<style>
#followGithub {
color: #121516;
text-shadow: 0 1px 1px #ccc;
padding: 0.2em 0.4em;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
@kurnias
kurnias / verify.php
Last active December 11, 2015 00:39
<?php
// call the lib..
require_once('recaptchalib.php');
// Get a key from http://recaptcha.net/api/getkey
$publickey = "";
$privatekey = "";
# was there a reCAPTCHA response?
@kurnias
kurnias / bitly.rb
Last active August 29, 2015 14:12 — forked from jalcine/bitly.rb
##
## @author Jacky Alcine <[email protected]>
## @see [TODO: Add URL to post about bit.ly URLs.]
##
## Add in Bit.ly URL support to pages.
require "bitly"
# Ensure use of new API.
Bitly.use_api_version_3
require 'bitly'
module Jekyll
class BitlyFilterCache
def initialize
@result_cache = {}
config = Jekyll.configuration({})
@username = config['bitly']['username']
@key = config['bitly']['api_key']
Bitly.use_api_version_3