Skip to content

Instantly share code, notes, and snippets.

View tylerodonnell's full-sized avatar

Tyler O'Donnell tylerodonnell

View GitHub Profile
@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
@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 / 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')
<?php
namespace App\Merge;
class Marge
{
protected $data = [];
public function setData($data)
{
@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*/
@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