Skip to content

Instantly share code, notes, and snippets.

View paridin's full-sized avatar
🎯
Focusing

Roberto Estrada paridin

🎯
Focusing
View GitHub Profile
@paridin
paridin / pasos_elixir_install_ubuntu_18.04.md
Last active August 1, 2019 15:10
Guia rápida para instalar elixir con ubuntu 18.04 (docker para postgres)

ubuntu dependencias

sudo apt install \
git build-essential autoconf m4 libncurses5-dev libwxgtk3.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils \
automake autoconf libreadline-dev \
libncurses-dev libssl-dev libyaml-dev \
libxslt-dev libffi-dev libtool unixodbc-dev \
unzip curl vim inotify-tools
@paridin
paridin / elixir.json
Last active June 14, 2020 19:20
VSCode Elixir Snippets
{
// Place your snippets for elixir here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@paridin
paridin / ex_pixel.ex
Last active June 23, 2020 20:23
an example of create an pixel event using elixir
defmodule Fb.Pixel do
@moduledoc """
Facebook Pixel
requires HTTPPoison, Jason
"""
@pixel_id Application.get_env(:fb, :pixel_id)
@api_version Application.get_env(:fb, :fb_graph_api_version)
def create_events(token, events, test_event \\ nil) do
FROM bitwalker/alpine-elixir-phoenix:1.12.2 AS builder
ARG COOKIE
# The environment to build with
ARG MIX_ENV=prod
# Set this to true if this release is not a Phoenix app
ARG SKIP_PHOENIX=false
# If you are using an umbrella project, you can change this
# argument to the directory the Phoenix app is in so that the assets
# can be built
@paridin
paridin / recover_postico.zsh
Created October 29, 2022 22:56
A function helper to recover your postico configurations from git
function restore_postico_config() {
yn=""
origin=YOUR_GIT_PATH
recovery_path=$HOME/Library/Containers/at.eggerapps.Postico/Data/Library/Application\ Support/Postico
if ! git clone "${origin}" "${recovery_path}" 2>/dev/null && [ -d "${recovery_path}" ]; then
echo "Clone failed because the folder ${recovery_path} exists"
while true; do