Skip to content

Instantly share code, notes, and snippets.

View chouzar's full-sized avatar
🐢

Raúl Chouza chouzar

🐢
  • Tijuana, Baja California
View GitHub Profile
@chouzar
chouzar / step.css
Last active May 29, 2020 17:26
CSS animation
.step {
position: relative;
transition: linear 200ms opacity;
opacity: 1;
animation-duration: 200ms;
}
.step.left,
@chouzar
chouzar / .vimrc
Last active May 22, 2020 00:16
Vim config
" Install vim plug with
"
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
"
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'"
"
" At your ~/.vimrc file type

Generate ssh key pair:

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

To copy to clipboard you might use xclip:

> sudo apt-get install xclip
@chouzar
chouzar / Repo.insert_all.exs
Created March 21, 2019 02:09
Seed example
alias Vento.Partners.SponsorType
alias Vento.Repo
# The NaiveDateTime is recognized by ecto for date related types
now =
NaiveDateTime.utc_now()
|> NaiveDateTime.truncate(:second)
# Define record structure with :inserted_at and :updated_at fields
records =
@chouzar
chouzar / docker-compose.yml
Last active March 21, 2019 02:28
Docker compose file for postgress database
# Stop any hanging services,
# then run the task with docker-compose:
#
# > sudo service postgresql stop
# > sudo docker-compose up -d
version: '3'
services:
db:
restart: unless-stopped