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 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'];
@bosunski
bosunski / promise.php
Last active Jun 11, 2019
Describes a Promise
View promise.php
<?php
class Promise {
private $resolvedStack = [];
private $catches = [];
public function then(callable $resolved): Promise
{
array_push($this->resolvedStack, $resolved);
}
View StoreHouse.md

Things Used

  • GitHub - For Source hosting
  • Digital Ocean - For Hosting
  • MailGun - For mails processed on the Server, both for sending and Receiving
  • Travis CI - For Continuous integration and Auto deployment
  • WhogoHost - For Domain Name
  • Paystack - For Payment Processing
  • Laravel - Framework the app is built upon
  • Redis - For Queues
  • MySQL - For Database
@bosunski
bosunski / homebrew-permissions-issue.md
Created Feb 13, 2019 — forked from irazasyed/homebrew-permissions-issue.md
Homebrew: Permissions Denied Issue Fix (OS X / macOS)
View homebrew-permissions-issue.md

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*

View detectNewLineUpdatesOnFile.php
<?php
$fileCache = "LastLine.txt";
$oldLastLine = getLastLine($fileCache);
function getLastLine($cachePath)
{
if (file_exists($cachePath))
return file_get_contents($cachePath);
return 0;
You can’t perform that action at this time.