Skip to content

Instantly share code, notes, and snippets.

View getsueineko's full-sized avatar
🏀

Tom Emv getsueineko

🏀
View GitHub Profile
@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"
@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 / 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 / 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 / mongodb_pass_reset.md
Created September 24, 2021 06:39 — forked from shivampip/mongodb_pass_reset.md
MongoDB shell admin password reset
  • open mongod.conf
cd /etc/mongod.conf
  • Comment security
#security:
#  authroization: "enabled"
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@getsueineko
getsueineko / gist:1f0d281137f27828b2b3bc17f2dd7c56
Created October 29, 2021 11:17
Fix visible borders in VirtualBox seamless mode (GNOME)
# ~/.config/gtk-3.0/gtk.css
decoration, decoration:backdrop {
border-radius: 0;
border-width: 0;
box-shadow: none;
margin: 1px;
}
#!/usr/bin/env bash
# Quick setup my zsh
# set -Eeuo pipefail
# MultiOS block
if [[ $(cat /etc/os-release | grep ID_LIKE) == *"debian"* ]]; then
echo -e "\nDebian-based system\n"
sudo apt update
sudo apt install git zsh fzf thefuck wget -y
#!/usr/bin/env zsh
# Quick config my zsh
# set -Eeuo pipefail
# Fix for Linux TTY
if [[ "$OSTYPE" == "linux"* ]]; then
sed -i 's/ZSH_THEME="robbyrussell"/if [ "$TERM" = "linux" ]; then\n\ ZSH_THEME="clean"\nelse\n\ ZSH_THEME="robbyrussell"\nfi/' ~/.zshrc
echo -e "\nif [ \"\$TERM\" = \"linux\" ]; then\n ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=3'\nelse\n ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=245'\nfi\n" >> ~/.zshrc
fi