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
This file has been truncated, but you can view the full file.
========================================================
== dumpstate: 2016-09-01 06:47:55
========================================================
Build: KTU84P
Build version: V7.1.2.0.KXDMICK
Build fingerprint: 'Xiaomi/cancro/cancro:4.4.4/KTU84P/V7.1.2.0.KXDMICK:user/release-keys'
Bootloader: unknown
Radio: msm
Network: TELKOMSEL
fastboot flash tz tz.mbn
fastboot flash dbi sdi.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash rpm rpm.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot erase boot
fastboot flash misc misc.img
fastboot flash modem NON-HLOS.bin
fastboot flash system system.img
fastboot flash cache cache.img
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$', '$'] ],
displayMath: [ ['$$', '$$'], ["\[", "\]"] ],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
//,
/ip address
add interface=ether1 address=192.168.1.1/24
add interface=ether2 address=192.168.2.1/24
/ip pool
add name=pool1 ranges=192.168.1.10-192.168.1.254
add name=pool2 ranges=192.168.2.10-192.168.2.254
/ip dhcp-server
add disabled=no authoritative=yes bootp-support=none name=dhcp1 interface=ether1 address-pool=pool1
@kurnias
kurnias / _config.yml
Last active August 29, 2015 14:15 — forked from alialo/_config.yml
paginate: 10
@kurnias
kurnias / head.html
Last active August 29, 2015 14:15
head.html modif
...
<title>{% if page.title %}{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %} - {% endif %}{{ site.title }} &ndash; {{ site.subtitle }}</title>
<meta name="author" content="{{ site.author }}">
<meta name="description" content="{{ site.description | truncate:200 }}">
<meta name="keywords" content="{{ site.keywords | truncate:150 }}">
...
@kurnias
kurnias / lightbox.rb
Created February 6, 2015 10:12
lightbox.rb
# A Liquid tag for Jekyll sites that allows embedding Lightbox images.
# by: kyoendo
# Source URL: https://gist.github.com/4035604
#
# Example usage: {% lightbox 2012/abc.png, Title of Image, Alt Title %}
module Jekyll
class LightboxTag < Liquid::Tag
def initialize(tag_name, text, token)
super
@text = text
/**
* Login menu
*/
add_filter( 'wp_nav_menu_items', 'add_loginout_link', 10, 2 );
function add_loginout_link( $items, $args ) {
if (is_user_logged_in() && $args->theme_location == 'primary') {
$items .= '<li><a href="'. wp_logout_url( get_permalink( woocommerce_get_page_id( 'myaccount' ) ) ) .'">Log Out</a></li>';
}
elseif (!is_user_logged_in() && $args->theme_location == 'primary') {
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
@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