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!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FORTITUDE = 1, WILL = 2, REFLEX = 3; | |
var Player = { | |
"player": "", | |
"name": "", | |
"race": "", | |
"classes": [], | |
"fortitude": 0, | |
"reflex": 0, | |
"will": 0, | |
"strength": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Database Connection class. | |
* | |
* Example: | |
* $dbi = DBConnection::getInstance(); | |
* $q = "SELECT * FROM Users WHERE Username=?"; | |
* $a = array($_GET['username']); | |
* $users = $dbi->query($q, $a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
"AD" => "376", | |
"AE" => "971", | |
"AF" => "93", | |
"AG" => "1268", | |
"AI" => "1264", | |
"AL" => "355", | |
"AM" => "374", |