Skip to content

Instantly share code, notes, and snippets.

View jmsalcido's full-sized avatar
🇲🇽
Sr Software Engineer - Remote

Jose Salcido jmsalcido

🇲🇽
Sr Software Engineer - Remote
View GitHub Profile
@jmsalcido
jmsalcido / load_poetry_docker_compose_into_pycharm.md
Last active April 17, 2024 16:51
Load correctly poetry environment from docker compose into pycharm available environments

PyCharm and Poetry with Docker (Compose)

I use PyCharm for my python development and normally I use a virtual env but now I found poetry and it manages the dependencies in a better way than just having a pip requirements file.

I had issues loading correctly a poetry environment from docker compose into pycharm available environments.

This sometimes works, sometimes I just reload the entire environment.

Step 1:

Run your docker image of course.

@jmsalcido
jmsalcido / martes.md
Created January 11, 2021 17:56
Por que el Martes es el peor dia de la semana

Se dice comunmente que el lunes es el peor dia de la semana por que es el dia despues del fin de semana, pero en esta tesis vamos a tratar de redactar el por que el Martes es el peor dia de la semana.

Acompañame.

Veamos todos los dias de la semana sin el martes:

Lunes

Primer dia de la semana, el dia mas alejado del Viernes puede ser una carga y muy doloroso tener que ir a trabajar ó ir a la escuela ya que vienes de un fin de semana en el cual probablemente:

  • Descansaste
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Collections;
using System.Collections.Generic;
[RequireComponent(typeof(Image))]
[RequireComponent(typeof(Mask))]
[RequireComponent(typeof(ScrollRect))]
public class ScrollSnapRect : MonoBehaviour, IBeginDragHandler, IEndDragHandler, IDragHandler {
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Hiking Treks</title>
<link>https://www.apple.com/itunes/podcasts/</link>
<language>en-us</language>
<copyright>&#169; 2020 John Appleseed</copyright>
<itunes:author>The Sunset Explorers</itunes:author>
<description>
@jmsalcido
jmsalcido / devz-sillas.md
Last active March 18, 2020 17:47
Devz - Sillas recomendadas
@jmsalcido
jmsalcido / tesis_rocky.md
Last active September 17, 2018 19:25
Tesis de por que Rocky III es el mejor Rocky

Tesis de por que Rocky 3 es el mejor Rocky. - por Jose Miguel Salcido Aguilar

Bienvenido seas lector a este, mi analisis sobre el universo cinematografico de Rocky.

Podemos comenzar siguiendo la linea de tiempo de Rocky:

Rocky I:

Vemos a un Rocky joven y con un futuro prometedor, pero su futuro no es nada si no hubiese conocido al mismisimo Micky, quien seria su entrenador y mentor y lo llevaria por el camino al exito.

@jmsalcido
jmsalcido / SpringCronSequenceTest.java
Created May 14, 2018 21:56
Test Spring CRON Jobs
import org.junit.Test;
import org.springframework.scheduling.support.CronSequenceGenerator;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import static org.junit.Assert.*;
public class SpringCronSequenceTest {
@jmsalcido
jmsalcido / gist:c4530e4eeae9df0a39bad3e3dbe17db6
Last active June 5, 2020 23:31
What to do when your ssh key is deleted from Digital Ocean and you have only SSH access with password.
  1. Digital Ocean console web access. [Important]
  2. cp ~/.ssh/id_rsa.pub ~/key.txt
  3. Dropbox it.
  4. Generate a public share link in dropbox
  5. Get something like this: https://www.dropbox.com/s/{{id}}/file?dl=0
  6. Replace the 0 to 1
  7. Get on Digital Ocean web console
  8. WGET it.
  9. Append it to $HOME/.ssh/authorized_keys cat $HOME/key.txt >> $HOME/.ssh/authorized_keys
  10. be happy
@jmsalcido
jmsalcido / build.gradle
Created February 21, 2017 06:12
bintraymavenurl
repositories {
maven {
url 'https://dl.bintray.com/jsalcido/maven/'
}
}
@jmsalcido
jmsalcido / build.gradle
Last active February 21, 2017 05:21
bintraygradle
apply plugin: 'com.jfrog.bintray'
version = '1.0'
if (project.hasProperty("android")) {
// deploy aar
task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}