Skip to content

Instantly share code, notes, and snippets.

@ordinaryegi
ordinaryegi / codeiginter-server-config.md
Created October 31, 2020 01:49 — forked from yidas/codeiginter-server-config.md
Codeigniter 3 server configuration for Nginx & Apache

Codeigniter 3 server configuration for Nginx & Apache

Web Server Site Configuration

Recommended Apache Configuration

Use the following configuration in Apache's httpd.conf file or within a virtual host configuration. Note that you should set DocumentRoot and ServerName fit to your environment:

@ordinaryegi
ordinaryegi / hiawatha.sh
Created June 19, 2017 06:44 — forked from ZEROF/hiawatha.sh
Hiawatha web server install script (Hiawatha,PHP-FPM,MariaDB)
#!/bin/bash
# This script will help you to set Hiawatha Server.
# Tested on Devuan 8 32/64bit. Debian Jessie supported as well.
# Script author ZEROF <zerof at backbox dot org>
# If you like Linux and security join http://backbox.org
# Script version 0.6c
# This script is distributed under a DO WHAT THE F*** YOU WANT TO PUBLIC LICENSE.
# http://www.wtfpl.net/txt/copying/
clear
function banner ()
@ordinaryegi
ordinaryegi / vhost
Created May 16, 2017 06:40 — forked from gistwebdev/vhost
Script to create apache2 virtual hosts
#!/bin/bash
#
# Display usage info
vhost-usage() {
cat <<"USAGE"
Usage: vhost [OPTIONS] <name>
-h|--help this screen
-pub to create the webhost root in ~/www/name/public/
-url to specify a local address, default is http://name.local
@ordinaryegi
ordinaryegi / node.conf
Created February 26, 2016 08:58 — forked from SunDi3yansyah/node.conf
Configuration NGINX with NodeJS
map $http_origin $cors_header {
default "";
"~^http?://[^/]+\.sundi3yansyah\.id(:[0-9]+)?$" "$http_origin";
}
server {
listen 80;
server_name node.sundi3yansyah.id;
location / {
@ordinaryegi
ordinaryegi / gist:86b2140cf42f19ebbd35
Created February 11, 2016 07:52 — forked from plepe/gist:52ecc9f18efb32c68d18
MDADM and LVM cheat sheet

mdadm

Glossary:

  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0
@ordinaryegi
ordinaryegi / html5slides
Created February 3, 2016 13:43 — forked from joshuapekera/html5slides
Google's HTML5 slide template
<!DOCTYPE html>
<!--
Google HTML5 slide template
Authors: Luke Mahé (code)
Marcin Wichary (code and design)
Dominic Mazzoni (browser compatibility)
Charles Chen (ChromeVox support)
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;