Skip to content

Instantly share code, notes, and snippets.

View richardkeep's full-sized avatar
🏠
:)

Richard Keep richardkeep

🏠
:)
View GitHub Profile
@richardkeep
richardkeep / install.sh
Created February 19, 2019 08:08
VPS install bash script for Ubuntu 16.04
# =================== YOUR DATA ========================
SERVER_NAME="some-server-name"
SERVER_IP="111.111.11.11"
USER="someuser"
SUDO_PASSWORD="secret-password-one"
MYSQL_ROOT_PASSWORD="secret-password-two"
@richardkeep
richardkeep / msisdn_regex.txt
Created November 29, 2017 19:24 — forked from muya/msisdn_regex.txt
Regex for Safaricom Kenya, Airtel Kenya & Tigo Tanzania Phone Numbers
# KE
SAFARICOM: "/(\+?254|0|^){1}[-. ]?[7]{1}([0-2]{1}[0-9]{1}|[9]{1}[0-2]{1})[0-9]{6}\z/"
AIRTEL: "/(\+254|0|^){1}[-. ]?[7]{1}([3]{1}[0-9]{1}|[8]{1}[5-9])[0-9]{6}\z/"
# TZ
TIGO: "/(\+?255|0|^){1}[-. ]?([7]{1}[1]{1}[2-9]{1}|[6]{1}[57]{1}[2-9]{1})[0-9]{6}\z/"
<?php
namespace Acme
class Post extends Model
{
protected $table = 'posts';
}