Skip to content

Instantly share code, notes, and snippets.

View tigefa4u's full-sized avatar
📉
🚀 😧 ☕ 🚬

Sugeng Tigefa tigefa4u

📉
🚀 😧 ☕ 🚬
View GitHub Profile
@tigefa4u
tigefa4u / node_apache.apacheconf
Created February 22, 2016 22:42 — forked from iMagdy/node_apache.apacheconf
This virtualhosts snippet will make your nodejs app run on the traditional port 80, so mynodeapp.com:3000 will simply work on mynodeapp.com without adding :3000. it's that simple :) remember to enable apache modules proxy and proxy_http ($ sudo a2enmod proxy && sudo a2enmod proxy_http)
<VirtualHost *:80>
ServerAdmin isl@m.magdy
ServerName js.io
ServerAlias js.io
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
@tigefa4u
tigefa4u / redmine-unicorn-apache
Created February 5, 2016 21:23 — forked from danguita/redmine-unicorn-apache
Apache VirtualHost config with Unicorn workers proxy
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
ServerName redmine.yourdomain.com
DocumentRoot /home/service/apps/redmine/public
RewriteEngine On
<Proxy balancer://unicornservers>
@tigefa4u
tigefa4u / .explications_wp.md
Created February 5, 2016 19:28 — forked from Art2B/.explications_wp.md
Easy Wordpress with Apache2 on Ubuntu

#Easy Wordpress with Apache on Ubuntu

For the following instructions, I've use apache2 with ubuntu 14.04. The objective here is to setup quickly a wordpress site with a local domain name.

Create your Virtual host

Personnaly I follow this tutorial (french only). For your conf file, Copy the conf file I've uploaded.

##Setup Apache2 mod You need to enable mod_rewrite on apache to allow you to choose whatever url style you want. To do this run a2enmod rewrite then restart apache.

@tigefa4u
tigefa4u / apache2.conf.md
Created February 5, 2016 18:42 — forked from codespore/apache2.conf.md
Apache + Unicorn

Setting up Apache on Ubuntu to proxy to Unicorn requires the following installation commands:

  • apt-get install apache2 -y
  • apt-get install libapache2-mod-proxy-html libxml2-dev -y
  • a2enmod headers
  • a2enmod proxy
  • a2enmod proxy_http
  • a2enmod proxy_balancer
  • a2enmod rewrite
  • a2enmod ssl
@tigefa4u
tigefa4u / apache-proxy-vhost
Created February 4, 2016 21:27 — forked from joergpatz/apache-proxy-vhost
apache-proxy-vhost
# Forward Proxy
<VirtualHost *:80>
ServerAdmin admin@localhost
RewriteEngine On
ProxyPreserveHost On
RewriteRule ^/(.*) http://<HOST-OR-IP>/$1 [P]
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
@tigefa4u
tigefa4u / gist:f6393fc6e581a47362a8
Created January 27, 2016 19:36 — forked from faleev/gist:3435377
Compile FFmpeg on Ubuntu

Compile FFmpeg on Ubuntu

This guide supports Ubuntu Precise Pangolin 12.04, Ubuntu Oneiric Ocelot 11.10, Ubuntu Natty Narwhal 11.04, and Ubuntu Maverick Meerkat 10.10. Separate guides are available for Ubuntu Lucid Lynx 10.04 and Ubuntu Hardy Heron 8.04. This guide will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide](https://ffmpeg.org/trac/ffmpeg/wiki/Fi

@tigefa4u
tigefa4u / ubuntu-server-setup.md
Last active January 27, 2016 17:44 — forked from jasperf/ubuntu-server-setup.md
Ubuntu Server Setup History installing Apache, mysql, PHP, git, SSH, WordPress using Backup buddy backup #lamp #ubuntu #wordpress

Ubuntu Server Setup

Installing LAMP Stack

Update All

sudo apt-get update
@tigefa4u
tigefa4u / maxmind_update.sh
Created January 8, 2016 18:01 — forked from vstoykov/maxmind_update.sh
Download MaxMind free database and place it in default location for pygeoip
#!/bin/bash
if [ `whoami` != 'root' ]; then
echo "You must to be root"
exit
fi
DOWNLOAD_URL="http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz"
TEMPFILE="/tmp/GeoIPCity.dat"
TEMPFILEGZ="$TEMPFILE.gz"
GEOIP_DIR="/usr/local/share/GeoIP"
@tigefa4u
tigefa4u / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
  1. sudo apt-get purge apache2

  2. sudo /etc/init.d/apache2 stop

  3. sudo update-rc.d -f apache2 remove

  4. sudo rm -rf /etc/apache2

  5. sudo rm /etc/init.d/apache2