- Change router Ip to 192.168.1.200 and Disable the DHCP Server
- From wan make connection type (bridge), tick LAN1 LAN2 LAN3 LAN4 SSID1 SSID2 SSID3 and SSID4
- Choose service list only (INTERNET)
- Restart...
- Done
This file contains hidden or 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
server { | |
listen 80; | |
server_name laravel.dev; | |
root /var/www/vhosts/laravel.dev/public; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location / { |
This file contains hidden or 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
# Initial system update | |
sudo apt-get update && sudo apt-get upgrade | |
# Install system utilities | |
## TLP | |
sudo apt-get install tlp tlp-rdw | |
sudo tlp start | |
## Sublime Text 2 |
This file contains hidden or 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
You need to first remove the problematic Merge List and then re-create it. Open your terminal and run the following codes: | |
sudo rm /var/lib/apt/lists/* -vf | |
sudo rm /var/cache/apt/archives/lock | |
sudo rm /var/lib/dpkg/lock | |
sudo dpkg --configure -a | |
sudo apt-get update && sudo apt-get upgrade | |
This file contains hidden or 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
set nocompatible " Disable vi-compatibility | |
set t_Co=256 | |
colorscheme xoria256 | |
set guifont=menlo\ for\ powerline:h16 | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
set linespace=15 |
Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
public static function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts = array() ) {
$url = 'http://www.gravatar.com/avatar/';
$url .= md5( strtolower( trim( $email ) ) );
$url .= "?s=$s&d=$d&r=$r";
if ( $img ) {
$url = '<img src="' . $url . '"';
foreach ( $atts as $key => $val )
$url .= ' ' . $key . '="' . $val . '"';
$url .= ' />';
This file contains hidden or 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 | |
# Copyright (c) 2016 Jacob Martin | |
# MIT license | |
# Fixes the permissions of the application for secure serving. | |
# Note that "www-data" is used here; feel free to change this for your own | |
# web server's username. | |
# If you don't have permissions to modify files and folders in the first place, | |
# this script will not work for you until you fix that with: |
OlderNewer