Skip to content

Instantly share code, notes, and snippets.

View hadimazalan's full-sized avatar

Hadi Mazalan hadimazalan

  • Cyberjaya
View GitHub Profile
@hadimazalan
hadimazalan / LC_CTYPE.txt
Created October 30, 2019 05:57 — forked from HJianBo/LC_CTYPE.txt
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@hadimazalan
hadimazalan / LC_CTYPE.txt
Created October 30, 2019 05:57 — forked from HJianBo/LC_CTYPE.txt
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@hadimazalan
hadimazalan / Redash-v2.md
Created July 8, 2019 09:14 — forked from linhmtran168/Redash-v2.md
Setup Redash v2.x for Oracle

Usage

Refs

https://redash.io/

Download Redash

$ curl -L -O https://github.com/getredash/redash/archive/v2.0.0.zip
@hadimazalan
hadimazalan / 00-SETUP.md
Created July 6, 2019 14:58 — forked from linhmtran168/00-SETUP.md
Setup Redash for Oracle

Usage

Refs

https://redash.io/

Download Redash

$ curl -L -O https://github.com/getredash/redash/archive/v5.0.1.zip
@hadimazalan
hadimazalan / default.conf
Last active July 6, 2019 14:51 — forked from mattes/default.conf
redash.io setup
upstream redash {
server redash:5000;
}
server {
listen 80;
location / {
return 301 https://$host$request_uri;
}
@hadimazalan
hadimazalan / rabbitmq-cluster.md
Created January 23, 2019 12:27 — forked from pobsuwan/rabbitmq-cluster.md
How to config rabbitmq server cluster [3 nodes]

How to config rabbitmq server cluster [3 nodes]

Do after install SLGInstallers

Edit /etc/hosts

vi /etc/hosts
192.168.10.157  rabbitmq-1
192.168.10.159  rabbitmq-2
192.168.10.161  rabbitmq-3
@hadimazalan
hadimazalan / android_instructions.md
Created January 9, 2019 18:38 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

@hadimazalan
hadimazalan / KongJwt.md
Created December 29, 2018 12:00 — forked from martinheld/KongJwt.md
Short example to use JWT with Kong

JWT Kong Example

  • Get and Start Kong and Co
git clone git@github.com:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
  • Create Kong API Route
@hadimazalan
hadimazalan / gist:f6a8cbe01fa858af3000034ea53e15f2
Created December 24, 2018 16:37 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@hadimazalan
hadimazalan / README.md
Created October 1, 2018 07:52 — forked from superseb/README.md
Deploy kubernetes-dashboard on Rancher 2.0 cluster exposed using NodePort

Deploy kubernetes-dashboard on Rancher 2.0 cluster exposed using NodePort

Requirements

Step 1: Generate kubeconfig from the UI

Generate the kubeconfig file for your cluster using the Kubeconfig File button in the Cluster view of your cluster. Save the generated file as $HOME/.kube/config and run kubectl get nodes to verify it works.