Skip to content

Instantly share code, notes, and snippets.

Herloct herloct

  • Indonesia
Block or report user

Report or block herloct

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@herloct
herloct / cloud-config.yml
Created Jul 28, 2017
My cloud-config.yml
View cloud-config.yml
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDIYcPMMY049Cj7AZFfDYVLHCUuAVnM8b8I51IqWynN+MVOOUe3WXwQmdmuHdbMg0/cnjEI5dp/DrdSxbyGFdFfw6WDtESGKgwZSSGEZvFntoQVlMVgvE6r80wJn8ShbjEtjaILnlUW4jlFH3y3iMmRXspamN7T4G9swI3iI0+RtGWl6O6UqN+4oShARbXHKWAy4NV/791iEV22fX7yjW3BSz/tNimSYkCcXpsqM+5TYHQR7RqmgeJAKn5NZwGK+Hcxhug8djEabAiZYjXtJol77KtW0HfoX3BG6R9Q/d3G4dLzR/l9nYriZy+eebKcGd9yDdRnBsCHnAAeYwA51SAIsEvh93hYwO5S81KSbxzw/+jH+UFjgCuPhjU+/kShMDvVLilO3HZsySttgo0oo6GwYCZaXTpxdx6Yw4FtQaiy7tqJ2eY2N6jeFdb4lzWEDu6Lrf9/hmvGbaH/vM/AnelCALeqE2z5iKPRfvGTXZ9rfL60WsdnavflPOhYFuOCp+a2PyuGvJJOR5qyWy8hkHOzt5i3UOGL6lhBX0BmuO+uEaDTlBuMBlE2rDP1MMBpbjNsLo+PaHpPQHqbOHXhs2XM2aYZmFeEmZ75ZQVcOOwXCoAqRaIAOrwWaMTcbbUMDcOymCDt9tZ9JxOB0JWUJlw2jRDp8yF1wnoOb24dTVoBbw== herloct@virtual.dev
View docker-compose.yml
version: '2'
services:
web:
build:
context: ./
dockerfile: deploy/web.docker
volumes:
- ./:/var/www
ports:
- "8081:80"
@herloct
herloct / oop.php
Created Apr 4, 2017
PHP Prosedural vs OOP
View oop.php
<?php
class Member
{
private $email;
public function getEmail(): string
{
return $this->email;
}
View Database.php
<?php // lib/Database.php
namespace lib;
class Database
{
}
View Query.php
<?php
class Query
{
private $pdo;
private $sql;
public function __construct(PDO $pdo, $sql)
{
$this->pdo = $pdo;
@herloct
herloct / Dockerfile
Last active Feb 4, 2017
Dockerfile for OL-Fetish
View Dockerfile
FROM alpine:3.5
ENV OPENLAYERS_VERSION=3.20.1
RUN apk update --no-cache \
&& apk add --no-cache \
nodejs \
openjdk8 \
&& mkdir -p /openlayers \
@herloct
herloct / Dockerfile
Created Jan 30, 2017
Contoh Dockerfile
View Dockerfile
FROM php:7.1.1-fpm-alpine
MAINTAINER herloct <herloct@***.com>
RUN apk update --no-cache \
&& apk add --no-cache \
freetype-dev \
hiredis-dev \
icu-dev \
libjpeg-turbo-dev \
@herloct
herloct / results.md
Last active Oct 18, 2016
Slim 3 on Nginx + PHP-FPM vs Aerys
View results.md

Simple JSON

100 concurent in 10 seconds

Result Nginx + PHP-FPM Aerys
Requests per second 32.76 983.57
Time per request 3052.58 101.67
Time per request conc. 30.53 1.02
View gist:c90f0eea425b9218ac6d
git clone --recursive git://github.com/nvie/gitflow.git
make install prefix=$HOME
PATH=$PATH:$HOME/bin
. ~/.bashrc
# Copied from http://www.alpine-lab.com/blog/installer-git-flow-dans-une-box-nitrous-io/
You can’t perform that action at this time.