PHPPDX Meetup Talk 7/17/2018
Table of contents:
# .bash_profile | |
# /share/CACHEDEV1_DATA/.qpkg/container-station/bin location of `docker`/ `docker-compose` binaries | |
# /opt/bin location where `opkg` binary is installed to. | |
export PATH=\ | |
/bin:\ | |
/sbin:\ | |
/usr/bin:\ | |
/usr/sbin:\ | |
/usr/bin/X11:\ |
PHPPDX Meetup Talk 7/17/2018
Table of contents:
Because Travis CI can automatically execute scripts after successfully (or unsuccessfully!) executing tests, it is an obvious choice for a deployment tool. In order to deploy to a Git repository on a remote server, the process generally is as follows:
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
clean = require('gulp-clean'), |
#!/bin/bash | |
# SQL Server Driver Installer for Laravel Homestead | |
# | |
# This script downloads, compiles, and installs the PHP 7 extension | |
# files for both the native sqlsrv and the PDO pdo_sqlsrv drivers. | |
# Get the Microsoft Driver Source Code from Github | |
cd ~ | |
git clone https://github.com/Microsoft/msphpsql.git | |
cd msphpsql |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
<?php | |
/** | |
* Gera a paginação dos itens de um array ou collection. | |
* | |
* @param array|Collection $items | |
* @param int $perPage | |
* @param int $page | |
* @param array $options | |
* | |
* @return LengthAwarePaginator |
<?php | |
/* | |
* Google Font Importer | |
*/ | |
$fonts = "https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyCpfnm5kVng8hhP_jnAnnTXVP7MEUM89-k"; | |
$fonts = file_get_contents($fonts, 0, null, null); | |
$fp = fopen('fonts.txt', 'w'); |
/** | |
* Changes value to past tense. | |
* Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc. | |
* http://jsfiddle.net/bryan_k/0xczme2r/ | |
* | |
* @param {String} value The value string. | |
*/ | |
Vue.filter('past-tense', function(value) { | |
// Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing | |
var vowels = ['a', 'e', 'i', 'o', 'u']; |
class SampleModel extends \Eloquent | |
{ | |
use TypeCast; | |
protected $table = 'manufacturer'; | |
protected $fillable = []; | |
protected $guarded = [ | |
'id', |