Skip to content

Instantly share code, notes, and snippets.

View jorgegonzalez's full-sized avatar
🚀
Ad Astra per Aspera

Jorge Gonzalez jorgegonzalez

🚀
Ad Astra per Aspera
  • Near-Earth Orbit
View GitHub Profile
@jorgegonzalez
jorgegonzalez / crontab-guru.js
Created August 27, 2025 17:36
crontab-guru implementation
/**
* Cron Expression Parser Library
* Converts cron expressions to human-readable descriptions and calculates next execution times
*/
class CronParser {
constructor() {
this.monthNames = [
null, "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:base"],
labels: ["dependencies"],
timezone: "Asia/Kolkata",
schedule: ["before 11am on saturday"],
enabledManagers: ["npm"],
rangeStrategy: "bump",
commitMessagePrefix: "chore(deps): ",
commitBodyTable: true,
<body>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<header>
<div class="collapse bg-dark" id="navbarHeader">
<div class="container">
<div class="row">
<div class="col-sm-8 col-md-7 py-4">
<h4 class="text-white">About</h4>
<p class="text-muted">Add some information about the album below, the author, or any other background context. Make it a few sentences long so folks can pick up some informative tidbits. Then, link them off to some social networking sites or contact information.</p>
</div>
{
"ROOT": {
"type": {
"resolvedName": "GridContainer"
},
"isCanvas": true,
"props": {
"styles": {
"gap": "0.5rem",
"display": "grid",
@jorgegonzalez
jorgegonzalez / remote.md
Last active June 26, 2023 13:56
Remote Development with PyCharm

(and other IDEs.)

This document assumes a Linux-based host machine.

  1. Install OpenSSH Server on your host if you don't have it:
sudo apt install openssh-server
@jorgegonzalez
jorgegonzalez / daily_notes_template.md
Created May 3, 2023 13:08
Obsidian Daily Notes Template (requires Templater and Dataview)
created
2023-05-02 10:17

tags: [[+Daily Notes]]

<% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>

<< [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').subtract(1, 'd').format("[Timestamps]/YYYY/MM-MMMM/YYYY-MM-DD-dddd") %>|Yesterday]] | [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').add(1, 'd').format("[Timestamps]/YYYY/MM-MMMM/YYYY-MM-DD-dddd") %>|Tomorrow]] >>

@jorgegonzalez
jorgegonzalez / changelog-builder.sh
Last active September 9, 2021 17:41
Changelog generator
#!/usr/bin/env bash
# Source: https://stackoverflow.com/a/46033999/7678576 #
previous_tag=0
for current_tag in $(git tag --sort=-creatordate)
do
if [ "$previous_tag" != 0 ];then
tag_date=$(git log -1 --pretty=format:'%ad' --date=short ${previous_tag})
root = true
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.yml]
@jorgegonzalez
jorgegonzalez / setup.sh
Last active January 26, 2020 19:17
Setup script for a fresh Mac
#/usr/bin/bash
# Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Node and friends
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
brew install zsh git neovim neofetch tmux tree bash rbenv
# pnpm
@jorgegonzalez
jorgegonzalez / cloudSettings
Last active February 20, 2021 19:33
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-02-20T19:33:06.968Z","extensionVersion":"v3.4.3"}