Skip to content

Instantly share code, notes, and snippets.

@marabesi
marabesi / cloudSettings
Last active January 29, 2022 13:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-01-29T13:51:17.515Z","extensionVersion":"v3.4.3"}
git commit --amend --author "Stephen Way <way.stephen@gmail.com>" --no-edit && \
git rebase --continue
...
git push origin master --force
set -g default-terminal "screen-256color"
@marabesi
marabesi / query-builder.php
Created June 17, 2017 16:31
Query builder - is it possible to test it?
<?php
namespace App\Repositories;
use DB
class MyRepository
{
public function getAllAmountsByProduct(array $revenueTable, $sRevColumns, $sCompanyID)
@marabesi
marabesi / atom-packages.sh
Created January 25, 2017 14:23
Atom packages
# file icons
apm install file-icons &&
# allow to move between panes
apm install move-panes &&
# allow debug php from atom
apm install php-debug &&
# allo using terminal inside atom
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Running provisioner: file...
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Running provisioner: shell...
default: Running: /tmp/vagrant-shell20161202-28005-1pu4aen.sh
==> default: Running provisioner: shell...
CREPUBLICA FEDERATIVA DO BRASIL ESTADO DE SAO PAULO SECRETARIA DE ESTADO DE SEGURANCA PUBLICA POLICIA civi SPTCIDEPARTAMENTO DEIDENTIFICACAO ASSINATURA DO TITULAR CARTEIRA DE IDENTIDADE o THOMAS GREGG SONS ORRES o VALIDA EM TODO OTERRITORIO NACIONAL O O DATA D 31/02/1990 0.531.915 -12-1 EXPED NOME FRANCISCO DE ASSIS PEREIRA MARIA HELENA PEREIRA NELSON PEREIRA DATA DE NASCIMENTO NATURALIDADE 07-12-1970 CAMPINAS SP Doc, ORIGEM C.CAS 021897.01. 44.1990.0000 6-18 4.000 137 4.42 CAMPINAS SP CPF 041-437-591-11 ASSINATURA DO DIRETOR 3 LEI No 7.116 DE 29/08/88 So THOMAS QAEO SONN
@marabesi
marabesi / iterm2.md
Created October 1, 2016 14:23
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
@marabesi
marabesi / .vimrc
Last active May 19, 2020 19:43
My personal .vimrc (generated by http://www.vim-bootstrap.com)
moved file content to https://github.com/marabesi/dotfiles
@marabesi
marabesi / build-file-example.xml
Created September 30, 2015 01:17
Simple build file to run with Phing within three targets
<?xml version="1.0" encoding="utf-8"?>
<project name="First Example" description="Clone, phpunit" default="phpunittests">
<property name="appdir" value="."/>
<property name="repodir" value="./app"/>
<property name="testdir" value="./app/tests"/>
<property name="repo" value="https://github.com/marabesi/laravel-pagseguro.git" />
<target name="clone">
<echo msg="Cloning repository ${repo} please wait"/>
<gitclone repository="${repo}" targetPath="${appdir}/app"/>