Skip to content

Instantly share code, notes, and snippets.

View jorgearma1982's full-sized avatar
🏠
Working from home

Jorge Armando Medina jorgearma1982

🏠
Working from home
View GitHub Profile
@jorgearma1982
jorgearma1982 / .env.local.php
Created March 13, 2020 02:07 — forked from petehouston/.env.local.php
[Laravel 4.2] The environment dotfile configuration
<?php
//file: /.env.local.php
// return the configuration for the 'local' environment
return array(
'db_host' => '127.0.0.1',
'db_name' => 'DB_NAME', // specify database name
'db_user' => 'DB_USER', // specify database username
'db_pass' => 'DB_PASS', // specify database password
);
@jorgearma1982
jorgearma1982 / read-access.sql
Created March 9, 2020 23:14 — forked from oinopion/read-access.sql
How to create read only user in PostgreSQL
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
-- Grant access to future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess;

Keybase proof

I hereby claim:

  • I am jorgearma1982 on github.
  • I am jorgearma1982 (https://keybase.io/jorgearma1982) on keybase.
  • I have a public key whose fingerprint is 3EDA 302A 958C 83C3 D954 A1C7 CB6B E7B7 F142 B32C

To claim this, I am signing this object: