Skip to content

Instantly share code, notes, and snippets.

View a9un9hari's full-sized avatar

Agung Hari Wijaya a9un9hari

View GitHub Profile
@a9un9hari
a9un9hari / wordpress.conf
Created March 26, 2020 11:14
Nginx wordpress conf
server {
# substitute your web server's URL for www.example.com
server_name example.com www.example.com;
root /var/www/example.com/html;
index index.php;
client_max_body_size 100M;
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log;
@a9un9hari
a9un9hari / downgrade.sh
Created March 13, 2020 02:16 — forked from jcowley/downgrade.sh
Downgrade Apache + PHP on Ubuntu 14.04
cat <<EOF >> /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu precise main restricted universe
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
EOF
apt-get update
apt-get purge \
apache2 \
@a9un9hari
a9un9hari / fix-error-a3-Lazy-Load
Created February 14, 2018 02:25
Try to fixing a3 Lazy Load version 1.8.4
<?php
/* "Copyright 2012 a3 Revolution Web Design" This software is distributed under the terms of GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 */
// File Security Check
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<?php
/*-----------------------------------------------------------------------------------
A3rev Plugin Admin UI
TABLE OF CONTENTS
@a9un9hari
a9un9hari / README.md
Last active August 31, 2015 04:04 — forked from mul14/README.md
Simple Laravel Search Trait

Usage

Put SearchTrait.php in app directory. Then use SearchTrait in your model, like so

use App\SearchTrait;
use Illuminate\Database\Eloquent\Model;

class Article extends Model {

How to set up Gulp with an ExpressionEngine project

I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).

Install Node.js

  • If Node is not yet installed on the machine, it will need to be installed

Install Gulp (if needed)

<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<style>
Dear Boss,
You know why i want to resign?
Since i worked for you, i have no time to blog anymore.When i don't have time to blog anymore, my readers hate me. When my readers hate me, they don't visit my blog anymore, my hits drop. When my hits dorp, i become unhappy. When i become unhappy, i will eat a lot. When i eat a lot, i will get fat. When i get fat, it will affect your company's image. When your company's image is affected, your business no good. When your business no good, you become unhappy. When you become unhappy, you eat a lot, like me. When you eat a lot, i'm afraid you will become fat, like me.
You see, Boss, it's a vicious cycle. I did everything for your own good, because i care for you, Boss.
So the conclusion is, i want to resign. Please let me go la.
<?php namespace Smile\Services\Creators;
use Illuminate\Validation\Factory as Validator;
abstract class Creator implements CreatorInterface
{
protected $model;
protected $errors;

//Set up Git on your machine if you haven't already.

mkdir /path/to/your/project cd /path/to/your/project git init git remote add origin ssh://git@bitbucket.org/a9un9hari/l.git

//You already have a Git repository on your computer. Let's push it up. cd /path/to/my/repo git remote add origin ssh://git@bitbucket.org/a9un9hari/l.git

ndek Procfile :
web: node index.js --production
trus dek console :
heroku config:add NODE_ENV=production
git push origin master