Moved to https://mattstypa.com/notes/edc/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs/promises'); | |
const nodePath = require('path'); | |
async function exists(path) { | |
try { | |
await fs.stat(nodePath.resolve(path)); | |
return true; | |
} catch(error) { | |
if (error.code !== 'ENOENT') throw error; | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
theme: { | |
colors: { | |
'transparent': 'transparent', | |
'black': '#22292f', | |
'grey-darkest': '#3d4852', | |
'grey-darker': '#606f7b', | |
'grey-dark': '#8795a1', | |
'grey': '#b8c2cc', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Container\Container; | |
use Illuminate\Console\Command; | |
use Illuminate\Queue\Jobs\SyncJob; | |
class QueueSyncRetry extends Command | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Checkout master | |
git checkout master | |
# Make sure we are up to date | |
git pull | |
# Create new feature branch | |
git checkout -b {new_branch_name} | |
# Merge our work to the new branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Specify a command to be executed | |
# like `/bin/bash -l`, `ls`, or any other commands | |
# the default is bash for Linux | |
# or powershell.exe for Windows | |
command: null | |
# Specify the current working directory path | |
# the default is the current working directory path | |
cwd: null |