- Download and make it executable
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
sudo cp MailHog_linux_amd64 /usr/local/bin/mailhog
sudo chmod +x /usr/local/bin/mailhog
- Make MailHog as a service
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=nobody # <-- wordpress owner (if you use shared host, but if use VPS like me try your user and group instead) | |
WP_GROUP=nogroup # <-- wordpress group. |
Installing Arch: | |
sudo vim /etc/pacman.conf | |
Update packages list: sudo pacman -Syy | |
run sudo pacman -Syu before installing any software (to update the repositories first) | |
* Timing issue: | |
- Change hardware clock to use UTC time: | |
sudo timedatectl set-local-rtc 0 |
#!/bin/sh | |
# Information from openwrt.org wiki: | |
# https://wiki.openwrt.org/doc/howto/wget-ssl-certs | |
# | |
# Script written by oct8l (www.oct8l.com) | |
# | |
# Script licensed as CC BY-NC-SA 3.0 | |
# (https://creativecommons.org/licenses/by-nc-sa/3.0) |
This installation is going to require 2 servers one acts as kerberos KDC server
and the other machine is going to be client. Lets assume the FQDN's are (here
cw.com
is the domain name, make a note of the domain name here):
Important: Make sure that both systems have their hostnames properly set and both systems have the hostnames and IP addresses of both systems in
################################## | |
# WORDPRESS NGINX CONFIGURATIONS | |
################################## | |
# /etc/nginx/wordpress.conf | |
# | |
# Contains a common configuration for use by nginx on a WordPress | |
# installation. This file should be included in any WordPress site | |
# nginx virtual host config located in sites-available with the following line: | |
# | |
# include /etc/nginx/wordpress.config; |
Ubuntu 14.04
.Secure Group Inbound Rules
, add a SSH Rule(TCP, Port 22, 0.0.0.0/0)
and a Custom TCP Rule(TCP, Port 1723, 0.0.0.0/0)
.sudo apt-get install pptpd
.sudo vim /etc/pptpd.conf
. Uncomment localip 192.168.0.1
and remoteip 192.168.0.234-238,192.168.0.245
.sudo vim /etc/ppp/pptpd-options
. Uncomment ms-dns
and ms-wins
. Change the IP to Google's DNS like this:
<?php | |
// in functions.php | |
add_theme_support( 'post-thumbnails'); | |
/* | |
Wordpress crop an image = 5 size. Sizes are given below | |
thumbnail // Thumbnail (default 150px x 150px max) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |