Skip to content

Instantly share code, notes, and snippets.

View lukeab's full-sized avatar

Luke Ashe-Browne lukeab

View GitHub Profile
@lukeab
lukeab / lsblkid_docker_devicemapper
Created July 19, 2016 12:37
loopbackedevices docker devicemapper issue
loop0 7:0 0 100G 0 loop
└─docker-202:1-8734395-pool 253:1 0 100G 0 dm
loop1 7:1 0 2G 0 loop
└─docker-202:1-8734395-pool 253:1 0 100G 0 dm
@lukeab
lukeab / docker-compose.yml
Last active July 12, 2016 09:40
Basic nginx phpserver docker-compose
version: '2'
services:
phpserver:
build:
context: .
dockerfile: Dockerfile-phpserver
command: php -S 0.0.0.0:9292
volumes:
- ./:/phpapp
ports:
@lukeab
lukeab / php56hiera_common.yaml
Last active July 8, 2016 16:23
php56 ius hiera data lookup issue
-- common.yaml file --
phpoptions:
addepel: true
phpscl: false
phppkgprefix: php
phpversion: 56u
-- phpfpm_profile.pp file --
$phpoptions = hiera_hash('phpoptions')
@lukeab
lukeab / create_repo.pp
Created July 8, 2016 11:28
messing with managed repo resource
define repomanage::create_repo(
$baseurl=false,
$description=false,
$mirrorlist=false,
$proxy = false,
$priority = 1,
$enabled = 1
){
#notice("adding",$baseurl,"with proxy",$proxy,"and options: enabled=",$enabled," description:",$description," priority:",$priority)
@lukeab
lukeab / php_role.pp
Created July 4, 2016 10:45
simple list extensin
$packages= [
$phpmysql,
"${phpprefix}-pdo",
"${phpprefix}-gd",
"${phpprefix}-soap",
"${phpprefix}-mbstring",
"${phpprefix}-xml",
"${phpprefix}-opcache",
]
@lukeab
lukeab / VagrantfileOSDetection
Last active June 29, 2016 11:36
Trying to detect os in vagrantfile
module OS
def OS.windows?
(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end
def OS.mac?
(/darwin/ =~ RUBY_PLATFORM) != nil
end
def OS.unix?
!OS.windows?
elasticsearch_plugins:
'elasticsearch/elasticsearch-cloud-aws':
module_dir : 'cloud-aws'
url : 'http://download.elasticsearch.org/elasticsearch/elasticsearch-cloud-aws/elasticsearch-cloud-aws-2.5.1.zip'
instances : 'es-logstash'
'royrusso/elasticsearch-HQ':
module_dir: HQ
instances: 'es-logstash'
'mobz/elasticsearch-head':
module_dir: head
[luke@labxps13 puppet]$ rake -t
rake aborted!
LoadError: cannot load such file -- puppet-maint/tasks/puppet-maint
/usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/luke/dev/app/puppet/Rakefile:4:in `<top (required)>'
/usr/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
/usr/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
/usr/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
/usr/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'

Keybase proof

I hereby claim:

  • I am lukeab on github.
  • I am lukeab (https://keybase.io/lukeab) on keybase.
  • I have a public key whose fingerprint is 1E9E 6322 8D1D 238F C7DC 937F DAB5 B383 2155 EDA7

To claim this, I am signing this object:

<?php
require(dirname(__FILE__).'/AbstractController.php');
class Shortener_RedirectorController extends Shortener_AbstractController{
public function redirectAction(){
var_dump( $this->_getParam('args'));die();
}
}