Skip to content

Instantly share code, notes, and snippets.


erwin maruli tua pakpahan marulitua

  • Bali
View GitHub Profile
marulitua /
Created May 30, 2019 09:05 — forked from hellricer/
ELinks hooks providing a framework for manipulating DOM
import os
import re
import subprocess
from bs4 import BeautifulSoup
import rules
def replacer(url, html):
new = html
marulitua / Wishlist
Last active September 15, 2018 12:26
woocomerce wl
View Wishlist
// wp-content/themes/shop-isle-child/functions.php
// add class 'tinvwl-product-in-list' custom css class
add_action('woocommerce_after_shop_loop_item', 'add_a_custom_button', 11 );
function add_a_custom_button() {
global $product;
$wlButton = do_shortcode("[ti_wishlists_addtowishlist product_id=".$product->id."]");
$dom = new DOMDocument;
$dataTinvWlList = '';
marulitua /
Last active October 22, 2021 16:08
Instal php5.6 with phpbrew on ubuntu 18.04
# Instal php5.6 with phpbrew on ubuntu 18.04
# Install all dependencies
sudo apt update
sudo apt install wget php build-essential libxml2-dev libxslt1-dev libbz2-dev libcurl4-openssl-dev libmcrypt-dev libreadline-dev libssl-dev autoconf
chmod +x phpbrew
mv phpbrew /usr/local/bin
marulitua / dhcpd.conf
Created April 23, 2018 07:19 — forked from robinsmidsrod/dhcpd.conf
Trying to chainload iPXE with full feature set from a lesser featured one, whilst still being able to boot non-supported cards with UNDI
View dhcpd.conf
ddns-update-style none;
deny bootp; #default
include "/etc/dhcp/ipxe-option-space.conf";
# GREEN (private network)
subnet netmask {
option subnet-mask;
marulitua /
Created September 20, 2016 10:35 — forked from staltz/
The introduction to Reactive Programming you've been missing

Keybase proof

I hereby claim:

  • I am marulitua on github.
  • I am marulitua ( on keybase.
  • I have a public key ASDIjXFT9IFyu9rtBZ3dtPA82VQoy6wj4OfJzF3Dy8nxkwo

To claim this, I am signing this object:

View upload.php
$dir = '/reports';
$key_name = 'file';
$key_imei = 'imei';
if(isset($_FILES[$key_name]) && !is_null($file = $_FILES[$key_name]) && !is_null($imei = $_POST[$key_imei])) {
$now = new \DateTime('NOW');
$date_dir = sprintf("%s/%s/%s", $now->format('Y'),$now->format('m'),$now->format('d'));
$full_path_dir = sprintf("%s/%s/%s",getcwd(), $dir, $date_dir);
View how_to_docker
========================HOW TO HOST UPLOAD SCRIPT with DOCKER========================
1. Make sure docker was installed and running
2. Get proper image
Kita akan menggunakan image web server nginx yang sudah terinistall
dan terkonfigurasi dengan php-fpm.
Image yang akan kita gunakan adalah richarvey/nginx-php-fpm dari
untuk mendownload image dari registry (repo jalankan
View upload.php
$dir = 'public/report';
$key_name = 'file';
if(!is_null($file = $_FILES[$key_name])) {
$now = new \DateTime('NOW');
$date_dir = sprintf("%s/%s/%s", $now->format('Y'),$now->format('m'),$now->format('d'));
$full_path_dir = sprintf("%s/%s/%s",getcwd(), $dir, $date_dir);
View Registrasi.php
namespace backend\models;
use Yii;
* This is the model class for table "registrasi".
* @property integer $id