Get a VPS that offers 2 or more IP addresses.
From the WHM cPanel, find the menu item Service Configuration
, select Apache Configuration
and then click on Reserved IPs Editor
.
#!/bin/bash | |
wget "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz" | |
tar -xf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure | |
make | |
make verify | |
sudo make install | |
sudo ldconfig |
FROM busybox | |
ARG PUID=1000 | |
ARG PGID=1000 | |
RUN addgroup -g ${PGID} abc && \ | |
adduser -D -u ${PUID} -G abc abc | |
USER abc |
<?php | |
/** | |
* Semantic UI | |
* Includes previous and next buttons | |
* @example $pages->links('pagination-advanced', ['paginator' => $pages]) | |
* @example @include('pagination-advanced', ['paginator' => $pages]) | |
* | |
* @link https://semantic-ui.com/collections/menu.html#inverted Inverted styles | |
* @see <div class="ui pagination inverted blue menu"> Inverted blue menu | |
**/ |
/* | |
Plugin Name: Patti | |
Description: Modify Wordpress Add New Post for Adding Patti Data | |
Version: 1.0 | |
Author: Ankit Agrawal | |
*/ | |
/****************************************************************************/ | |
/************************* ADD PATTI CUSTOM FIELDS *************************/ | |
add_action( 'admin_init', 'patti_admin' ); |
#!/usr/bin/env bash | |
# Update brew repo. | |
printf "%s" "Updating brew repo..." | |
brew update &> /dev/null | |
echo "✅" | |
# Get the currently installed and new version of nghttp2. | |
printf "%s" "Fetch installed and stable nghttp2 versions..." | |
VERSION_INSTALLED="$(brew list --versions | grep nghttp2 | awk '{print $2}')" |
#!/bin/bash | |
# | |
# Kali Docker Setup Script | |
# @decidedlygray 20180902 | |
# LICENSE: MIT | |
# | |
# Steps taken from: https://docs.docker.com/install/linux/docker-ce/debian/ | |
# And: https://medium.com/@airman604/installing-docker-in-kali-linux-2017-1-fbaa4d1447fe | |
# Install uses the repository, so we can get updates in the future |
<?php | |
function getRealIpAddr() | |
{ | |
if ( !empty( $_SERVER['HTTP_CLIENT_IP'] ) ) | |
{ |
<?php | |
include __DIR__ . '/threads.php'; | |
$commands = array(); | |
for ( $i=0; $i<10; $i++ ) { | |
$commands[] = "bash -c 'sleep `shuf -i 1-5 -n 1`; echo $i'"; | |
} |
#You should do all your LAMP development in a Virtual Machine
##Here's Why:
Many of us develop on Macintoshes. There are many reasons for this, but one of them is that it's based on a Unix platform of some sort. This allows us to run common server software such as Apache, Ruby, Python and Nodejs on our Macs.
Our computers become powerful develoment machines similar to the servers our apps will eventually live on.
Sometime we start our computer only to find Apache won't start, or MySQL can't create a PID file, or we've updated to Mountain Lion and Apache needs to be reconfigured. Death!