Skip to content

Instantly share code, notes, and snippets.

View poing's full-sized avatar

Brian LaVallee poing

View GitHub Profile

Just playing with the new math markdown

This is just a test $z=y/x$

Or just a fraction $\pi=\frac{22}{7}$

$$ a^2/b^2/z^2=c^2 a=\frac{1}{3} $$

@poing
poing / OhRules.md
Last active September 23, 2020 11:09

Opening Hours

Profile “ACCESS” for RSN equipment (e.g. UPS, PDU, CIMC, FXOS)

switchport port-security
switchport port-security maximum 1
switchport port-security violation shutdown
switchport port-security mac-address sticky

Profile “WAP” for Cisco Access Points

@poing
poing / 20191108.MD
Last active November 8, 2019 13:43
@poing
poing / trunk_chan.js
Created June 5, 2019 23:48
Wombat Channel Slider
// +----------------------------------------------------------------------+
// | MCAT Portal - Multi-Carrier Aggregate Trunking Client Portal |
// +----------------------------------------------------------------------+
// | © Copyright - INVITE Communications Co., Ltd. - All Rights Reserved |
// | Unauthorized copying of this file is strictly prohibited |
// | Proprietary and Confidential |
// | |
// | 1F Computec Ichigaya Building |
// | 2-20 Ichigaya-Honmuracho |
// | Shinjuku-ku, Tokyo, Japan 162-0845 |
@poing
poing / timeout.js
Created June 5, 2019 23:46
Wombat Timeout Setting JavaScript
// +----------------------------------------------------------------------+
// | MCAT Portal - Multi-Carrier Aggregate Trunking Client Portal |
// +----------------------------------------------------------------------+
// | © Copyright - INVITE Communications Co., Ltd. - All Rights Reserved |
// | Unauthorized copying of this file is strictly prohibited |
// | Proprietary and Confidential |
// | |
// | 1F Computec Ichigaya Building |
// | 2-20 Ichigaya-Honmuracho |
// | Shinjuku-ku, Tokyo, Japan 162-0845 |
<?php
namespace App\Http\Controllers;
class Dogs extends Controller
{
public function sound() { return 'bark'; }
}
<?php
namespace Vendorname\Projectname\Some\Long\Path;
class Cats
{
public function sound() { return 'meow'; }
}
@poing
poing / embed.php
Last active February 1, 2019 04:36
<?php
class Embeded
{
public function test()
{
echo 'embeded test';
}
}
@poing
poing / laravel_facades.md
Last active March 25, 2024 21:37
Laravel Facades

Understanding Facades in Laravel

What's a Facade?

The Laravel explination, shown below is confusing.

Facades provide a "static" interface to classes that are available in the application's service container. Laravel ships with many facades which provide access to almost all of Laravel's features. Laravel facades serve as "static proxies" to underlying classes in the service container, providing the benefit of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods.

Many examples use Cache::get('key') to demonstrate how a Facade works. Comparing the following code to the utility that a Facade provides.