Skip to content

Instantly share code, notes, and snippets.

View ivanrosolen's full-sized avatar
:octocat:
....

Ivan Rosolen ivanrosolen

:octocat:
....
  • Stone
  • São Paulo, Brasil
View GitHub Profile
<canvas id="board" width="400" height="400"></canvas>
<script>
"use strict";
var board = "";
var context = "";
var x_velocity = 0;
var y_velocity = 0;
@ivanrosolen
ivanrosolen / how_to_phpt.md
Last active December 26, 2024 21:30
How To PHPT

How To PHPT

First, let's set up the 'enviroment'.

  • Clone this repo

git clone https://github.com/herdphp/docker-phpqa.git

  • Go to the created folder or the one you especified
@ivanrosolen
ivanrosolen / vagaphp.md
Last active July 19, 2021 19:21
Vaga Dev PHP Pleno/Sênior

Descrição da vaga

Estamos com vagas para backend aqui na Arizona

Temos uma stack bem variada e gostamos de pensar fora da caixa, utilizando coisas inovadoras para facilitar o dia-a-dia.

Local

Presencial ou Remoto, Zona Sul, São Paulo - Rua Castro Verde, 98

@ivanrosolen
ivanrosolen / lets_encrypt_nginx.txt
Last active January 4, 2017 21:08
Let's Encrypt + Nginx
apt-get update
apt-get install nginx
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto
@ivanrosolen
ivanrosolen / rename_regex.sh
Created November 22, 2016 20:14
Rename file using regex
#!/bin/bash
for filename in *.jpg; do
newFilename=$(echo $filename | \
sed -E 's#^.+_(.+).jpg$#\1.jpg#')
mv "$filename" new/"$newFilename"
done
@ivanrosolen
ivanrosolen / Frond End.txt
Last active December 28, 2016 13:41
Frond End
FRONTEND PLENO
Atividades:
- Desenvolver Single Page Applications
- Desenvolver um sistema interativo e com qualidade.
- Escrever um código limpo e que funcione em todos os browsers.
- Seguir todas as recomendações dos guias de código.
- Desenvolvimento voltado a usabilidade.
- Garantir que o sistema tenha alto desempenho.
- Criar as funcionalidades de acordo com as requisições do cliente.
@ivanrosolen
ivanrosolen / branches.sh
Created September 12, 2016 12:25
Download all git branches
git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs
@ivanrosolen
ivanrosolen / motd.sh
Last active August 31, 2016 10:17
fortune | cowsay | lolcat
#!/bin/bash
imgs=("blowfish" "bong" "bud-frogs" "bunny" "cheese" "cower" "daemon" "default" "dragon" "dragon-and-cow" "elephant" "elephant-in-snake" "eyes" "flaming-sheep" "ghostbusters" "head-in" "hellokitty" "kiss" "kitty" "koala" "kosh" "luke-koala" "meow" "milk" "moofasa" "moose" "mutilated" "ren" "satanic" "sheep" "skeleton" "small" "sodomized" "stegosaurus" "stimpy" "supermilker" "surgery" "telebears" "three-eyes" "turkey" "turtle" "tux" "udder" "vader")
count=${#imgs[@]}
rand=$[ $RANDOM % $count ]
eval "fortune | cowsay -n -f ${imgs[$rand]} | lolcat"
@ivanrosolen
ivanrosolen / country
Last active April 21, 2018 13:27
Country List
This list obtained from
http://www.umass.edu/microbio/rasmol/country-.txt
AD Andorra
AE United Arab Emirates
AF Afghanistan
AG Antigua and Barbuda
AI Anguilla
AL Albania
AM Armenia
@ivanrosolen
ivanrosolen / zshrc
Created July 12, 2016 19:23
oh-my-zsh profile
alias dockerup="docker-machine start default && eval \$(docker-machine env default)"
# Fix numeric keypad
# 0 . Enter
bindkey -s "^[Op" "0"
bindkey -s "^[On" "."
bindkey -s "^[OM" "^M"
# 1 2 3
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"