Skip to content

Instantly share code, notes, and snippets.

View SunDi3yansyah's full-sized avatar
Verified

Cahyadi Triyansyah SunDi3yansyah

Verified
View GitHub Profile
@SunDi3yansyah
SunDi3yansyah / nginx.conf
Created March 13, 2016 06:26 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@SunDi3yansyah
SunDi3yansyah / README.markdown
Created April 8, 2016 16:16 — forked from cosenary/README.markdown
Instagram PHP API - Working example: Load more button (AJAX)

Instagram PHP API

How to use

This a working example based on the previous posted workflow.
Feedback is as always welcome.

Original project repository: Instagram-PHP-API

index.php file

@SunDi3yansyah
SunDi3yansyah / analytics.conf
Created April 15, 2016 16:34 — forked from jirutka/analytics.conf
Add Google Analytics tracking code to HTML via nginx
#
# Add Google Analytics tracking code to HTML response
#
# Usage:
# set $tracking_id 'UA-12345678-9';
# include incl/analytics.conf;
#
# It needs nginx compiled with option --with-http_sub_module.
# Uses optimized GA code from: http://mathiasbynens.be/notes/async-analytics-snippet
#
@SunDi3yansyah
SunDi3yansyah / jne.php
Created May 28, 2016 19:19 — forked from natali/jne.php
Cek resi TIKI JNE/TIKI
<html>
<head>
<title>Check AWB</title>
<style type="text/css">
BODY, TD, INPUT {
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
INPUT.submit {
@SunDi3yansyah
SunDi3yansyah / RajaOngkir Widget Code
Created May 28, 2016 19:20 — forked from hok00age/RajaOngkir Widget Code
Code untuk menambahkan widget pengecekan ongkos kirim
<div data-theme="light" id="rajaongkir-widget"></div>
<script type="text/javascript" src="//rajaongkir.com/script/widget.js"></script>
<?php
// source: http://www.paulferrett.com/2009/php-camel-case-functions/
/**
* Translates a camel case string into a string with underscores (e.g. firstName -&gt; first_name)
* @param string $str String in camel case format
* @return string $str Translated into underscore format
*/
function from_camel_case($str) {
$str[0] = strtolower($str[0]);
@SunDi3yansyah
SunDi3yansyah / gist:3f99d8f056acf66b39a059f05d14a986
Created July 28, 2016 14:32 — forked from thinkphp/gist:1448754
Binary Search Tree Implementation in PHP
<?php
/**
* by Adrian Statescu <[email protected]>
* Twitter: @thinkphp
* G+ : http://gplus.to/thinkphp
* MIT Style License
*/
@SunDi3yansyah
SunDi3yansyah / Sublime Text 3 Build 3103 License Key
Last active September 30, 2017 11:34
Sublime Text 3 Build 3114 3124 3126 License Key
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@SunDi3yansyah
SunDi3yansyah / List-Laravel.md
Last active August 17, 2016 20:51 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):