Skip to content

Instantly share code, notes, and snippets.

View irineujunior's full-sized avatar
😎
You are not done when it works, you are done when it's right.

Irineu Martins Junior irineujunior

😎
You are not done when it works, you are done when it's right.
View GitHub Profile
@irineujunior
irineujunior / urllist.txt
Last active July 24, 2023 05:05 — forked from Querela/colors.css
Google Docs Anonymous User Images
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
@irineujunior
irineujunior / Envoy.blade.php
Created January 8, 2017 19:33
Modelo de Envoy.blade.php para os projetos da MIXD
@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';
# ----------------------------------------------------------------------
# | 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.
// /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']);
...
@irineujunior
irineujunior / git-apply-patch.md
Last active November 7, 2019 13:00 — forked from emmanueltissera/git-apply-patch.md
Generate a git patch for a specific commit

Criação

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

Aplicação

@irineujunior
irineujunior / Homestead.yaml
Created October 20, 2020 17:52
Homestead Configuration
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/pub
keys:
- ~/.ssh/private.ppk
@irineujunior
irineujunior / moodle.sh
Last active July 14, 2021 12:44
Moodle site-types to Homestead
#!/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}
@irineujunior
irineujunior / install-mssql.sh
Last active August 25, 2021 13:00
Install SQL Server PHP Driver on Homestead
#!/bin/sh
# | ============================================================================
# | SQL Server PHP Driver on Homestead
# | ============================================================================
# | Ubuntu LTS | Settler | Homestead
# | ============================================================================
# | 20.04 | 11.x | 12.x
# | ============================================================================
@irineujunior
irineujunior / index.html
Created December 1, 2021 17:08
Matrix animation using html5 canvas
<canvas id="c"></canvas>
<!-- definitely not my work!!!!!
just tested this out from http://thecodeplayer.com/walkthrough/matrix-rain-animation-html5-canvas-javascript -->