https://medium.com/@ssharizal/hyper-js-oh-my-zsh-as-ubuntu-on-windows-wsl-terminal-8bf577cdbd97
chsh -s $(which zsh)
<?php | |
class MyModel extends Eloquent { | |
public function getSql() | |
{ | |
$builder = $this->getBuilder(); | |
$sql = $builder->toSql(); | |
foreach($builder->getBindings() as $binding) | |
{ |
FROM microsoft/aspnetcore-build:2.0 AS build-env | |
WORKDIR /app | |
# Copy csproj and restore as distinct layers | |
COPY *.csproj ./ | |
RUN dotnet restore | |
# Copy everything else and build | |
COPY . ./ | |
RUN rm -rf node_modules && npm install |
<select name="title" id="title"> | |
<option value="">No Title</option> | |
<option value="Mr">Mr</option> | |
<option value="Mrs">Mrs</option> | |
<option value="Miss">Miss</option> | |
<option value="Ms">Ms</option> | |
<option value="Master">Master</option> | |
<option value="Admiral">Admiral</option> | |
<option value="Archbsh">Archbishop</option> | |
<option value="Att Gen">Attorney General</option> |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
// https://github.com/composer/composer/blob/master/res/composer-schema.json | |
// http://getcomposer.org/doc/04-schema.md#repositories | |
// IGNORE THIS -- MIGHT NOT BE USED |
# Package Folder/File Structure | |
- src/ | |
- PackageName/ | |
- PackageName.php | |
- PackageClass.php | |
- PackageLib.php | |
- Subfolder/ | |
- OtherLib.php | |
- tests/ | |
- composer.json |
[ignore] | |
default = [ | |
# System files | |
".DS_Store", | |
"._*", | |
# Vim files | |
"*~", | |
"*.sw[a-p]", |
version: 2 | |
options: | |
compose-file-path: 'docker-compose.yml' | |
compose-dev-file-path: 'docker-compose-dev.yml' | |
syncs: | |
admin-app-sync: | |
sync_strategy: 'native_osx' | |
src: './' | |
sync_args: |
# Description: Boxstarter Script | |
# Author: Jess Frazelle <jess@linux.com> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
- hosts: web | |
vars_files: | |
- vars.yml | |
tasks: | |
- name: Clone Repository | |
git: repo="git@repo.git" dest=/home/deploy/site version={{ branch }} | |
notify: | |
- restart php-fpm service | |
- restart nginx service |