cd ~/contribs/php-manual
I hereby claim:
- I am wsilva on github.
- I am wsilva (https://keybase.io/wsilva) on keybase.
- I have a public key ASAQ3EkSDh8RRS1z7xi1mJpTzIw6NiIDDpFSFt9cU8kAQwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- colocar esse snippet em %SUBLIMEINSTALLPATH%/Packages/docker-compose/docker-compose-template-v2.sublime-snippet --> | |
<snippet> | |
<content><![CDATA[ | |
version: '2' | |
services: | |
web: | |
build: ./dir | |
container_name: my-web-container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# shellcheck disable=SC2102 | |
set -euo pipefail | |
renew_creds() { | |
DEVICE=$(aws iam list-mfa-devices --query MFADevices[0].SerialNumber --output text) | |
read -r -p "Enter MFA token: " |
Neste tutorial será considerado o seguinte cenário para seus repositórios locais do Git:
- Você possui o Git 2.10.0 ou superior (detalhes abaixo).
- Seus commits sempre terão o nome
Fulano da Silva
- Seus commits em repositórios pessoais devem usar o e-mail
fulano.silva@gmail.com
- Seus commits em repositórios do trabalho devem usar o e-mail
fulano.silva@empresa.com.br
- Você possui chaves SSH diferentes para projetos pessoais e projetos do trabalho
- Tanto projetos pessoais quanto projetos do trabalho podem estar hospedados no GitHub, GitLab.com, etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: ./k8s-yaml-splitter file.yaml | |
file=$1 | |
output=yabadabadoo_ | |
count=$(cat ${file} | wc -l) | |
count=$((count + 1)) | |
lines=$(grep -n -e '---' ${file} | awk -F: '{ print $1 }') | |
lines="${lines} ${count}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
_databricks() { | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
commands="cluster-policies clusters configure fs groups instance-pools jobs libraries pipelines runs secrets stack tokens workspace" | |
if [ $COMP_CWORD == 1 ] | |
then | |
COMPREPLY=($(compgen -W "${commands}" -- ${cur})) |