Skip to content

Instantly share code, notes, and snippets.

Avatar
🐳
Automating things!

Evert Ramos evertramos

🐳
Automating things!
View GitHub Profile
@evertramos
evertramos / CaddyController.php
Created Feb 5, 2022 — forked from gilbitron/CaddyController.php
Enabling HTTPS (SSL) for Laravel Sail using Caddy
View CaddyController.php
<?php
# app/Http/Controllers/CaddyController.php
namespace App\Http\Controllers;
use App\Store;
use Illuminate\Http\Request;
class CaddyController extends Controller
{
@evertramos
evertramos / bash-colors.md
Created Jan 28, 2022 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.
View bash-colors.md

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@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   pg_restore -C -d  &lt; 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.