Skip to content

Instantly share code, notes, and snippets.

@bradrydzewski
bradrydzewski / generate_docker_cert.sh
Last active Aug 12, 2021
Generate trusted CA certificates for running Docker with HTTPS
View generate_docker_cert.sh
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@derhansen
derhansen / removeJobsRedisDriver.php
Last active Jul 7, 2021
Laravel 5 - remove all jobs from a queue (redis driver)
View removeJobsRedisDriver.php
Redis::connection()->del('queues:myqueue');
@bgarrant
bgarrant / ValetSwitchPHP.md
Last active Jun 30, 2021
How to Switch PHP Version in Laravel Valet between PHP 7.1 and PHP 5.6
View ValetSwitchPHP.md

How to Switch PHP Version in Laravel Valet between PHP 7.1 and PHP 5.6

Valet switch PHP version with these commands

Install PHP 5.6 and switch Valet to PHP 5.6

valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
View V8JsNodeModuleLoader.php
<?php
require_once __DIR__.'/V8JsNodeModuleLoader_FileAccessInterface.php';
require_once __DIR__.'/V8JsNodeModuleLoader_NormalisePath.php';
/**
* Simple Node.js module loader for use with V8Js PHP extension
*
* This class understands Node.js' node_modules/ directory structure
* and can require modules/files from there.
*
@hamakn
hamakn / codes.md
Created Mar 15, 2019
gRPC Code and HTTP Status Code
View codes.md