Skip to content

Instantly share code, notes, and snippets.

View carlos-talavera's full-sized avatar
🏠
Working from home

Carlos Talavera carlos-talavera

🏠
Working from home
View GitHub Profile
@Klerith
Klerith / tarea-pg-admin.md
Last active May 20, 2025 15:29
Tarea sobre PGAdmin y Postgres

Docker Hub images

Postgres

pgAdmin

1. Crear un volumen para almacenar la información de la base de datos

docker COMANDO CREAR postgres-db

2. Montar la imagen de postgres así

OJO: No hay puerto publicado -p, lo que hará imposible acceder a la base de datos con TablePlus

@codigoconjuan
codigoconjuan / filtrar-vacantes.blade.php
Last active March 23, 2024 18:19
Buscador con Livewire
<div class="bg-gray-100 py-10">
<h2 class="text-2xl md:text-4xl text-gray-600 text-center font-extrabold my-5">Buscar y Filtrar Vacantes</h2>
<div class="max-w-7xl mx-auto">
<form>
<div class="md:grid md:grid-cols-3 gap-5">
<div class="mb-5">
<label
class="block mb-1 text-sm text-gray-700 uppercase font-bold "
for="termino">Término de Búsqueda
@codigoconjuan
codigoconjuan / index.blade.php
Last active July 20, 2024 20:32
Home DevJobs Laravel
<x-app-layout>
<div class="py-16 bg-gray-50 overflow-hidden lg:py-24">
<div class=" max-w-xl mx-auto px-4 sm:px-6 lg:px-8 lg:max-w-7xl">
<div class="relative">
<h2 class="text-center text-4xl leading-8 font-extrabold tracking-tight text-indigo-600 sm:text-6xl">Encuentra un trabajo en Tech de forma remota</h2>
<p class="mt-4 max-w-3xl mx-auto text-center text-xl text-gray-500">Encuentra el trabajo de tus sueños en una empresa internacional; tenemos vacantes para front end developer, backend, devops, mobile y mucho más!</p>
</div>
</div>
</div>
</x-app-layout>
@ngryman
ngryman / example.ts
Created June 29, 2019 17:24
Updating cached data from multiple parameterized queries after a mutation (hacky solution)
addTask({
variables: { input },
optimisticResponse: {
addTask: {
__typename: 'Task',
id,
...input
}
},
update: (proxy: any, { data: { addTask } }: any) => {
@tigusigalpa
tigusigalpa / database.php
Last active March 5, 2025 05:17
Laravel PostgreSQL SSL encryption connection config
<?php
/**
* 1. You have to store your client SSL certificates on your Laravel server, in my case this is /var/certs/mydomain.com/...
* 2. You have to right select SSL mode for PostgreSQL (see https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS), verify-full means your server CA is signed for real domain name for the PostgreSQL server (recommended)
* 3. Go to Laravel config/database.php to the section 'pgsql' and extend it to the following:
*/
return [
/*...*/
'connections' => [
/*'mysql' etc*/
@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active June 7, 2025 12:33
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source