Keybase proof
I hereby claim:
- I am morales2k on github.
- I am morales2k (https://keybase.io/morales2k) on keybase.
- I have a public key whose fingerprint is 1AFA F283 1358 C560 6CEA B2CE FE71 D6F5 43DC 3CF7
To claim this, I am signing this object:
alias cddocker='cd ~/laradock' #path to your laradock folder | |
# Get on your workspace move to the laravel directory and invoke artisan commands to clear | |
# caches without keeping your terminal inside the workspace at the end. | |
function wipe-caches() { | |
( cddocker && docker-compose exec --user laradock workspace bash -c "cd laravel && php artisan config:clear && php artisan cache:clear" ) | |
} |
#same functionality in a bash profile function | |
function cors-test() { | |
ORIGIN=$1 | |
URI=$2 | |
METHOD=$3 | |
if [ -z "$3" ] && [ -z "$METHOD" ]; then | |
echo -e "\033[0;33mSince you did not provide a method, the default GET will be used.\nYou can provide a third param to specify the method\n(to use with the curl -X option).\033[1;33m\033[0m\n" | |
METHOD="-X ${METHOD}" | |
fi |
--- | |
ip: "10.10.192.168" | |
memory: 2048 | |
cpus: 1 | |
provider: virtualbox | |
name: homestead-7 | |
authorize: ~/.ssh/id_rsa.pub | |
keys: |
#nvm stuff their installer adds | |
export NVM_DIR=~/.nvm | |
source $(brew --prefix nvm)/nvm.sh | |
#nvm stuff end... | |
#add composer to PATH | |
export PATH=~/.composer/vendor/bin:$PATH | |
#aliases to make my life easier | |
alias phpunit=./vendor/bin/phpunit |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Validator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** |
I hereby claim:
To claim this, I am signing this object:
^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,12})([\/\w-\.]*)?\??([=\w+&%\s-]?)*$ |
#!/bin/bash | |
# Bash script to ssh into an amazon or other remote host. I made this script to have a single shortcut on my desktop to use in order to load a routine that would simplify establishing an ssh pipe to our remote servers, in this snippet 2 servers are used, but as you can see, it can be scaled up easily by adding more options/cases in the code. Happy Coding! | |
# Author: Jorge Morales | |
#UPDATE THESE VARIABLES WHENEVER THERE ARE CHANGES | |
test_server="TEST_SERVER_HOST_ADDRESS" | |
production_server="PRODUCTION_SERVER_HOST_ADDRESS" | |
pathToCertificate="PATH_TO_KEYFILE" | |
echo "Type 1 to connect to Test server." | |
echo "Type 2 to connect to Production server." |
import requests | |
import json | |
import calendar | |
import sys | |
import codecs | |
from datetime import datetime, timedelta | |
sys.stdout = codecs.getwriter("utf-8")(sys.stdout, 'strict') | |
_tokens = ["TOKEN_LIST"] |
#! /bin/bash | |
archivo='.env' | |
filelines=`cat $archivo` | |
i=0 | |
newfilelines='' | |
echo "Fetching dirty tags from remote repository..." | |
gitVersion=`git ls-remote -t {{REPOSITORY-URL}} *.*.*^*` | |
gv='' |