Skip to content

Instantly share code, notes, and snippets.

View ajcastro's full-sized avatar

Arjon Jason Castro ajcastro

View GitHub Profile
@ajcastro
ajcastro / mysql_gzip.txt
Created January 24, 2019 01:23
mysql_gzip.txt
gzip -dc ~/Projects/ | mysql -u 'homestead' -p simmfins_laravel
gzip -dc ~/Projects/ | mysql <db>
@ajcastro
ajcastro / vbox_help.txt
Created January 24, 2019 01:15
vbox_help.txt
https://askubuntu.com/questions/900118/vboxdrv-sh-failed-modprobe-vboxdrv-failed-please-use-dmesg-to-find-out-why
https://stegard.net/2016/10/virtualbox-secure-boot-ubuntu-fail/
https://askubuntu.com/a/802682
https://bugs.launchpad.net/ubuntu/+source/gnucash/+bug/1306500
https://bugs.launchpad.net/ubuntu/+source/gnucash/+bug/1316186
Google: gnucash backspace doesn't work
https://bugs.launchpad.net/ubuntu/+source/gnucash/+bug/1306500
https://bugs.launchpad.net/ubuntu/+source/gnucash/+bug/1316186
Google: gnucash backspace doesn't work
@ajcastro
ajcastro / TenantDetector.php
Created July 10, 2018 03:34 — forked from aindong/TenantDetector.php
Multi-Tenant Middleware Laravel
<?php namespace App\Http\Middleware;
use Closure;
use Illuminate\Config\Repository as Config;
class TenantDetector {
protected $config;
public function __construct(Config $config)
@ajcastro
ajcastro / homestead_php_5.6_with_7.txt
Created June 23, 2018 15:46
homestead_php_5.6_with_7.txt
https://laravel-news.com/using-older-versions-of-homestead
http://blog.g-design.net/post/152619206945/multiple-laravel-homestead-installations
http://juliangut.com/blog/php-5-7-homestead
@ajcastro
ajcastro / modern_mysqldump.txt
Last active June 21, 2018 03:48
modern_mysqldump.txt
mysqldump --single-transaction --skip-lock-tables my_app_db | pv | gzip > my_app_db_$(date +'%Y%m%d_%H%M%S').sql.gz
From: https://serversforhackers.com/c/mysqldump-with-modern-mysql
@ajcastro
ajcastro / agile_mvp_criteria.txt
Last active May 31, 2018 02:18
agile_mvp_criteria.txt
Agile MVP Criteria
- Help and Collaborate with others
- Help in Identifying User Story Requirement
- Help in solutions and implementations
- Help or suggest in UX/UI
- Identify other unforeseen issue/task/requirement
- Improve workflows and development processes
https://gistlog.co/JacobBennett/090369fbab0b31130b51
https://gist.github.com/JacobBennett/090369fbab0b31130b51
https://github.com/laravel/framework/issues/11782
https://andrew.cool/blog/64/How-to-use-API-tokens-for-authentication-in-Laravel-5-2
// I will use this, best solution so far.. this is updated as of aug-28-2018
// https://www.npmjs.com/package/extends-js
function $extends(child, parent) {
child.prototype = Object.create(parent.prototype);
child.prototype.constructor = child;
};
function Animal(name, color) {
this.name = name;