Skip to content

Instantly share code, notes, and snippets.

@tylerodonnell
tylerodonnell / PostmarkServiceProvider.php
Last active June 1, 2018 14:15
How to use Postmark SwiftMailer inside Laravel
<?php
namespace App\Providers;
use Postmark\Transport;
use Illuminate\Mail\MailServiceProvider;
class PostmarkServiceProvider extends MailServiceProvider
{
/**
@tylerodonnell
tylerodonnell / material-update.sh
Created August 10, 2016 14:48
Update Material Theme Colors
#!/usr/bin/env bash
cd /Users/tyler/Library/Application\ Support/Sublime\ Text\ 3/Packages/Material\ Theme
sed -i.bu 's/38, 50, 56/37, 43, 57/' Material-Theme.sublime-theme
@tylerodonnell
tylerodonnell / handlers.yml
Last active February 15, 2020 19:32 — forked from andrewsomething/handlers.yml
My "first five minutes" on a server
---
- name: Restart sshd
service:
name: ssh
state: restarted
become: yes
- name: Start NTP
service:
name: ntp
@tylerodonnell
tylerodonnell / MyClass.php
Created September 27, 2016 15:15 — forked from Potherca/MyClass.php
Loading arbitrary/custom files in Craft CMS Plugins
<?php
namespace MyVendor_MyPlugin;
class MyClass
{
/* ... */
}
/*EOF*/
<?php
namespace App\Merge;
class Marge
{
protected $data = [];
public function setData($data)
{
### Keybase proof
I hereby claim:
* I am tylerodonnell on github.
* I am tylerodonnell (https://keybase.io/tylerodonnell) on keybase.
* I have a public key ASDHaFDsnypF4G-FpyGxQxskBRMm3KtYL0rwSTluZXUrBwo
To claim this, I am signing this object:
@tylerodonnell
tylerodonnell / Bluebird.txt
Created September 21, 2018 14:21 — forked from odigity/Bluebird.txt
A Snapshot of my Bluebird.js Cheat Sheet.
┌──────────┐
──┤ Overview ├─────────────────────────────────────────────────────────────────
└──────────┘
$ npm install --save bluebird
const Promise = require('bluebird')
@tylerodonnell
tylerodonnell / .php_cs.laravel.php
Created July 18, 2019 15:04 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'phpdoc_indent' => true,
'binary_operator_spaces' => [
'operators' => ['=>' => null]
],
@tylerodonnell
tylerodonnell / values_pointers.go
Created March 3, 2020 14:52 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value