Skip to content

Instantly share code, notes, and snippets.

Avatar
🐳
Automating thnigs!

Evert Ramos evertramos

🐳
Automating thnigs!
View GitHub Profile
@evertramos
evertramos / ext.txt
Created Feb 3, 2020 — forked from chronon/ext.txt
List of docker-php-ext-install extension names
View ext.txt
Possible values for ext-name:
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
@evertramos
evertramos / Filter.php
Created Jul 25, 2019 — forked from szabomikierno/Filter.php
Filter trait for any Laravel Model
View Filter.php
<?php
namespace App\Core\Model;
/**
* FILTER QUERY PARAMS
*
* @param (boolean) active
* The returned resources active (deleted_at) status
View docker.md

PostgreSQL

Backup

docker exec -u <your_postgres_user> <postgres_container_name> pg_dump -Fc <database_name_here> > db.dump

Restore

docker exec -i -u <your_postgres_user> <postgres_container_name> pg_restore -C -d <database_name_here> < db.dump
@evertramos
evertramos / grafana custom.ini
Created Aug 17, 2018 — forked from mvadu/grafana custom.ini
nginx config for using grafana, Influxdb via reverse proxy with authentication
View grafana custom.ini
# The full public facing url
#root_url = %(protocol)s://%(domain)s:%(http_port)s/
root_url = http://localhost:80/grafana/
@evertramos
evertramos / deploy.sh
Created Jun 13, 2018 — forked from BenSampo/deploy.sh
Laravel deploy script
View deploy.sh
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down
# Pull the latest changes from the git repository
git pull origin master
# Install/update composer dependecies
View keybase.md

Keybase proof

I hereby claim:

  • I am evertramos on github.
  • I am evertramos (https://keybase.io/evertramos) on keybase.
  • I have a public key ASAP_IWmbWBxBNinu8_VsBrZACUmTmQsz4ANynOcoWm_swo

To claim this, I am signing this object:

@evertramos
evertramos / GoogleDriveServiceProvider.php
Created Apr 30, 2018 — forked from sergomet/GoogleDriveServiceProvider.php
Setup a Laravel Storage driver with Google Drive API
View GoogleDriveServiceProvider.php
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class GoogleDriveServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
@evertramos
evertramos / add_two_times.js
Created Jan 18, 2018 — forked from joseluisq/add_two_times.js
Add two string time values (HH:mm:ss) with javascript
View add_two_times.js
/**
* Add two string time values (HH:mm:ss) with javascript
*
* Usage:
* > addTimes('04:20:10', '21:15:10');
* > "25:35:20"
* > addTimes('04:35:10', '21:35:10');
* > "26:10:20"
* > addTimes('30:59', '17:10');
* > "48:09:00"
@evertramos
evertramos / .profile
Created Aug 29, 2017 — forked from HSBallina/.profile
Git aliases with autocompletion
View .profile
echo "Hello World!
"
alias g="git"
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias gm="git merge"
alias go="git checkout"