Skip to content

Instantly share code, notes, and snippets.

:octocat:
Sleeping Here!

Olatunbosun Egberinde bosunski

:octocat:
Sleeping Here!
Block or report user

Report or block bosunski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Continous_Integration_and_Deployment_with_Travis_and_digital_ocean.md

Continous Integration and Deployment with Travis and Digital Ocean

In this article I will be showing how you can create continuous integration and deployment for you app development process. In other words, I'll be showing you how you can create a Build-Test-Deploy process while developing your app.

The goal is that when you edit my code locally, commit the changes, then push to github, tests will run automatically against the update you made in the code and if all tests were passed, the deploy process will be initiated, otherwise, the deploy process will not be initiated. That is the summary of what we're going to be doing.

To demonstrate this, I will be deploying a Laravel app in this article, the focus is not on the coding aspect but on the integration and deployment aspect. I will assume that the Laravel project to be deployed has tests and is ready for deployment. Once the concept in this article is gotten, it can be applied to other forms of deployment that follows the Build-Test-Deploy cycle.

@bosunski
bosunski / gist:c934c663c7b6f0cbe2298bff54181e01
Created Apr 8, 2020 — forked from kapkaev/gist:4619127
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. Resque
View gist:c934c663c7b6f0cbe2298bff54181e01
$ redis-cli
> config set stop-writes-on-bgsave-error no
@bosunski
bosunski / README.md
Created Jan 31, 2020 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
View README.md
View sample.json
{
"price": 21975,
"customization": {
"id": 5,
"name": "Cooo",
"features": [
{
"id": 36,
"name": "Colar",
"unit": "dB",
View awesome_async.md
View event.json
{
"event": "charge.success",
"data": {
"id": 84,
"domain": "test",
"status": "success",
"reference": "9cfbae6e-bbf3-5b41-8aef-d72c1a17650g",
"amount": 50000,
"message": null,
"gateway_response": "Approved",
@bosunski
bosunski / server.php
Created Oct 18, 2019 — forked from IvanChepurnyi/server.php
Simple multi-process ReactPHP server with workers control
View server.php
<?php
/**
* Copyright © EcomDev B.V. All rights reserved.
* See LICENSE.txt for license details.
*/
declare(strict_types=1);
$port = $argv[1];
$serverName = $argv[2];
View font.css
@font-face {
font-family: "Brandon Text";
src: url(/assets/fonts/BrandonText-Regular.woff2);
}
@font-face {
font-family: Brandon Text;
src: url("/assets/fonts/BrandonText-Light.woff2") format("woff2"), url("/assets/fonts/BrandonText-Light.woff") format("woff");
font-weight: 300;
font-style: normal
View Atom-Settings.txt
gist token=1d177d749a5d57a8676fa77f737892c285eb1376
gist id=a53f646ca33cd140560d78eeed5a9c5b
@bosunski
bosunski / closure_callable.php
Created Jun 13, 2019
A brief explannation of Callables and Closures.
View closure_callable.php
<?php
// An Anonymous Class or Normal Classes
$class = new class {
public function method() {
echo 'In a Class!', PHP_EOL;
}
};
// We can write this ... 🤔
$arrayLikeCallable = [new $class, 'method'];
You can’t perform that action at this time.