Skip to content

Instantly share code, notes, and snippets.

View nicolkill's full-sized avatar
🏠
Working from home

Nicol Acosta nicolkill

🏠
Working from home
View GitHub Profile

Elementary OS Post Install

Browser

Install Chrome or your favorite browser

Install Required Drivers

sudo ubuntu-drivers autoinstall
@nicolkill
nicolkill / docker.md
Last active September 25, 2023 18:48
commands

docker tasks

some task that you can do using docker instead install the tool directly in your computer

commands

dump data from external database, important add the network of the container

docker run -it --rm -v ${PWD}:/tmp --network project_network_default postgres pg_dump -c -f /tmp/dump.sql postgresql://postgres:postgres@postgres:5432/postgres
defmodule Nicolkill.Cache do
@moduledoc """
Cache wrapper for store key: value in ETS
"""
@cache_table :cache
defp init_table() do
if :ets.info(@cache_table) == :undefined do
:ets.new(@cache_table, [:set, :public, :named_table])
@nicolkill
nicolkill / create_phx_app.sh
Last active January 24, 2022 04:58
Create Elixir Phoenix app with Docker
docker run -it --rm -v (pwd):/app -w /app elixir:latest mix do local.rebar --force, local.hex --force, archive.install hex phx_new, phx.new your_name

Keybase proof

I hereby claim:

  • I am nicolkill on github.
  • I am nicolkill (https://keybase.io/nicolkill) on keybase.
  • I have a public key ASBJ0HBIoaIwKblJUq1McpOcuwVgQFTZgB3dnZXwdItHfgo

To claim this, I am signing this object: