Skip to content

Instantly share code, notes, and snippets.

View adamgoose's full-sized avatar

Adam Engebretson adamgoose

View GitHub Profile
<?php
class Course extends Eloquent implements Collectable {
use SoftDeletingTrait;
use EventGenerator;
use TaggableTrait;
use ImagableTrait;
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
Hi Adam,
Thanks for the note. We understand your desire to end your work with us as soon as possible.
However, there are a number of legal obligations which define the scope and manner in which we end our work together.
First as an update, we have decided not to work with Wildnet to host our site, but they will still be developing the site.
Given your proposed short deadline to break our hosting contract, we are using best efforts to finalize another hosting service, but it may take longer than June 30th.
#!/bin/bash
echo "Running as sudo. Please authenticate now."
sudo echo "Authenticated!"
@adamgoose
adamgoose / Image.php
Created April 17, 2014 01:50
Importing media into Flights
<?php namespace Flight\Importers\Drivers;
use File;
use Flight\Asset;
use Flight\Flight;
class Image implements ImporterDriverInterface {
/**
* Open Graph Objects
<?php namespace Flight\Importers\Drivers;
use File;
use Flight\Asset;
use Flight\Flight;
class Image implements ImporterDriverInterface {
/**
* Open Graph Objects
@adamgoose
adamgoose / OUTPUT
Last active August 29, 2015 13:56
See the OUTPUT
...
Running Puppet with manifest.pp...
stdin: is not a tty
Info: Loading facts in /etc/puppet/modules/git/lib/facter/git_version.rb
Info: Loading facts in /etc/puppet/modules/git/lib/facter/git_exec_path.rb
Warning: Could not retrieve fact fqdn
Error: Could not find class ::ntp for hcf on node hcf
Error: Could not find class ::ntp for hcf on node hcf
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
---
vagrantfile-digital_ocean:
vm:
box: digital_ocean
hostname: hcf
network:
private_network: 192.168.56.101
forwarded_port: { }
provider:
digital_ocean:
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCategoriesTable extends Migration {
/**
* Run the migrations.
*
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "base"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
@adamgoose
adamgoose / gist:8405682
Created January 13, 2014 18:41
Current PHP info
adam-s-macbook-pro:herecomesfun adam$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
* Documentation: https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Fri Jan 3 22:31:02 2014 from 10.0.2.2
vagrant@vagranthost:~$ php --info
phpinfo()
PHP Version => 5.5.6-1+debphp.org~precise+2