Skip to content

Instantly share code, notes, and snippets.

@johnnybravo-xyz
johnnybravo-xyz / read-access.sql
Created January 5, 2021 05:45 — forked from riteshshrv/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;
@johnnybravo-xyz
johnnybravo-xyz / firefox-to-org.py
Created November 3, 2020 14:23 — forked from eigengrau/firefox-to-org.py
Export Firefox bookmarks to org-mode
#!/usr/bin/env python
# Read a Mozilla places JSON-structure from STDIN and create a directory
# hierarchy of org-mode files containing bookmarks.
# Copyright (c) 2014 Alexey Kutepov a.k.a. rexim
# Copyright (c) 2016 Sebastian Reuße
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
@johnnybravo-xyz
johnnybravo-xyz / doom.txt
Created October 5, 2020 10:00 — forked from artuaa/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch