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 / 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 / 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 / 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 / lemp-docker.md
Last active March 20, 2018 07:41
Learning Docker by creating Linux, NGINX, MySQL & PHP (LEMP) containers
@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 / python-nfc.md
Created August 3, 2016 05:52
Python NFC Card on Windows 10
@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 / web.xml
Created May 27, 2016 10:27
web.xml for UrlRewriteFilter in CFWheels 1.4 running on Lucee 5
<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
</filter>
<filter-mapping>
@faizalmansor
faizalmansor / Vagrantfile
Created April 19, 2016 12:38
Vagrant file for myopensoft/devbox
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.box = "myopensoft/devbox"
config.vm.network "private_network", ip: "192.168.33.10"
@faizalmansor
faizalmansor / Vagrantfile
Created April 19, 2016 11:33
Vagrantfile for oshpilaf/devbox-centos7
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at