Skip to content

Instantly share code, notes, and snippets.

View cdtweb's full-sized avatar
🏠
Working from home

Clint Tyler cdtweb

🏠
Working from home
  • CDT Web Solutions, LLC
  • Murray, UT
View GitHub Profile
@cdtweb
cdtweb / ubuntu-php71-install.sh
Created February 22, 2017 22:17
Ubuntu PHP 7.1 Installer
#!/bin/bash
# Works with Ubuntu 14.04 - 16.10:
# See https://launchpad.net/~ondrej/+archive/ubuntu/php for more information
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.1
@cdtweb
cdtweb / shell-infinit-loop
Last active October 6, 2016 20:21
Run shell command infinitely
while true; do [command]; done;
@cdtweb
cdtweb / basic-apache2-virtualhost
Created October 6, 2016 20:16
Basic Apache VirtualHost
<VirtualHost *:80>
ServerAdmin admin@example.org
DocumentRoot /var/www/example.org/public
ServerName example.org
ServerAlias www.example.org
<Directory /var/www/example.org/public>
Options All
AllowOverride All
Require all granted
</Directory>
@cdtweb
cdtweb / codeigniter-restful-remap.php
Last active August 29, 2015 14:03
RESTful remap method for CodeIgniter controllers
<?php
/**
* RESTful remap method for CodeIgniter controllers
*
* @author Clint Tyler <ctyler@cdtwebsolutions.com>
*/
class MY_Controller extends CI_Controller
{
public function _remap($method, $arguments = array())
{