Skip to content

Instantly share code, notes, and snippets.

View ramonpin's full-sized avatar
💭
Programeando

Ramón Pin ramonpin

💭
Programeando
View GitHub Profile
@ramonpin
ramonpin / create_system_venv.sh
Created August 27, 2025 08:01
How to create a python virtual environment with full access to system python version and packages #starred
#!/usr/bin/env bash
uv venv --seed --system-site-packages --python=/usr/bin/python3.12 .venv
@ramonpin
ramonpin / move_fzf
Created August 21, 2019 12:03
Move files selected with fzf
ls -lt *.pdf | fzf --multi | gawk '{print $9}' | xargs -i echo mv {} /media/sf_vm/rpm/__.libros-mios/

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@ramonpin
ramonpin / GRADLE_OPTS
Created November 22, 2018 13:34
gradle proxy opts
-Dhttp.proxyHost=proxycorporativo -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxycorporativo -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=proxycorporativo -Dhttps.nonProxyHosts=proxycorporativo

Instruction

This instruction fully tested under Ubuntu 14.04 LTS 64-bit, Java 1.8.0_25 64-bit.

Create a stub.sh file with this content:

#!/bin/sh
MYSELF=`which "$0" 2>/dev/null`
[ $? -gt 0 -a -f "$0" ] &amp;&amp; MYSELF="./$0"
@ramonpin
ramonpin / mo
Created October 17, 2018 14:46
mo script for moustache on bash
#!/usr/bin/env bash
#
#/ Mo is a mustache template rendering software written in bash. It inserts
#/ environment variables into templates.
#/
#/ Simply put, mo will change {{VARIABLE}} into the value of that
#/ environment variable. You can use {{#VARIABLE}}content{{/VARIABLE}} to
#/ conditionally display content or iterate over the values of an array.
#/
#/ Learn more about mustache templates at https://mustache.github.io/
@ramonpin
ramonpin / boostrap-almond.sh
Created October 13, 2018 14:52
Boostrapping an app with coursier
coursier bootstrap \
-i user -I user:sh.almond:scala-kernel-api_$SCALA_VERSION:$ALMOND_VERSION \
sh.almond:scala-kernel_$SCALA_VERSION:$ALMOND_VERSION \
-o almond
-XX:+CMSClassUnloadingEnabled -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=256M -Xms2G -Xmx2G
@ramonpin
ramonpin / sample.rb
Last active January 22, 2021 15:23
Sinatra App Simple Sample
require 'sinatra'
get '/hi' do
"Hello World!"
end
@file:DependsOn("io.arrow-kt:arrow-core:0.7.1")
@file:DependsOn("io.arrow-kt:arrow-syntax:0.7.1")
@file:DependsOn("io.arrow-kt:arrow-typeclasses:0.7.1")
@file:DependsOn("io.arrow-kt:arrow-instances:0.6.1")
@file:DependsOn("io.arrow-kt:arrow-data:0.7.1")
import arrow.core.None
import arrow.core.Option
import arrow.core.Predicate
import arrow.data.ListK