git format-patch -n <hash>
onde o -n é o número de commits a partir do hash
Ex. Para gerar 7 arquivos de patch a partir do HEAD
git format-patch -7 HEAD
| # SETUP # | |
| DOMAIN=example.com | |
| PROJECT_REPO="git@github.com:example.com/app.git" | |
| AMOUNT_KEEP_RELEASES=5 | |
| RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
| RELEASES_DIRECTORY=~/$DOMAIN/releases | |
| DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
| # stop script on error signal (-e) and undefined variables (-u) |
| <canvas id="c"></canvas> | |
| <!-- definitely not my work!!!!! | |
| just tested this out from http://thecodeplayer.com/walkthrough/matrix-rain-animation-html5-canvas-javascript --> |
| #!/bin/sh | |
| # | ============================================================================ | |
| # | SQL Server PHP Driver on Homestead | |
| # | ============================================================================ | |
| # | Ubuntu LTS | Settler | Homestead | |
| # | ============================================================================ | |
| # | 20.04 | 11.x | 12.x | |
| # | ============================================================================ |
| #!/usr/bin/env bash | |
| declare -A params=$6 # Create an associative array | |
| declare -A headers=${9} # Create an associative array | |
| declare -A rewrites=${10} # Create an associative array | |
| paramsTXT="" | |
| if [ -n "$6" ]; then | |
| for element in "${!params[@]}" | |
| do | |
| paramsTXT="${paramsTXT} |
| --- | |
| ip: "192.168.10.10" | |
| memory: 2048 | |
| cpus: 1 | |
| provider: virtualbox | |
| authorize: ~/.ssh/pub | |
| keys: | |
| - ~/.ssh/private.ppk |
| // /app/code/community/PayU/API/Model/WebServiceOrder.php | |
| ... | |
| $data->transaction->order->buyer->shippingAddress->state = $this->_sanitizeRegion($this->shippingAddress['region']); | |
| ... | |
| $data->transaction->payer->billingAddress->state = $this->_sanitizeRegion($this->billingAddress['region']); | |
| ... |
| # ---------------------------------------------------------------------- | |
| # | Expires headers | | |
| # ---------------------------------------------------------------------- | |
| # Serve resources with far-future expires headers. | |
| # | |
| # (!) If you don't control versioning with filename-based | |
| # cache busting, you should consider lowering the cache times | |
| # to something like one week. |
| @servers(['develop' => 'vagrant@192.168.10.10']) | |
| @setup | |
| $repo = 'git@git.mixd.com.br:mixdinternet/xxx.git'; | |
| $repo_host = str_replace('git@', '', strstr($repo, ':', true)) . '/' . str_replace(':', '', strstr(strstr($repo, ':'), '.git', true)); | |
| $class = isset($class) ? '--class=' . $class : ''; | |
| $branch = isset($branch) ? $branch : 'develop'; | |
| if($branch == 'develop') { | |
| $host = 'http://xxx.local'; | |
| $dir = '/home/vagrant/Code/Xxx'; |
| https://ssl.gstatic.com/docs/common/profile/alligator_lg.png Anonymer Alligator | |
| https://ssl.gstatic.com/docs/common/profile/anteater_lg.png Anonymer Ameisenbär | |
| https://ssl.gstatic.com/docs/common/profile/axolotl_lg.png Anonymer Axolotl | |
| https://ssl.gstatic.com/docs/common/profile/badger_lg.png Anonymer Dachs | |
| https://ssl.gstatic.com/docs/common/profile/bat_lg.png Anonyme Fledermaus | |
| https://ssl.gstatic.com/docs/common/profile/beaver_lg.png Anonymer Biber | |
| https://ssl.gstatic.com/docs/common/profile/buffalo_lg.png Anonymer Büffel | |
| https://ssl.gstatic.com/docs/common/profile/camel_lg.png Anonymous Camel --- | |
| https://ssl.gstatic.com/docs/common/profile/capybara_lg.png Anonymes Capybara | |
| https://ssl.gstatic.com/docs/common/profile/chameleon_lg.png Anonymes Chamäleon |