Skip to content

Instantly share code, notes, and snippets.

View chrisforrence's full-sized avatar
🐦

Chris Forrence chrisforrence

🐦
View GitHub Profile

Continuous Everything

Nowadays, it's become easier for developers to handle DevOps tasks, and doing that makes you more marketable. Today, we'll do a quick overview on what the buzzwords actually mean and whether it's a good idea or not to implement continuous integration, continuous deployment, and continuous delivery into your workflow. We'll dive into setting up CI/CD within GitLab and using it to build, test and deploy a web application!

@chrisforrence
chrisforrence / call_codes.php
Created February 24, 2017 17:08
ISO codes with calling codes
<?php
return [
"AD" => "376",
"AE" => "971",
"AF" => "93",
"AG" => "1268",
"AI" => "1264",
"AL" => "355",
"AM" => "374",
@chrisforrence
chrisforrence / MakeViewCommand.php
Last active December 13, 2016 17:13 — forked from umefarooq/Laravel 5.2 MakeViewCommad
Laravel 5 make:view command
<?php
/**
* Original: https://gist.github.com/sahibalejandro/1030d43259a6fe95f79f
*
* To install:
* - `php artisan make:command MakeViewCommand`
* - Copy the contents of this file into the created file
* - Edit ./app/Console/Kernel.php and add `MakeViewCommand::class,` to the `$commands` array
*/
@chrisforrence
chrisforrence / MySQLRevision.php
Last active March 20, 2017 09:16
CLI script to create revision table and associated triggers for specified table
<?php
/**
* Creates a revision table for an already-existing table.
* TODO: Better error checking/handling
* TODO: Sanitize table name input
*
* Usage:
* [user@host]$ php MySQLRevision.php
* // Table name: <enter table name>
<?php
/**
* Database Connection class.
*
* Example:
* $dbi = DBConnection::getInstance();
* $q = "SELECT * FROM Users WHERE Username=?";
* $a = array($_GET['username']);
* $users = $dbi->query($q, $a);
@chrisforrence
chrisforrence / Rollitude.js
Last active December 13, 2016 17:42
Rolls an N-sided die M times, keeping the top P results.
var FORTITUDE = 1, WILL = 2, REFLEX = 3;
var Player = {
"player": "",
"name": "",
"race": "",
"classes": [],
"fortitude": 0,
"reflex": 0,
"will": 0,
"strength": 0,