This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################## | |
# disable un-needed services # | |
############################## | |
service httpd stop | |
chkconfig httpd off | |
service xinetd stop | |
chkconfig xinetd off | |
service saslauthd stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Turn Your Windows PC into a Wi-Fi Hotspot from the Command Line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################### | |
# disable selinux # | |
################### | |
setenforce 0 | |
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g'/etc/selinux/config | |
############################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################### | |
# SILAHKAN SESUAIKAN YG DIBAWAH INI # | |
# User : admin # | |
# Pass : nimda # | |
##################################### | |
printf "admin:$(openssl passwd -crypt nimda)\n" >> ~/.htpasswd | |
################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* H3K | Tiny File Manager | |
* CCP Programmers | |
* http://fb.com/ccpprogrammers | |
* https://github.com/prasathmani/tinyfilemanager | |
*/ | |
// Default language | |
$lang = 'en'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install software-properties-common python-software-properties | |
add-apt-repository 'deb http://packages.dotdeb.org wheezy-php56 all' | |
add-apt-repository 'deb-src http://packages.dotdeb.org wheezy-php56 all' | |
~~~~~~~~~~~~ jessy | |
add-apt-repository 'deb http://packages.dotdeb.org jessie all' | |
add-apt-repository 'deb-src http://packages.dotdeb.org jessie all' | |
~~~~~~~~~~~~ | |
wget http://www.dotdeb.org/dotdeb.gpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TigerVnc < Formula | |
homepage "http://tigervnc.org/" | |
url "https://github.com/TigerVNC/tigervnc/archive/v1.9.0.tar.gz" | |
sha256 "f15ced8500ec56356c3bf271f52e58ed83729118361c7103eab64a618441f740" | |
depends_on "cmake" => :build | |
depends_on "gnutls" => :recommended | |
depends_on "jpeg-turbo" | |
depends_on "gettext" | |
depends_on :x11 |
OlderNewer