Skip to content

Instantly share code, notes, and snippets.

View taufiqibrahim's full-sized avatar

taufiqibrahim

View GitHub Profile
@taufiqibrahim
taufiqibrahim / change_etc_ssh_sshd_config.md
Last active March 8, 2018 03:21
Database server slow PostgreSQL connection establishment (20 seconds) & slow SSH establishment

/etc/ssh/sshd_config

Problem

SSH establishment takes a long time, with ssh -v result:

debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available

debug1: Unspecified GSS failure. Minor code may provide more information
@taufiqibrahim
taufiqibrahim / ConfigureReverseProxy.md
Last active June 20, 2024 07:35
Install NGINX on Centos 7 Without Internet Connection

Supposed we had 3 web apps which up and running on their own ports.

  • app1 : BASE_URL:7000
  • app2 : BASE_URL:7001
  • app3 : BASE_URL:7002

Now we already have our NGINX serving on port 80. So, opening a web browser and typing our server's URL will show us Welcome to nginx! page.

Now we want to have our apps to be accessed via URL, like:

@taufiqibrahim
taufiqibrahim / .block
Created April 13, 2018 07:21
fresh block
license: mit
@taufiqibrahim
taufiqibrahim / .block
Created April 13, 2018 07:21
trueconex
license: mit
@taufiqibrahim
taufiqibrahim / .block
Created April 13, 2018 07:32
Trueconex - Thanaporn-sk
license: mit
@taufiqibrahim
taufiqibrahim / .block
Created April 13, 2018 10:03
trueconex radial
license: mit
@taufiqibrahim
taufiqibrahim / .block
Created April 13, 2018 10:03
trueconex radial
license: mit
@taufiqibrahim
taufiqibrahim / .block
Created April 13, 2018 10:03
trueconex radial
license: mit
@taufiqibrahim
taufiqibrahim / Install.bash
Created June 11, 2018 19:56 — forked from blachniet/Install.bash
Install pip packages in an offline environment
# 1. On a internet-connected device, download the package and its dependencies to a directory
mkdir pip-es-curator
pip install --ignore-installed -d ./pip-es-curator elasticsearch-curator
# 2. Move the directory containing the packages to the offline device
# 3. On the offline device, install the package from the transferred directory
pip install --no-index --find-links ./pip-es-curator elasticsearch-curator
@taufiqibrahim
taufiqibrahim / deploy-docker-via-django-admin-admin.py
Last active August 18, 2019 09:02
Containers information stored as Django model
from django.contrib import admin
from dockerman.models import Container
@admin.register(Container)
class ContainerAdmin(admin.ModelAdmin):
pass