Skip to content

Instantly share code, notes, and snippets.

View dwinurhadia's full-sized avatar
🐳
Surfing the Land

Dwi Nurhadi dwinurhadia

🐳
Surfing the Land
View GitHub Profile
@dwinurhadia
dwinurhadia / my.cnf
Created May 16, 2016 17:40
MySQL my.cnf default config
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
[
{
"makanan": "Nasi",
"advantage": "Karbohidrat",
"abilities": {
"satu": ["Kesehatan", "Invoke the power."],
"dua": ["Tenaga", "Your Argonian blood is 50."]
}
},
{

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@dwinurhadia
dwinurhadia / ldap
Last active September 21, 2023 07:07
Ldap Config
# -*- text -*-
#
# $Id: 1f0ee0383834684c7314a89be40003933023c401 $
#
# Lightweight Directory Access Protocol (LDAP)
#
ldap {
# Note that this needs to match the name(s) in the LDAP server
# certificate, if you're using ldaps. See OpenLDAP documentation
@dwinurhadia
dwinurhadia / config fk
Last active August 30, 2021 06:30
Config Cisco FK
! Cisco IOS Software, s6t64 Software (s6t64-IPSERVICESK9-M), Version 15.4(1)SY2, RELEASE SOFTWARE (fc4)
!
! Image: Software: s6t64-IPSERVICESK9-M, 15.4(1)SY2, RELEASE SOFTWARE (fc4)
! Image: Compiled: Sun 28-May-17 02:18 by prod_rel_team
! ROM Bootstrap: Version 15.3(04r)SYS, RELEASE SOFTWARE
! Image: bootdisk:/s6t64-ipservicesk9-mz.SPA.154-1.SY2.bin
! Chassis type: processor
! Memory: main 2879426K/524288K
! Processor ID: SMC1942002M
! CPU:
@dwinurhadia
dwinurhadia / gist:c53f05658c37718245dcacaad3e6e592
Created June 28, 2020 01:30
Cisco ASR-1002-X bras (pppoe server) configuration
Building configuration...
Current configuration : 6995 bytes
!
! Last configuration change at 04:13:34 IRI Sun Oct 22 2017
!
version 16.3
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
@dwinurhadia
dwinurhadia / minikube-sierra.md
Created October 20, 2020 01:57 — forked from inadarei/minikube-sierra.md
Minikube Setup: Docker for Mac / Sierra

Prerequisite: latest Docker for Mac on MacOS Sierra

$ brew update
$ brew install --HEAD xhyve
$ brew install docker-machine-driver-xhyve
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.18.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
@dwinurhadia
dwinurhadia / php-pools.md
Created January 5, 2021 14:09 — forked from holmberd/php-pools.md
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R