Skip to content

Instantly share code, notes, and snippets.

View huarmenta's full-sized avatar
💭
Fullsnack developer

Hugo Armenta huarmenta

💭
Fullsnack developer
View GitHub Profile
@huarmenta
huarmenta / falsehoods-programming-time-list.md
Created March 5, 2024 19:11 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@huarmenta
huarmenta / commands.txt
Last active May 12, 2020 21:52
Terminal #commands #ubuntu #linux
cat # concatenar o leer archivos cortos
less # es el sistema de lectura de archivos que utiliza man
/palabra #busca en el archivo abierto la palabra o frase que colocamos
n # encuentra la siguiente coincidencia
shift + n # encuentra la coincidencia anterior
tail # muestra las ultimas 10 lineas de un archivo
head # muestra las primeras 10 lineas
tails/head -n 20 # muestra 20 lineas
@huarmenta
huarmenta / .rubocop-engine.yml
Created April 12, 2019 17:30
Rubocop base configuration for engines
# Inheritance
# inherit_from:
# - .rubocop_todo.yml
# Extensions
require:
- rubocop-rspec
- rubocop-performance
Rails:
Enabled: true
@huarmenta
huarmenta / Dockerfile
Created November 6, 2017 19:12 — forked from RoyalIcing/Dockerfile
Rails 5.1 Dockerfile
FROM ruby:2.4-alpine
ENV PATH /root/.yarn/bin:$PATH
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh build-base nodejs tzdata
RUN apk update \
&& apk add curl bash binutils tar gnupg \
&& rm -rf /var/cache/apk/* \
If installed PostgreSQL with homebrew , enter brew uninstall postgresql
If you used the EnterpriseDB installer , follow the following step.
Run the uninstaller on terminal window
sudo /Library/PostgreSQL/9.X/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh
If installed with Postgres Installer, do: