Skip to content

Instantly share code, notes, and snippets.

View faizalmansor's full-sized avatar
🎯
Focusing on making the world a better place

Osh faizalmansor

🎯
Focusing on making the world a better place
View GitHub Profile
@faizalmansor
faizalmansor / laip-install.md
Last active June 29, 2023 19:59
Setting Up Linux, Apache, Informix & PHP (LAIP) Server Guide

This guide is adapted and updated from an online article "A step-by-step how-to guide to install, configure, and test a Linux, Apache, Informix, and PHP server" by Kellen F. Bombardier.

Original article can be accessed at: http://www.ibm.com/developerworks/data/library/techarticle/dm-0606bombardier/

##Before you start This guide assumes the use of an RPM-based 64-bit Linux system. The steps provided have been completed on Centos 7 on minimal/centos7 vagrant box. However, the overall ideas can be conveyed across any Linux distribution.

##Pre-installation steps First, you need to have the Informix Dynamic Server and the Informix Software Development Kit. If you do not have these products, you can find them on the Informix product family page.

@faizalmansor
faizalmansor / python-nfc.md
Created August 3, 2016 05:52
Python NFC Card on Windows 10
@faizalmansor
faizalmansor / default.conf
Created August 15, 2016 06:56
Nginx configuration for customized single domain Yii2 advanced template
server {
listen 80;
server_name example.localhost;
root /vagrant/frontend/www;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
@faizalmansor
faizalmansor / lemp-docker.md
Last active March 20, 2018 07:41
Learning Docker by creating Linux, NGINX, MySQL & PHP (LEMP) containers
@faizalmansor
faizalmansor / backup-to-remote-server-over-ssh.md
Last active April 15, 2024 22:14
Backup To Remote Server over SSH

Backup To Remote Server over SSH

Background Info

  • Server A: Production Server, Example IP: 192.168.0.41
  • Server B: Backup Server, Example IP: 192.168.0.51

Overview

Backup a folder in Server A and send tarred file to Server B

Step 1: Setup SSH Public Key Based Authentication

@faizalmansor
faizalmansor / webhook.md
Last active December 15, 2020 12:39
Setting up Auto-Deploy to Server with GitLab WebHook

Setting up Auto-Deploy to Server with GitLab WebHook

Original Resource (in Russian): http://yiiframework.ru/forum/viewtopic.php?t=22253

Create ssh keys for Apache or Nginx

Important: Server SSH-Key must be made without passphrase!

You could have passphrase, then you'll need to use ssh-agent to store & run the passphrase.

@faizalmansor
faizalmansor / centos7-php7-mssql-driver.md
Last active October 4, 2020 14:45
How to Install PHP 7.0 MSSQL Driver on CentOS 7
@faizalmansor
faizalmansor / raspi-zero-w-golang.md
Last active February 3, 2025 02:29
Installing Go on Raspberry Pi Zero W
wget https://dl.google.com/go/go1.9.3.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.9.3.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
@faizalmansor
faizalmansor / install-moodle35-centos7-nginx.md
Last active June 20, 2020 22:19
How to Install Moodle 3.5 on Centos 7 with Nginx

How to Install Moodle 3.5 on Centos 7 with nginx

Prepare the environment

Step 1 — Installing Nginx on CentOS 7

Since Nginx is not available in default CentOS repositories, we will install EPEL repository by running this command:

yum install epel-release -y

Install nginx

@faizalmansor
faizalmansor / ost-oassi-centos7.sh
Created April 18, 2019 06:15
BASH Script to automate fail2ban installation and configuration on Centos 7
#!/bin/bash
# Script : ost-oassi-centos7.sh
# Author : Osh <[email protected]>
# Title : Osh Automated Server Security Installer
# Description: Script to automate installation & configuration of fail2ban
# Target OS : Centos 7
echo "Start Osh Automated Server Security Installer..."