Skip to content

Instantly share code, notes, and snippets.

View lazincastro's full-sized avatar
🎯
Focusing

Lazin lazincastro

🎯
Focusing
View GitHub Profile
@lazincastro
lazincastro / gruvbox_light.json
Created May 24, 2021 14:15 — forked from edi33416/gruvbox_light.json
Gruvbox Light color scheme for Windows Terminal
{
"background": "#FBF1C7",
"black": "#282828",
"blue": "#076678",
"brightBlack": "#A89984",
"brightBlue": "#076678",
"brightCyan": "#427B58",
"brightGreen": "#79740E",
"brightPurple": "#8F3F71",
"brightRed": "#9D0006",
@lazincastro
lazincastro / gruvbox_dark.json
Created May 24, 2021 14:15 — forked from davialexandre/gruvbox_dark.json
Gruvbox Dark color scheme for the new Windows Terminal
{
"background" : "#282828",
"black" : "#282828",
"blue" : "#458588",
"brightBlack" : "#928374",
"brightBlue" : "#83A598",
"brightCyan" : "#8EC07C",
"brightGreen" : "#B8BB26",
"brightPurple" : "#D3869B",
"brightRed" : "#FB4934",
@lazincastro
lazincastro / .ideavimrc
Created March 26, 2021 12:48
ideavimrc config for pycharm
"---- ---- ---- ---- Basic ---- ---- ---- ----"
let mapleader =","
set visualbell
set noerrorbells
set surround
set commentary
set highlightedyank
set relativenumber
set NERDTree
@lazincastro
lazincastro / instructions.md
Created March 16, 2021 21:24 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@lazincastro
lazincastro / check.go
Created February 18, 2021 14:32 — forked from mattes/check.go
Check if file or directory exists in Golang
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) {
// path/to/whatever does not exist
}
if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) {
// path/to/whatever exists
}
@lazincastro
lazincastro / DO280 Commands
Created February 4, 2021 17:31
DO280 Commands
# Create the postgresql-persistent deployment
oc new-app --name postgresql-persistent \
--docker-image registry.redhat.io/rhel8/postgresql-12:1-43 \
-e POSTGRESQL_USER=redhat \
-e POSTGRESQL_PASSWORD=redhat123 \
-e POSTGRESQL_DATABASE=persistentdb
# Create a PVC and volume for the postgresql-persistent deployment
oc set volumes deployment/postgresql-persistent \
@lazincastro
lazincastro / netrw.txt
Created February 2, 2021 18:43 — forked from danidiaz/netrw.txt
Vim's netrw commands.
--- ----------------- ----
Map Quick Explanation Link
--- ----------------- ----
< <F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file |netrw-cr|
<del> Netrw will attempt to remove the file/directory |netrw-del|
<c-h> Edit file hiding list |netrw-ctrl-h|
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l|
<c-r> Browse using a gvim server |netrw-ctrl-r|
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab|
@lazincastro
lazincastro / vimrc
Created February 2, 2021 17:30
Basic vimrc
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
"set ai " always set autoindenting on
"set backup " keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers
@lazincastro
lazincastro / Things To Do After Installing Ubuntu.md
Last active January 22, 2021 01:16
Things To Do After Installing Ubuntu 20.04 LTS

Enable Minimize on Click

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'

Get a Powerful File Preview Tool

sudo apt-get install gnome-sushi

Install Typora

https://typora.io/