Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View evertramos's full-sized avatar
🐳
Automating things!

Evert R. evertramos

🐳
Automating things!
View GitHub Profile
{
"info": {
"_postman_id": "6ea0a93e-2fa4-4e5e-9d14-a96a7c935d16",
"name": "e-Agendas - v2 - Consulta",
"description": "### Maiores informações favor acessar:\n\n### [https://github.com/cgugovbr/eagendas-publico/](https://github.com/cgugovbr/eagendas-publico/)",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "454997",
"_collection_link": "https://evertramos.postman.co/workspace/CGU~e84f8774-c95b-4307-be9f-9aefff261bc8/collection/454997-6ea0a93e-2fa4-4e5e-9d14-a96a7c935d16?action=share&source=collection_link&creator=454997"
},
"item": [
@evertramos
evertramos / CaddyController.php
Created February 5, 2022 11:55 — forked from gilbitron/CaddyController.php
Enabling HTTPS (SSL) for Laravel Sail using Caddy
<?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 January 28, 2022 12:19 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

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 February 3, 2020 18:06 — forked from chronon/ext.txt
List of docker-php-ext-install extension names
Possible values for ext-name:
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
@evertramos
evertramos / Filter.php
Created July 25, 2019 14:41 — forked from szabomikierno/Filter.php
Filter trait for any Laravel Model
<?php
namespace App\Core\Model;
/**
* FILTER QUERY PARAMS
*
* @param (boolean) active
* The returned resources active (deleted_at) status

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 August 17, 2018 10:28 — forked from mvadu/grafana custom.ini
nginx config for using grafana, Influxdb via reverse proxy with authentication
# 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 June 13, 2018 17:20 — forked from BenSampo/deploy.sh
Laravel deploy script
# 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
@evertramos
evertramos / keybase.md
Created May 15, 2018 21:25
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: