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
<?php | |
function splitMyName(string $name) { | |
return explode(' ', $name); | |
} | |
function extractNameFromData(array $data) { | |
return splitMyName($data['role']); | |
} |
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
<?php | |
$myName = "Elias Soares"; | |
$explodedName = explode(' ', $name); |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCxX/nf6xJylUDlhPQzaXwp8TGexif+Eyvrp+l6e7b+OqTEDTP+ODpFfJuT4wQ6JI7Fvqq76FdtGYeathAi9H89h3SfwhXx+y7PEuN8EKYVixmXMwSCzIH+JB5aI5FXdhUOSr4JGkTteFg+iyl2b08bCNsXU1q6BWrKp1cO+khRb6a2dk+WK6BIKlJ/1IV4fbocp2i+lfVo9PwL7GrT5U336IFSniEN3dFKKJ2K5J1dy5OqfTODoo8qdGL71JgAs1ZKFeqo5bw0dYx7qz6CqCM1SD4jQ1TMYjriKfEzaI9NT4vYePb07j+kcoA0kYWuVbFfunyydg2nEb/B6uwVO8tmTzeFUtb1e4zcKlRP/2x+ZncDwHTryHNwC+gamGGwGcymSLAyJ0Yo7eeoQ5aY4zy9bTxNz2FOSfB5Qze+xtyBS6RJ/1+21L+EppLLNBDfrL/YL4hW9n9uIN0WCBCPJcCyAFbpBu57Oz5z3iAdM9+r/ZfLwSgEx9D3K+W+QhnZtFDSTKDZDpRXZPwjEjcGMZlgaGNE0D1EKQR5IpoC0cnVY7S+sutgzMrdWu027TAaguGSa5MojWi7/c2r3uXx2GyOHphr0sWagJapQK9NvP7PtoqScozQMnL5v1Uv+t7XVKHQbGcYRyy+QW5HmzQ/a/sw7KiV2/45swlu8WwfuHDtDQ== esoares@iget.com.br |
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
#!/usr/bin/env bash | |
mkdir /etc/nginx/ssl 2>/dev/null | |
openssl genrsa -out "/etc/nginx/ssl/$1.key" 1024 2>/dev/null | |
openssl req -new -key /etc/nginx/ssl/$1.key -out /etc/nginx/ssl/$1.csr -subj "/CN=$1/O=Vagrant/C=UK" 2>/dev/null | |
openssl x509 -req -days 365 -in /etc/nginx/ssl/$1.csr -signkey /etc/nginx/ssl/$1.key -out /etc/nginx/ssl/$1.crt 2>/dev/null | |
block="server { | |
listen ${3:-80}; | |
server_name $1; |
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
alias ..="cd .." | |
alias ...="cd ../.." | |
alias h='cd ~' | |
alias c='clear' | |
alias cdt='cd ~/Code/cdtsys' | |
alias vpublish='php artisan vendor:publish --force' | |
function link-material() { |