Skip to content

Instantly share code, notes, and snippets.

View wilmerterrero's full-sized avatar
🐢
Never stop learning

Wilmer Terrero wilmerterrero

🐢
Never stop learning
View GitHub Profile
@wilmerterrero
wilmerterrero / latest.json
Last active December 8, 2023 00:05
Updating file via Release Action
{
"version": "2.0.1",
"notes": "See the assets to download and install this version.",
"pub_date": "2023-12-08T00:05:52.840Z",
"platforms": {
"darwin-aarch64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUZjI5MEk4bTFTMm51bkVIQnFmbjQwMVZEOGFpMCt1TTV1b0ZyRFBFeHVoWlhwMXd0UGZNelpub1ZFOUhESExTN3QvWGMxY3R5aUJVM0FqRy9UdjdrcndvdnJzQXZ5eHcwPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzAxOTkzOTQ5CWZpbGU6VGllbXBvLmFwcC50YXIuZ3oKT1p0NzBFZjdUNy8rbVRNdWYxREhFNkZXa2Z0eGg0RkpyR0xoYW95N1p0QXRzTWlDZWcrNGxiNjJvRU5XVWhyQ2lBRXh4QW55SllvL0djZUp0RGtTQlE9PQo=",
"url": "https://github.com/wilmerterrero/tiempo-app/releases/download/Tiempo-v2.0.1/Tiempo_universal.app.tar.gz"
},
"darwin-x86_64": {
@wilmerterrero
wilmerterrero / latest.json
Last active December 6, 2023 21:45
Updating file via Release Action
{
"version": "0.0.2",
"notes": "See the assets to download and install this version.",
"pub_date": "2023-12-06T21:45:46.603Z",
"platforms": {
"darwin-aarch64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVTM0ZCeFZkSndsRExnN0dNSk9BM1lGZUdkb0wxTTlMWkNmZXJIU1pYY29rdCtLM0ErSURnRU8yNmRZVWlQeUxsR1gwVVZ3NXlsNmg5L1Z3amwrRlA5QjQ2c1NNV2FtdUF3PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzAxODkwODY3CWZpbGU6ZGVtb2FwcC5hcHAudGFyLmd6ClBqQTBzYk1COXNDZ0EzY05Rc2xtTEJFam0zOFRDRkhYb3REcFE3TzZMaGorQTRXNjV4QVBDREhrelg0UitNUDcwMFZJOHBBYy84bnFkTk9RZ1E4N0RRPT0K",
"url": "https://github.com/wilmerterrero/tauri-release-demo-app/releases/download/demoapp-v0.0.2/demoapp_universal.app.tar.gz"
},
"darwin-x86_64": {
@wilmerterrero
wilmerterrero / github_multiple-accounts.md
Created November 1, 2021 02:42 — forked from JoaquimLey/github_multiple-accounts.md
How to Work with GitHub and Multiple Accounts

Step 1 - Create a New SSH Key

We need to generate a unique SSH key for our second GitHub account.

ssh-keygen -t rsa -C "your-email-address"

Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.

Step 2 - Attach the New Key

@wilmerterrero
wilmerterrero / .php
Created June 4, 2021 12:28
exceldate_to_date.php
<?php
$EXCEL_DATE = 36867;
$UNIX_DATE = ($EXCEL_DATE - 25569) * 86400;
echo gmdate("Y-m-d", $UNIX_DATE);
@wilmerterrero
wilmerterrero / index.js
Created March 27, 2021 16:31 — forked from codigoconjuan/index.js
Guía para instalar React Navigation 5
// Instalar react-navigation/native
npm install @react-navigation/native
// Instalar las dependencias
npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
// Instalar navegación en Stack
npm i @react-navigation/stack
@wilmerterrero
wilmerterrero / CedulaForm.js
Created March 5, 2021 15:36
Validate structure of cedula electoral
import React from "react";
import { Field, Formik } from "formik";
import * as Yup from "yup";
import MaskedInput from "react-text-mask";
function SignUpForm() {
const initialLoginValues = {
cedula: "",
};
@wilmerterrero
wilmerterrero / .zshrc
Last active September 29, 2021 18:06
My zshrc config
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Path to your oh-my-zsh installation.
export ZSH="/home/wilmer/.oh-my-zsh"
# NVM Config
@wilmerterrero
wilmerterrero / psql_wsl_install.md
Created January 23, 2021 20:03 — forked from michaeltreat/psql_wsl_install.md
Postgres WSL install instructions

Install psql on WSL

Home

This install is pretty different from previous versions of psql install instructions for windows. This install uses the WSL and Ubuntu shell.

We are installing this through the Ubuntu command line which is different from the other Ubuntu install instructions because those instructions use Ubuntu's GUI, which we don't have access to here.

NOTE: Since this is a service that is running on Ubuntu, you should be in the the Ubuntu file system when running these commands!

Install

@wilmerterrero
wilmerterrero / heroku-remote.md
Created August 8, 2020 14:07 — forked from randallreedjr/heroku-remote.md
Add a Heroku remote to an existing git repo

Working with git remotes on Heroku

Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.

Adding a new remote

Add a remote for your Staging app and deploy

Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.

$ git remote add staging https://git.heroku.com/staging-app.git