Skip to content

Instantly share code, notes, and snippets.

View robbydooo's full-sized avatar

Rob N robbydooo

  • TripAdvisor Ltd
  • United Kingdom
View GitHub Profile
@robbydooo
robbydooo / RunScheduler.php
Last active October 23, 2021 14:14
Heroku Laravel Scheduler
<?php
/**
This Scheduler will run once every minute unlike the Heroku scheduler which only runs every 10 mintues.
To use this scheduler with Laravel 5.4+ add this file to /app/Console/Commands/RunScheduler.php
Register this file in app/Console/Kernel.php
@robbydooo
robbydooo / gist:6da8dec616ccb02f4d4d
Last active August 15, 2017 18:20
Docker Datacenter Cloud Init including Flocker
#cloud-config
package_upgrade: true
runcmd:
- rpm --import "https://pgp.mit.edu/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e"
- yum install -y yum-utils
- yum-config-manager --add-repo https://packages.docker.com/1.10/yum/repo/main/centos/7
- yum install -y docker-engine
- yum list installed clusterhq-release || yum install -y https://clusterhq-archive.s3.amazonaws.com/centos/clusterhq-release$(rpm -E %dist).noarch.rpm
@robbydooo
robbydooo / packet-mount-nvme.sh
Created July 29, 2015 14:42
Packet.net Mounting NVME Drives
#!/bin/sh
# Based on documentation from Packet.net
# https://www.packet.net/help/kb/hardware/how-do-i-configure-an-nvme-flash-drive/
#NVME01N1 Setup
parted -a optimal /dev/nvme0n1 mklabel gpt
parted -a optimal /dev/nvme0n1 mkpart primary ext4 0% 100%
mkfs.ext4 /dev/nvme0n1