Skip to content

Instantly share code, notes, and snippets.

View svpernova09's full-sized avatar
πŸš€
In Transit

Joe Ferguson svpernova09

πŸš€
In Transit
View GitHub Profile
<?php
/**
App stuff
**/
$container['db'] = function ($container) {
$capsule = new \Illuminate\Database\Capsule\Manager;
$capsule->addConnection([
'driver' => 'mysql',
<?php namespace App\Models;
use Illuminate\Database\Eloquent\Model as Eloquent;
class Game extends Eloquent
{
protected $table = 'isboxer_games';
}
[isboxer2] Team Launch successful: Paladin & Shaman Duo
[RAGE.is2] [Info] HotkeyPress "Main Hotkey Toggle"
[RAGE.is2] [Info] 2 2 "Main Hotkey Toggle State","0"
[RAGE.is1] [Info] 2 2 "Main Hotkey Toggle State","0"
[RAGE.is2] [Info] HotkeyRelease "Main Hotkey Toggle"
[RAGE.is2] [Info] HotkeyPress "Toggle Broadcasting Mode"
[RAGE.is2] [Info] Broadcasting Mode ON
[RAGE.is2] [Info] BroadcastingModule:Enable
[RAGE.is2] [Info] HotkeyRelease "Toggle Broadcasting Mode"
[RAGE.is2] [Info] HotkeyPress "Toggle Broadcasting Mode"
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'puphpet/debian75-x64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'puphpet/debian75-x64'
default: URL: https://atlas.hashicorp.com/puphpet/debian75-x64
==> default: Adding box 'puphpet/debian75-x64' (v20151201) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/puphpet/boxes/debian75-x64/versions/20151201/providers/virtualbox.box
==> default: Successfully added box 'puphpet/debian75-x64' (v20151201) for 'virtualbox'!
==> default: Importing base box 'puphpet/debian75-x64'...
<?php
$select = "SELECT * FROM ...";
$db->setProfiler(new Profiler());
$db->getProfiler()->setActive(true);
$stmt = $db->prepare($select);
$stmt->bindValue(":one", $one);
$stmt->bindValue(":two", $two);
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'asgrim/rmq-vm'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: rmq-vm
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
C:\WindowsSettlerExport
Ξ» vagrant box add hyperv.box --name homestead_hyper-v --provider hyperv --debug
INFO global: Vagrant version: 1.8.7
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.8.7\\bin\\vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
# install required vagrant plugin to handle reloads during provisioning
vagrant plugin install vagrant-reload
# start with no machines
vagrant destroy -f
rm -rf .vagrant
vagrant up --provider hyperv
vagrant halt
vagrant@homestead:~$ lsmod
Module Size Used by
input_leds 16384 0
serio_raw 16384 0
i2c_piix4 24576 0
hyperv_fb 20480 1
hv_balloon 24576 0
8250_fintek 16384 0
joydev 20480 0
mac_hid 16384 0

Phergie is not a traditional framework, more of a modular application with many libraries that you can combine to bring different features into an IRC bot. It's used to build IRC daemons in the same way that web frameworks are used to build web applications. Features (Plugins) are their own separate libraries so that the builder/author may customize the bot to their specific needs.

Under the hood Phergie is built on top of ReactPHP (represented here by Cees-Jan Kiewiet who is also a valued contributor to Phergie). Phergie has a long history of keeping up with best practices as well as keeping up with the advancement of Async PHP changes (Thanks to ReactPHP).