Start up a container (whichever Linux flavour takes your fancy):
docker run -it ubuntu /bin/bash
docker run -it centos /bin/bash
# 1. Install brew --> http://brew.sh/ | |
# 2. run the following commands in your Terminal | |
brew tap homebrew/dupes | |
brew tap homebrew/versions | |
brew tap homebrew/homebrew-php | |
brew install --with-openssl curl | |
brew install --with-homebrew-curl --with-apache php71 | |
brew install php71-mcrypt php71-imagick | |
# 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot. | |
brew info php71 |
#!/bin/sh | |
# This script runs every other night at 04:56 CET on a webserver I maintain | |
# Results are always at: https://jult.net/block.txt ( or https://jult.net/block.txt.gz ) | |
# And much smaller, stripped of BS; https://jult.net/bloc.txt | |
# For use in Tixati IP filter: https://jult.net/bloc.txt.gz !!! | |
# And finally a txt file with just the bold IP-ranges: https://jult.net/bl.txt (or https://jult.net/bl.txt.gz ) | |
# Download open block-lists, unpack, filter: | |
curl -s https://www.iblocklist.com/lists.php | grep -A 2 Bluetack | xargs wget -qO - --limit-rate=500k | gunzip -f | egrep -v '^#' > /tmp/xbp |
$ ssh <mydomain.com>
$ dokku apps:create
function prompt_wikimatze_precmd { | |
git-info | |
} | |
function prompt_wikimatze_setup { | |
setopt LOCAL_OPTIONS | |
unsetopt XTRACE KSH_ARRAYS | |
prompt_opts=(cr percent subst) | |
# Load required functions. |
# Title: Gfycat JS tags for Jekyll | |
# Author: Harry Denholm, ishani.org | |
# Description: plug the custom gfycat image tags into a page | |
# | |
# updated 02/02/2016 | |
# | |
# Syntax {% gfycat gfy_name %} | |
# | |
# Example: | |
# {% gfycat LateLikelyDassierat %} |
############################################################ | |
# Dockerfile to build web host container images | |
# Based on Ubuntu, Django, uwsgi, and Nginx | |
############################################################ | |
# Set the base image to Ubuntu | |
FROM ubuntu:14.04 | |
# File Author / Maintainer | |
MAINTAINER TK - simpleloop |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)Without wasting much time, Let us get started!
Follow these simple instructions:
Step 1: Login into your WHM panel and using easyapache
enable Memcache
Step 2: SSH into your server and fire this command yum install memcached.x86_64 php-pecl-memcache.x86_64