This two launchdaemon scripts provide scheduled updates and upgrade for homebrew packages.
It will run in the following way:
brew update
every day at 12:10brew upgrade
every day at 12:20
<?php | |
$app->add(function ($req, $res, $next) { | |
//DO SOMETHING BEFORE THE REQUEST IS PROCESSED | |
$res = $next($req, $res); //PROCESS THE REQUEST | |
//DO SOMETHING AFTER THE REQUEST HAS BEEN PROCESSED | |
if ($res->getStatusCode() > 500) { | |
//Do something with a server error, maybe email someone or submit a bug report | |
} |
require 'formula' | |
class DnsmasqRegex < Formula | |
homepage 'http://www.thekelleys.org.uk/dnsmasq/doc.html' | |
url 'http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.66.tar.gz' | |
sha256 '36232fa23d1a8efc6f84a29da5ff829c2aa40df857b9116a9320ea37b651a982' | |
option 'with-idn', 'Compile with IDN support' | |
depends_on "libidn" if build.include? 'with-idn' |
<?php | |
use FastRoute\Dispatcher; | |
use FastRoute\RouteParser; | |
use FastRoute\RouteParser\Std as StdParser; | |
use FastRoute\RouteCollector; | |
use FastRoute\DataGenerator\GroupCountBased as GroupCountBasedDataGenerator; | |
use Psr\Http\Message\RequestInterface; | |
use Slim\Route; | |
use Slim\Router; |
#!/bin/bash | |
unload() { | |
if [ `ps -ef | grep -c VirtualBox$` -ne 0 ] | |
then | |
echo "VirtualBox still seems to be running. Please investigate!!" | |
exit 1; | |
elif [ `ps -ef | grep -c [V]ir` -gt 0 ] | |
then | |
echo "Stopping running processes before unloading Kernel Extensions" |
<?php | |
class Post | |
{ | |
protected $table = 'posts'; | |
/** | |
* You can define your own custom boot method. | |
* | |
* @return void | |
**/ |
To use, run the setup-dns
script within the Dorothy dotfile ecosystem
code[1] define[EPERM] str[Operation not permitted] | |
code[2] define[ENOENT] str[No such file or directory] | |
code[3] define[ESRCH] str[No such process] | |
code[4] define[EINTR] str[Interrupted system call] | |
code[5] define[EIO] str[Input/output error] | |
code[6] define[ENXIO] str[No such device or address] | |
code[7] define[E2BIG] str[Argument list too long] | |
code[8] define[ENOEXEC] str[Exec format error] | |
code[9] define[EBADF] str[Bad file descriptor] | |
code[10] define[ECHILD] str[No child processes] |
Even though there is a nice XBMC add-on to configure your WIFI settings, sometimes, you may still want to setup the WIFI connection for many reasons or just for fur.
OpenELEC use connman for managing connection to the various available network.
Setuping connman to connect to your protected WIFI network is an easy requiring you only to create a config file and enter some commands in a shell.
There are a lot of complaints going around about Laravel these days, but a lot | |
of the important ones seem to be missing from the spotlight. | |
Bugfixes, issues and pull requests being left open for months with no | |
clarification of intent: | |
- https://github.com/laravel/framework/pull/1799 | |
- https://github.com/laravel/framework/issues/1963 | |
- https://github.com/laravel/framework/issues/2089 | |
- https://github.com/laravel/framework/issues/2234 |