Skip to content

Instantly share code, notes, and snippets.

View purwandi's full-sized avatar
🏠
Working from home

purwandi purwandi

🏠
Working from home
View GitHub Profile
@purwandi
purwandi / docker-compose.yaml
Last active June 17, 2021 14:39
Jenkins Nexus
version: '3'
services:
nexus:
image: sonatype/nexus3
volumes:
- ./storage-nexus:/nexus-data
ports:
- 8081:8081
- 8082:8082 # docker proxy
- 8083:8083 # docker hosted
@purwandi
purwandi / 01-Nginx-Naxsi-Core.md
Last active January 4, 2021 12:10
Install nginx, naxsi core and naxsi ui

Install Some Dependencies

apt-get install build-essential bzip2 libpcre3-dev libssl-dev mysql-server daemon libgeoip-dev

Installing Nginx with Naxsi Core

Download Nginx, Naxsi Core dan Naxsi UI. Saya berasumsi tempat download berada di /home/compile

Instalasi docker di ubuntu

apt-get -y update

apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -

add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
@purwandi
purwandi / inteface kosong
Last active May 4, 2020 05:13
Interface
package main
import (
"fmt"
)
type Mamalia interface {
}
type Animal struct {
http://tomeko.net/online_tools/hex_to_base64.php
@purwandi
purwandi / Controller.php
Created June 2, 2016 14:46
Custom error format response Lumen Framework
<?php
namespace App\Http\Controllers;
use Laravel\Lumen\Routing\Controller as BaseController;
class Controller extends BaseController
{
public function __construct()
{
@purwandi
purwandi / docker-compose.yml
Created July 21, 2019 12:12 — forked from danmrichards/docker-compose.yml
CockroachDB - Docker Compose Manifest. Spins up a simple 3 node CockroachDB cluster.
version: "3"
services:
roach1:
container_name: roach1
image: cockroachdb/cockroach:v1.1.3
command: start --insecure
ports:
- "26257:26257"
- "8080:8080"
volumes:
@purwandi
purwandi / dnsovertls.md
Created May 25, 2019 15:33 — forked from uraimo/dnsovertls.md
Configure your Mac to use DNS over TLS
server {
listen 80;
listen 443 ssl;
server_name _hostname_;
root _path_;
index index.html index.htm index.php;
charset utf-8;
.container-fluid {
max-width: 980px !important;
}
.right-sidebar-expanded .container-limited {
max-width: 800px !important;
}
.file-holder .file-content.wiki {
padding: 45px;