Skip to content

Instantly share code, notes, and snippets.

View adityamr15's full-sized avatar
๐Ÿœ
I may be slow to respond.

Aditya Meilaz Rahmanto adityamr15

๐Ÿœ
I may be slow to respond.
View GitHub Profile
@adityamr15
adityamr15 / nginx-vhost.conf
Created August 18, 2016 06:25 — forked from tjstein/nginx-vhost.conf
nginx vhost config for WordPress + PHP-FPM
upstream php-fpm {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name www.example.com;
rewrite ^ http://example.com$request_uri?;
}
@adityamr15
adityamr15 / perfectelementary.bash
Created July 23, 2016 17:39
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@adityamr15
adityamr15 / n2dissite
Created July 21, 2016 02:30 — forked from Lexty/n2dissite
nginx virtual host management
#!/bin/bash
VHOSTEN="/etc/nginx/sites-enabled/"
if [[ $1 == "-h" ]] || [[ $1 == "--help" ]]
then
echo 'Usage: n2dissate VHOST'
echo 'Disables Nginxs virtualhost VHOST.'
echo -e ' -h, --help\tDisplay this help'
exit 0
@adityamr15
adityamr15 / wp.dev
Created July 21, 2016 02:29 — forked from azappella/wp.dev
nginx wordpress virtual host
upstream php-fpm {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name www.wp.dev;
rewrite ^ http://wp.dev$request_uri?;
}
@adityamr15
adityamr15 / nginx.conf
Created July 21, 2016 02:28 — forked from denys281/nginx.conf
Symfony2 nginx virtual host (php-fpm)
server {
listen 80;
# Server name being used (exact name, wildcards or regular expression)
server_name mysite.com;
client_max_body_size 20M;
# Document root, make sure this points to your Symfony2 /web directory
root /home/user/sites/mysite.com/web;
@adityamr15
adityamr15 / default.conf
Created July 20, 2016 06:33 — forked from cbmd/default.conf
nginx config - dynamic virtual hosts
server {
index index.php;
set $basepath "/var/www";
set $domain $host;
# check one name domain for simple application
if ($domain ~ "^(.[^.]*)\.dev$") {
set $domain $1;
set $rootpath "${domain}";