Skip to content

Instantly share code, notes, and snippets.

View jamesratcliffe's full-sized avatar

James Ratcliffe jamesratcliffe

  • Lightspeed POS
  • Montreal, QC, Canada
View GitHub Profile
@jamesratcliffe
jamesratcliffe / docker_composer_ssh-agent
Last active March 24, 2022 12:48
Install Laravel Dependencies in Docker
docker run --rm --interactive --tty \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php74-composer:latest \
touch .composer && composer install --ignore-platform-reqs
@jamesratcliffe
jamesratcliffe / README.md
Created June 17, 2020 13:59
Remote pbcopy

Use pbcopy over ssh

From https://seancoates.com/blogs/remote-pbcopy/.

  1. Save pbcopy.plist to ~/Library/LaunchAgents/.
  2. Load it: launchctl load ~/Library/LaunchAgents/pbcopy.plist.
  3. Save pbcopy /usr/local/bin. Make sure it's executable.
@jamesratcliffe
jamesratcliffe / cloudSettings
Last active November 4, 2020 14:04
VS Code Sync
{"lastUpload":"2020-11-04T14:04:51.279Z","extensionVersion":"v3.4.3"}
/* https://userstyles.org/styles/101971/slack-night-mode */
body
{
background: #3e313c;
color: #f0d9ed;
}
a
{
color: #a3839f;
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use LaravelFillableRelations\Eloquent\Concerns\HasFillableRelations;
class Tool extends Model
{
{
"variables": [],
"info": {
"name": "Retail Access Token Examples",
"_postman_id": "d9dd7ec8-5e59-76c9-9884-358d1d05047d",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{