Skip to content

Instantly share code, notes, and snippets.

View apampolino's full-sized avatar

apampolino apampolino

  • Manila, Philippines
View GitHub Profile
<VirtualHost>
ServerAdmin admin@localhost
ServerName localhost
DocumentRoot /var/www/html
ErrorLog /logs/error.log
CustomLog /logs/access.log common
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride all
server {
listen 80;
server_name development.local;
root /usr/share/nginx/html;
index index.php index.html index.htm;
server {
listen 80;
server_name example.com;
root /example.com/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
index index.html index.htm index.php;
server {
listen 80;
server_name slim-api.local;
index index.php;
error_log /var/log/nginx/slim.error.log;
access_log /var/log/nginx/slim.access.log;
root /usr/share/nginx/html/slim/slim3-oauth2/public;
location / {
try_files $uri /index.php$is_args$args;
echo '>>ADDING GOOGLE NAMESERVER'
echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
yum -y update
yum -y install wget git screen
echo '>>EPEL'
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#!/usr/bin/env bash
# Use single quotes instead of double quotes to make it work with special-character passwords
PASSWORD='password1234'
echo ">> Starting Install Script"
# Update
sudo yum -y update
#sudo rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm;
##################################################################################
vagrant
##################################################################################
vagrant up <boxname>
vagrant halt <boxname>
vagrant reload <boxname>
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-faster
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "web2" do |web2|
NGINX - DJANGO(PYTHON)
install the ff. per linux distro
REDHAT
openssl openssl-devel
sqlite sqlite-devel
#!/bin/bash
# -d (date string) is for test purposes only, will be replace by date only on backup server
LDMONTH=$(TZ=MST-24 date +%d)
#LDMONTH=1
ISMONDAY=$(date +%u)
#ISMONDAY=1
DAILY=$(date +%A)
#DAILY=Friday