Skip to content

Instantly share code, notes, and snippets.

Error: multiple RDS engine versions ([{
DBEngineDescription: "Aurora (PostgreSQL)",
DBEngineVersionDescription: "Aurora PostgreSQL (Compatible with PostgreSQL 10.14)",
DBParameterGroupFamily: "aurora-postgresql10",
Engine: "aurora-postgresql",
EngineVersion: "10.14",
ExportableLogTypes: ["postgresql"],
Status: "available",
SupportedEngineModes: ["provisioned"],
SupportedFeatureNames: [
@ejimz
ejimz / bcrypt-promise.js
Created July 18, 2019 06:08 — forked from dmh2000/bcrypt-promise.js
Using bcrypt with promises to hash a password and then verify it
let bcrypt = require('bcrypt-nodejs');
let password = "hello";
let stored_hash = "";
// first generate a random salt
function genSalt(password) {
return new Promise((resolve,reject) => {
bcrypt.genSalt(10,function(err,salt) {
if (err) {
@ejimz
ejimz / readme.md
Created November 20, 2018 15:15 — forked from gimenete/readme.md
Notas para orientación profesional como programador

Tras este tweet que publiqué

He sido freelance, emprendedor y trabajo desde hace años para empresas USA de diversos tamaños en remoto como programador fullstack. Ahora en GitHub. Si puedo ayudar a alguien en orientar su carrera, mis DMs están abiertos. Ask me anything.

he recibido muchos mensajes y escribo aquí algunos de los consejos que he dado en resumen. Nota: algunas cosas son concretas de trabajar en España. Si vas a trabajar desde Sudamérica sólo una nota: tienes la ventaja de la zona horaria para trabajar con EEUU.

Inglés

Tener un buen nivel de inglés es fundamental para poder trabajar con clientes extranjeros. El conocimiento del idioma tiene que mantenerse en el tiempo. Es como mantenerse en forma física; si lo dejas, lo pierdes. Personalmente aunque trabajo 100% en inglés desde hace bastantes años, intento crearme un entorno diario con el idioma para no perderlo:

@ejimz
ejimz / gist:a67b7665a43cf09b8988597dbff113ac
Last active May 8, 2017 15:45
Specific git config for a repo
You can configure an individual repo to use a specific user / email address which overrides the global configuration. From the root of the repo, run
git config user.name "Your Name Here"
git config user.email your@email.com
@ejimz
ejimz / 0_reuse_code.js
Created March 30, 2017 10:34
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ejimz
ejimz / iptables_rules.sh
Created December 7, 2016 08:49 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@ejimz
ejimz / k8s_change_hosts_file
Created November 25, 2016 13:23
Script to change /etc/host file in a kubernetes POD in base of a service name or external service
#!/bin/bash
hosts_file="hosts"
service_string="_SERVICE_HOST"
port_string="_SERVICE_PORT"
domain="mysite.com"
declare -a names_arr
names_arr=(service1 service2 service3)

Keybase proof

I hereby claim:

  • I am ejimz on github.
  • I am ejimenez (https://keybase.io/ejimenez) on keybase.
  • I have a public key whose fingerprint is CE0A 09E5 FF05 CDFD 0A9A 3AA7 4AEC 6F3D 611E AF27

To claim this, I am signing this object:

# undo local chamges
git reset --hard
#get all remote branchs
git fetch origin
# back to a specific commit in remote
# git reset --hard COMMIT_TO_POINT
git reset --hard c330b3fef40794f274402e7c949b228754cc336f
push -f
@ejimz
ejimz / optparse.rb
Created December 28, 2015 16:12
Option parser ruby example
#!/usr/bin/env ruby
require 'optparse'
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
#string as argument
opts.on("-u", "--url [URL]", String, "Remote url") do |url|