Skip to content

Instantly share code, notes, and snippets.

View rodrigobarona's full-sized avatar
🏠
Working from home

Rodrigo Barona rodrigobarona

🏠
Working from home
View GitHub Profile
@rodrigobarona
rodrigobarona / Medusa-llms-full.txt
Created February 6, 2025 20:12
MEDUSA.js: If you're using Cursor or similar LLM editors, try adding https://docs.medusajs.com/llms-full.txt to your Docs index and benefit from improved suggestions!
This file has been truncated, but you can view the full file.
# Introduction
Medusa is a digital commerce platform with a built-in framework for customization.
Medusa ships with three main tools:
1. A suite of [commerce modules](https://docs.medusajs.com/resources/commerce-modules/index.html.md) with core commerce functionalities, such as tracking inventory, calculating cart totals, accepting payments, managing orders, and much more.
2. A framework for building custom functionalities specific to your business, product, or industry. This includes tools for introducing custom API endpoints, business logic, and data models; building workflows and automations; and integrating with third-party services.
@rodrigobarona
rodrigobarona / hls.sh
Created November 8, 2024 18:35 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@rodrigobarona
rodrigobarona / list-of-countries.txt
Created March 7, 2024 20:39 — forked from dariusz-wozniak/list-of-countries.txt
List of countries TXT (plain text) - including countries with limited recognition
Abkhazia
Afghanistan
Åland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
@rodrigobarona
rodrigobarona / text-hightlight.html
Created February 12, 2020 11:13
Text Highlight - Bill And Melisa Foundation
<p>As always, Warren Buffett—a dear friend and longtime source of great advice—put it a little more colorfully. When he donated the bulk of his fortune to our foundation and joined us as a partner in its work, he urged us to “<span class="TGNil_highlight" mycolor="#f9fb4f" style="border-bottom: 2px solid rgb(249, 251, 79);box-shadow: rgb(249, 251, 79) 0px -23px 0px inset;color: inherit;transition: background 0.15s cubic-bezier(0.33, 0.66, 0.66, 1) 0s;">swing for the fences</span>.”</p>
@rodrigobarona
rodrigobarona / bulma_walker_nav_menu.php
Created May 11, 2019 00:50 — forked from moabi/bulma_walker_nav_menu.php
A wordpress walker for Bulma Nav component
<?php
/**
* Will add classes to create bulma menu in wordpress
* http://bulma.io/documentation/components/nav/
* Usage
* wp_nav_menu(array(
* 'theme_location' => 'primary',
* 'items_wrap' => '%3$s',
* 'container_class' => 'nav-right nav-menu',
* 'walker' => new bulma_walker_nav_menu
@rodrigobarona
rodrigobarona / amc.sh
Last active October 1, 2015 21:31
Filebot AMC for Plex / XBMC / Kodi
#!/bin/bash
/usr/local/bin/filebot -script fn:amc --output "/Volumes/MediaCenter/" --log-file "/Volumes/MediaCenter/amc.log" --def subtitles=es --action move --conflict override -non-strict --def music=y artwork=y "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@rodrigobarona
rodrigobarona / main-25anos-video.js
Created March 9, 2015 16:11
Publico 25 Anos - Load YouTube Videos
// Set some vars
var onYouTubeIframeAPIReady;
var videoList = ['r_FgH-8i-Oo', 'Z7RrDbjeLso', 'qhWINlncAzg', 'G53J4BSaiYI', '84D3zS4ZPFo', 'Dg9NkjBtk8Y', 'ANEO4JGul6E', 'HPaj4-PW4ks', 'ao-KFMD-kZg', 'QbORd1LhQvw', 'kRGWITsjrdg', '9NsAhKp4dh4', 'jieTu3ISZlE', 'pTZ4Vw0MY8o', 'D1FaHRPxwH8', '0RvSl5meXD4', '1EyH8SXKbGQ', 'UsHRmr_QkOw', 'McHsqE8-Kz4', 'Rt76h45keJU', 'UEz53zlIxns', 'pNmcZmequ1c', 'zWBUSTsMtlk', 'N6OXG9335_I'];
var $ytcontainer;
var player;
var idle_time2 = 0, idle_limit2 = 5, idle_interval2;
// Define some functions
var isMobile = {
Android: function() {
#!/bin/bash
if [ $1 ] && [ $1 == '-h' ]
then
echo ""
echo "Welcome to Filebot AMC (Automated Media Center) Script."
echo ""
echo "Usage: filebot-amc.sh [torrent_name] [/path/to/torrent] [/path/to/media] [/path/to/log]"
echo ""
echo "NOTES: "
@rodrigobarona
rodrigobarona / gist:cd92c0bfc01d1db26a98
Created November 23, 2014 23:13
Zurb Ink - 650px template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" href="zurb-ink-650.css"> <!-- For testing only -->
</head>
<body>
<table class="body">
<tr>