Skip to content

Instantly share code, notes, and snippets.

View cmgmyr's full-sized avatar

Chris Gmyr cmgmyr

View GitHub Profile
@jasonmccreary
jasonmccreary / README.md
Created October 4, 2021 12:12
Command to update your Vimeo thumbnail links

This artisan command will update your Vimeo video thumbnails for their recent link change (September 2021).

To run:

  1. Add the command to your Laravel project.
  2. Update any references for your application (model name, column names, thumbnail size, thumnail type)
  3. Install vimeo/laravel
  4. Configure your environment with you Vimeo app credentials
@mlantz
mlantz / working_remotely.txt
Created March 16, 2020 03:18
Presentation on Working Remotely
# Working Remotely
---
## Matt Lantz
- Canadian (doesn't really matter)
- Software developer (has meaning)
- Has worked for Fortune 50, 500 and small companies (:+1:)
- About 10 year experience (sure, whatev)
@dccampbell
dccampbell / .env.example
Created February 28, 2020 16:19
Local Dev Environments for PHP Projects w/ Homestead
APP_URL=http://www.myproject.test
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=myprojectdb
DB_USERNAME=homestead
DB_PASSWORD=secret
MAIL_DRIVER=smtp
@JeffreyWay
JeffreyWay / AppServiceProvider.php
Last active November 6, 2021 11:51
Laracasts Widgets Lesson
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
@jesstelford
jesstelford / 01-shape-up-to-kindle.md
Last active September 27, 2025 14:38
Read SHAPE UP by basecamp on a Kindle / reMarkable / eReader

Read Shape Up by basecamp on a kindle / reMarkable / eReader

Basecamp's new book Shape Up is now available online (https://basecamp.com/shapeup) to read page-by-page.

There is a .pdf version, but that's not the best format for Kindle / other eReaders. Instead, we can convert the page-by-page into an eReader friendly format.

Part 1: Convert to a single page

NOTE: This has only been tested on Chrome

@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active November 9, 2025 13:59
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@jasonmccreary
jasonmccreary / .php_cs.laravel
Created May 6, 2019 12:44
PHP CS Fixer - Laravel Presets + Customizations
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'phpdoc_indent' => true,
'binary_operator_spaces' => [
'operators' => ['=>' => null]
],
@laravel-shift
laravel-shift / .shiftrc
Last active July 21, 2022 15:23
Default configuration file for setting Shift preferences
; Within this file you may set preferences for Shift.
; These may be used to customize the behavior of the
; Shift bot by disabling or guiding the automation.
; NOTE: Any paths should be relative to location
; of this file and exclude a trailing slash.
; Section to set options for PHP Shifts.
[php]
@nickcernis
nickcernis / readme.md
Last active June 22, 2025 05:42
Exclude node_modules and .git from Backblaze backups on Mac

Exclude node_modules and .git from Backblaze backups on Mac

  1. Edit the file at /Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml.
  2. Add these rules inside the bzexclusions tag:
<!-- Exclude node_modules. -->
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
@calebporzio
calebporzio / PreviewOfUpcomingPackage.php
Last active December 2, 2024 12:10
A model trait that allows child models to use parent table names and relationship keys.
<?php
namespace App\Abilities;
use Illuminate\Support\Str;
use ReflectionClass;
/**
* Note: This is a preview of an upcoming package from Tighten.
**/