Skip to content

Instantly share code, notes, and snippets.

View iget-esoares's full-sized avatar

Elias Soares iget-esoares

  • iGet
  • Fortaleza - Brasil
View GitHub Profile
<?php
function splitMyName(string $name) {
return explode(' ', $name);
}
function extractNameFromData(array $data) {
return splitMyName($data['role']);
}
<?php
$myName = "Elias Soares";
$explodedName = explode(' ', $name);
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
#!/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;
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() {