Skip to content

Instantly share code, notes, and snippets.

View phcostabh's full-sized avatar
🧑‍💻
Coding

Philippe Santana Costa phcostabh

🧑‍💻
Coding
View GitHub Profile
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix (/usr/local). This prefix can be dynamically changed by using the
; '-p' argument from the command line.
;;;;;;;;;;;;;;;;;;
; Global Options ;
#! /bin/bash
set -eux;
SERVER_IP=$1
ssh "forge@${SERVER_IP}" 'mkdir -p /home/forge/api.chatfood.io/shared/storage/passport/'
ssh "forge@${SERVER_IP}" 'cat > /home/forge/api.chatfood.io/shared/storage/passport/oauth-private.key' <~/Documents/ChatFood/Passport_Keys/oauth-private.key
ssh "forge@${SERVER_IP}" 'cat > /home/forge/api.chatfood.io/shared/storage/passport/oauth-public.key' <~/Documents/ChatFood/Passport_Keys/oauth-public.key
<?php
namespace PhpCsFixer {
$finder = Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
<?php
require_once 'recipe/common.php';
set('keep_releases', 5);
server('staging', 'staging.chatfood.io', 22)
->user('forge')
->identityFile()
->stage('staging')
@phcostabh
phcostabh / event_sourcing_and_laravel.md
Last active August 6, 2019 10:49 — forked from scazz/event_sourcing_and_laravel.md
Event Sourcing, CQRS and Laravel
<style> blockquote { border: 1px solid #dddddd; border-radius: 5px; box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1); margin-bottom: 1.36363636em; padding: 0; } blockquote > code {
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@phcostabh
phcostabh / rename_files_in_with_number.sh
Created May 10, 2018 15:11
Rena files in a folder with sequencial numbers
ls -1tr | cat -n | while read a n; do mv $n $(printf "%02d-%s\n" $a $n); done
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'canary',