Skip to content

Instantly share code, notes, and snippets.

View zafranf's full-sized avatar

Zafran Fadilah zafranf

View GitHub Profile
@zafranf
zafranf / ScrappingBCA
Created November 12, 2017 15:18 — forked from billyriantono/ScrappingBCA
Scrapping Mutasi BCA by adiputra
<?php
class ScrapBCA {
private $ipaddress;
private $user = 'user klik bca';
private $pass = 'pass klik bca';
private $bca_url = 'https://ibank.klikbca.com/';
private $bca_url_login = 'https://ibank.klikbca.com/authentication.do';
private $bca_url_menu = 'https://ibank.klikbca.com/nav_bar_indo/menu_bar.htm';
public function __construct() {
@zafranf
zafranf / deploy-static-site-heroku.md
Created October 4, 2017 13:41 — forked from wh1tney/deploy-static-site-heroku.md
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@zafranf
zafranf / README-Template.md
Created July 22, 2017 19:16 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@zafranf
zafranf / imageoptim.php
Created June 1, 2017 18:18 — forked from ianmustafa/imageoptim.php
Optimalisasi Gambar dalam PHP menggunakan Imagick.
<?php
/* Maafkan kalo penamaan variabelnya berantakan :D
Ini juga agak lambat karena kompleksitasnya, terutama
di baris 61-95 (pembuatan gambar latar yang di-blur
untuk mengisi ruang kosong / menghindari crop)
*/
function imageoptim($imagepath, $savename) {
// Set imagepath default
$imagepath = "upload/source/{$savename}";
@zafranf
zafranf / Ubuntu-Server-LEMP-Setup-16.04.md
Last active March 13, 2018 07:59 — forked from marcuslilja/ubuntu-server-setup-16.04.md
Server Setup for Ubuntu 16.04

Server Setup for Ubuntu 16.04

The setup installs the following software:

  • Nginx
  • MariaDB
  • PHP
  • Git
  • Node
  • Composer