Skip to content

Instantly share code, notes, and snippets.

View basoro's full-sized avatar

Basoro basoro

View GitHub Profile
<?php
/**
* H3K | Tiny File Manager
* CCP Programmers
* http://fb.com/ccpprogrammers
* https://github.com/prasathmani/tinyfilemanager
*/
// Default language
$lang = 'en';
@basoro
basoro / centos6-khanza.sh
Last active March 17, 2019 10:47
Cara mudah instalasi Server SIMRS Khanza di Linux Centos 6 Minimal.
#!/bin/bash
#####################################
# SILAHKAN SESUAIKAN YG DIBAWAH INI #
# User : admin #
# Pass : nimda #
#####################################
printf "admin:$(openssl passwd -crypt nimda)\n" >> ~/.htpasswd
###################
@basoro
basoro / nginx-php-mysql-from-source
Created July 10, 2018 22:42
Configure Nginx, PHP-FPM, MySQL from source
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#set the password of mysql
echo "========================================="
mysqlrootpwd="root"
echo "Please input the root password of mysql:"
read -p "(Default password: root):" mysqlrootpwd
if [ "$mysqlrootpwd" = "" ]; then
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: setup-vhost <hostname> (without the www. prefix)"
exit
fi
# Checking Permissions and making directorys
mkdir "/var/www/$1"
@basoro
basoro / setup-centos6.sh
Last active June 26, 2018 05:04
Fast and Dirty Nginx, PHP-FPM 5.6 and MySQL 5.5 for Centos 6.x
#!/bin/bash
###################
# disable selinux #
###################
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g'/etc/selinux/config
##############################
Turn Your Windows PC into a Wi-Fi Hotspot from the Command Line
map $uri $blogname{
~^(?P<blogpath>/[^/]+/)files/(.*) $blogpath ;
}
map $blogname $blogid{
default -999;
#Ref: http://wordpress.org/extend/plugins/nginx-helper/
#include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ;
}
@basoro
basoro / setup-centos-5.sh
Created April 5, 2016 23:03
Install script nginx, php55-fpm, mysql, vhost for 128mb vps for centos 5
#!/bin/bash
##############################
# disable un-needed services #
##############################
service httpd stop 
chkconfig httpd off
service xinetd stop
chkconfig xinetd off
service saslauthd stop