Skip to content

Instantly share code, notes, and snippets.

View joshuamabina's full-sized avatar
🎯
Focusing

Joshua Mabina joshuamabina

🎯
Focusing
View GitHub Profile
@joshuamabina
joshuamabina / .editorconfig
Last active June 1, 2018 10:26
EditorConfig is awesome (http://editorconfig.org)
# EditorConfig is awesome: http://EditorConfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
@joshuamabina
joshuamabina / LICENSE
Last active March 12, 2016 12:20
WTFPL gist
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@joshuamabina
joshuamabina / phpunit.xml
Last active May 22, 2016 04:52
Awesome PHPUnit Config Template
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="true">
@joshuamabina
joshuamabina / TestCase.php
Last active September 30, 2016 10:00
Awesome TestCase
<?php
class TestCase extends Illuminate\Foundation\Testing\TestCase
{
/**
* The base URL to use while testing the application.
*
* @var string
*/
protected $baseUrl = 'http://localhost';
@joshuamabina
joshuamabina / Makefile
Last active July 24, 2016 21:42
GNU Make unicorns.
# GNU Make unicorns.
# TODO: Tests - Solve the problem first, then write the code
# TODO: Lints - Enforce Google's C++ style guide
# The main C+ compiler
CC = g++
# The main Shell environment
SHELL = /bin/bash
@joshuamabina
joshuamabina / .bash_aliases
Last active November 23, 2016 14:33
An awesome list of bash aliases.
alias diff="colordiff"
alias less="less -r"
alias md='/usr/local/bin/markdown2'
alias yt='/usr/local/bin/youtube-dl'
@joshuamabina
joshuamabina / default.conf
Last active September 20, 2016 18:58
Awesome apache config file starter.
<VirtualHost *:80>
Define APP_NAME app
Define PROJECT_ROOT /var/www/${APP_NAME}
ServerName ${APP_NAME}.local
DocumentRoot ${PROJECT_ROOT}/public/index.php
<Directory "${PROJECT_ROOT}/public">
Options FollowSymLinks
AllowOverride All
@joshuamabina
joshuamabina / debug.css
Created January 31, 2017 12:35
Turn of the lights, baby!
/* debug.css */
/* Turn off the lights, baby! */
html, body, header, section, div, ul, li, footer, a, span, button, form, input, textarea { background: #333 !important; color: #fff !important; }
h1, h2, h3, h4, h5, h6, p { color: #fff !important; }
a, a.navbar-brand, .btn-link { color: #3c3 !important; border-color: #3c3 !important; }
.btn { background: #333 !important; border-color: #111; color: #fff; }
.progress-bar { background: #3c3 !important; }
@joshuamabina
joshuamabina / index.html
Last active June 17, 2020 13:35
How to link esimakin pagination with my table?
<!---
An attempt to a StackOverflow question
https://stackoverflow.com/questions/44725973/how-to-link-esimakin-pagination-with-my-table#
You'll need to download jquery-twbs-pagination https://esimakin.github.io/twbs-pagination/
-->
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
@joshuamabina
joshuamabina / index.php
Last active October 18, 2017 13:39
Laravel Server Requirements
<?php
/**
* Server Requirements
*
* The Laravel framework has few system requirements. Make sure that your server meets the following requirements:
*
* PHP >= 7.0.0
* OpenSSL PHP Extension
* PDO PHP Extension