Skip to content

Instantly share code, notes, and snippets.

View getsueineko's full-sized avatar
🏀

Tom Emv getsueineko

🏀
View GitHub Profile
@getsueineko
getsueineko / read-access.sql
Created August 31, 2021 10:49 — 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;
@getsueineko
getsueineko / howto.md
Created August 16, 2021 08:28 — forked from petrkohut/howto.md
How to have redis-cli and psql installed on machine using Docker

How to install redis-cli and psql client on your machine with Docker

Preparing docker images

We will use minimalistic Linux distribution called Alpine (5MB)

Dockerfile of redis-cli

FROM alpine:latest
RUN apk --update add redis
@getsueineko
getsueineko / pushover
Created July 27, 2021 13:29 — forked from outadoc/pushover
Pushover Bash Script
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: ./pushover <message> [title]"
exit
fi
MESSAGE=$1
TITLE=$2
@getsueineko
getsueineko / .vimrc
Last active July 13, 2021 17:17
My basic VIM config
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
/etc/vconsole.conf
KEYMAP="ruwin_ct_sh-UTF-8"
LOCALE="ru_RU.UTF-8"
CONSOLEMAP=
FONT="UniCyr_8x16"
USECOLOR="yes"
/etc/X11/xorg.conf.d/00-keyboard.conf
Section "InputClass"
Identifier "system-keyboard"