I hereby claim:
- I am skydiver on github.
- I am skydiver (https://keybase.io/skydiver) on keybase.
- I have a public key whose fingerprint is 3803 CC4E 7A6E 5F28 4C85 65AB 15B5 F00A F32D 4514
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
To install a composer package globally, you run the usual require command, but with the addition of the global modifier. So to install PHPUnit, you would run:
$ composer global require phpunit/phpunit
$ composer global require phpunit/dbunit
$ composer global require phing/phing
$ composer global require phpdocumentor/phpdocumentor
$ composer global require sebastian/phpcpd| version: '2' | |
| services: | |
| ##################### | |
| # MongoDB | |
| ##################### | |
| mongo: | |
| container_name: MongoDB | |
| image: mongo:3.4 | |
| volumes: |
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
| #!/usr/bin/env bash | |
| # Bitbucket backup script | |
| # backups all repos (including wiki and issues) of a user | |
| # | |
| # requires (in PATH): | |
| # - hg (http://mercurial.selenic.com) | |
| # - git (http://git-scm.com) | |
| # - jq (http://stedolan.github.io/jq/) | |
| # - curl (http://curl.haxx.se) | |
| # |
| version: '2' | |
| services: | |
| ##################### | |
| # DATABASE | |
| ##################### | |
| db: | |
| container_name: DEV-Apache-MariaDB | |
| image : mariadb:latest | |
| volumes : |
| version: '2' | |
| services: | |
| rethinkdb: | |
| container_name: shipyard-rethinkdb | |
| image : rethinkdb | |
| discovery: | |
| container_name: shipyard-discovery | |
| image : microbox/etcd |
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
| s3cmd du s3://{BUCKET}/ | awk '{print $0/1024/1024/1024" GB"}' |
| #!/bin/bash | |
| # Version: 0.2.0 | |
| # | |
| # Usage: | |
| # ./s3purge "bucketname" "30 days" | |
| # ./s3purge "bucketname" "6 hours" | |
| /usr/local/bin/s3cmd ls s3://$1 | while read -r line; | |
| do |