Skip to content

Instantly share code, notes, and snippets.

View mofesolapaul's full-sized avatar
🇱🇹
Probably creating stuff

Mofesola Banjo mofesolapaul

🇱🇹
Probably creating stuff
View GitHub Profile
@mofesolapaul
mofesolapaul / _nigerian_states.xml
Last active June 16, 2022 14:31
Alphabetically ordered list of Nigerian states as array values XML, ready to use as android app resource. Also contains an xml for all Nigerian local government areas
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="nigerian_states">
<item>Abia</item>
<item>Adamawa</item>
<item>Akwa Ibom</item>
<item>Anambra</item>
<item>Bauchi</item>
<item>Benue</item>
<item>Borno</item>
@mofesolapaul
mofesolapaul / gist:8d3a399f873f103357ea840c45ead5b6
Created May 31, 2018 19:20
How to set up php-fpm7.1 with nginx

This took forever for me to figure out, so I'm doing you a solid to ensure you don't spend as much time as I did.

I assume you have php7.1 installed already, the only ish is the -fpm

Run sudo apt-cache search php7.1 This will show you a lot of related packages you can grab

Now run sudo apt-get install php7.1-fpm And you're saved!

@mofesolapaul
mofesolapaul / VideoStream.php
Created January 17, 2018 13:18 — forked from ranacseruet/VideoStream.php
PHP VideoStream class for HTML5 video streaming
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
@mofesolapaul
mofesolapaul / world-continents.php
Created August 2, 2017 13:01
PHP array of continents in the world and their countries
<?php
$continents = [
'Africa' => array('Algeria','Angola','Benin','Botswana','Burkina Faso','Burundi','Cabo Verde','Cameroon','Central African Republic','Chad','Comoros','Democratic Republic of the Congo','Republic of the Congo','Cote d\'Ivoire','Djibouti','Egypt','Equatorial Guinea','Eritrea','Ethiopia','Gabon','Gambia','Ghana','Guinea','Guinea Bissau','Kenya','Lesotho','Liberia','Libya','Madagascar','Malawi','Mali','Mauritania','Mauritius','Morocco','Mozambique','Namibia','Niger','Nigeria','Rwanda','Sao Tome and Principe','Senegal','Seychelles','Sierra Leone','Somalia','South Africa','South Sudan','Sudan','Swaziland','Tanzania','Togo','Tunisia','Uganda','Zambia','Zimbabwe'),
'NorthAmerica' => array('Antigua and Barbuda','Bahamas','Barbados','Belize','Canada','Costa Rica','Cuba','Dominica','Dominican Republic','El Salvador','Grenada','Guatemala','Haiti','Honduras','Jamaica','Mexico','Nicaragua','Panama','Saint Kitts and Nevis','Saint Lucia','Saint Vincent and the Grenadines','Trinidad and To
@mofesolapaul
mofesolapaul / nigeria-states-and-local-govts.json
Last active April 10, 2024 05:11
Json array containing objects of each Nigerian state, and their local governments
[
{
"state": "Abia",
"lgas": [
"Aba North",
"Aba South",
"Arochukwu",
"Bende",
"Ikawuno",
"Ikwuano",
@mofesolapaul
mofesolapaul / nigeria-states.json
Last active April 13, 2024 19:25
List of all Nigerian states, alphabetically arranged in JSON array
[
"Abia",
"Adamawa",
"Akwa Ibom",
"Anambra",
"Bauchi",
"Bayelsa",
"Benue",
"Borno",
"Cross River",