I hereby claim:
- I am acodeninja on github.
- I am acodeninja (https://keybase.io/acodeninja) on keybase.
- I have a public key ASCPh9WoWfYQ_4qlVPcDztJVEBsJC0ObOOKMRzWngzoumwo
To claim this, I am signing this object:
.m-0 { | |
margin: 0 !important; | |
} | |
.mt-0, | |
.my-0 { | |
margin-top: 0 !important; | |
} |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class GenerateResponsiveImages extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
VERSION=$1 | |
if [ "$(which php${VERSION})" != "" ]; then | |
sudo update-alternatives --set php /usr/bin/php$VERSION | |
sudo update-alternatives --set phar /usr/bin/phar$VERSION | |
sudo update-alternatives --set phar.phar /usr/bin/phar.phar$VERSION | |
sudo update-alternatives --set phpize /usr/bin/phpize$VERSION | |
sudo update-alternatives --set php-config /usr/bin/php-config$VERSION | |
echo "Switched to php$VERSION successfully" | |
else |
--- | |
- hosts: all | |
vars: | |
location: /var/www/acodeninja.github.io | |
tasks: | |
- name: get codebase | |
git: | |
repo: https://github.com/acodeninja/acodeninja.github.io.git | |
dest: "{{ location }}" | |
- name: ensure binary dependancies are installed |
I hereby claim:
To claim this, I am signing this object:
FROM php:fpm-alpine | |
# Install XDebug | |
RUN apk add g++ gcc make autoconf && \ | |
pecl install xdebug-2.6.1 && \ | |
docker-php-ext-enable xdebug && \ | |
apk del g++ gcc make autoconf | |
# Install MySQL driver | |
RUN docker-php-ext-install pdo_mysql |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.network "private_network", ip: "192.168.190.#{2 + rand(255)}" | |
config.vm.hostname = "symfony-app.test" | |
config.hostmanager.enabled = true |
#!/usr/bin/env bash | |
echo "Scanning, this might take a while, especially if you have lots of vendor directories" | |
while read d; do | |
echo "Adding directory $d to sourcerer" | |
sourcerer add $d | |
done < $(find . -type d \ | |
-exec sh -c 'cd "{}"; git rev-parse --git-dir 2> /dev/null 1>&2' \; \ | |
-prune \ |
#!/usr/bin/env bash | |
FILE_AGE=$1 | |
FILE_COUNT=$2 | |
FILE_LOCATION=$3 | |
if [ -z "$FILE_AGE" ] || [ -z "$FILE_COUNT" ] || [ -z "$FILE_LOCATION" ]; then | |
echo "Usage: $(basename $0) [file age in days] [file count] [directory location]" | |
exit 1 | |
fi |