Skip to content

Instantly share code, notes, and snippets.

View p1nox's full-sized avatar

Raul Pino p1nox

View GitHub Profile
@p1nox
p1nox / git.md
Last active October 1, 2025 01:00
git notes
# uncommit
git reset HEAD~

# remove submodules https://stackoverflow.com/questions/29850029/what-is-the-current-way-to-remove-a-git-submodule
git submodule deinit <asubmodule>    
git rm <asubmodule>
rm -rf .git/modules/<asubmodule>

# cherry-pick
@p1nox
p1nox / git-secret.sh
Last active October 1, 2025 00:58
git secret cmds
# https://confluence.atlassian.com/bitbucketserver/using-gpg-keys-913477014.html
# generate your gpg keys
gpg --gen-key
# fill prompt questions
gpg --list-keys
gpg --list-secret-keys --keyid-format LONG
# import/export keys: https://www.debuntu.org/how-to-importexport-gpg-key-pair/
# show hash id of your keys
@p1nox
p1nox / postgresql_configuration_on_ubuntu_for_rails.md
Last active September 5, 2025 05:28
PostgreSQL configuration without password on Ubuntu for Rails

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev
@p1nox
p1nox / using_meld_on_mac.md
Last active August 6, 2025 13:34
Using meld on Mac

Using Meld merging tool on Mac

Aug 2025

Best way to install is using official docs from osx repo here. Remember to configure meld as difftool in the command line as well.

May 2023

There are two ways of installing meld on osx, using brew and .dmg package (from @yousseb). Since I found https://yousseb.github.io/meld/, I've installed it with .dmg package, but having macOS Ventura Version 13.4 (22F66) in place, it's not even starting for me. So I tried brew installation, and the application is working as expected, including symlink to start it from the terminal.

@p1nox
p1nox / custom_mcp_for_claude_in_osx.md
Last active July 21, 2025 13:16
Custom MCP servers for Claude Desktop and Claude Code in macOS

Custom MCP servers for Claude Desktop and Claude Code in macOS

Using mcp-remote as a proxy to remote MCP server.

Desktop

  1. Add/Edit your local mcp json file for claude tools:
vim /Users//Library/Application\ Support/Claude/claude_desktop_config.json
@p1nox
p1nox / pytorch_rtx_3060.md
Last active March 15, 2025 16:05
PyTorch on RTX 3060

After researching a lot on how to use PyTorch with a RTX 3060 card, specially with older versions or torch (0.4.0) and torchvision (0.2.1), I noticed that it was either impossible or very hard to do. RTX 3060 and these packages apparently doesn't have compatibility with the same versions of CUDA and cuDNN. I tried to do this by using different combinations with compiled versions available in conda, but didn't work, maybe it could work if you recompile from source these versions.

After all this, actually I was able to use RTX 3060 effectively with latest versions of all these dependencies with two methods:

  1. Using a conda env, and latest versions published in pytorch site (https://pytorch.org/get-started/locally):
conda create -n rtx_3060 python=3.6.5
conda activate rtx_3060
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c nvidia
@p1nox
p1nox / osx.md
Last active October 10, 2024 12:41
Mac OSX stuff

osx and mac stuff

Install

xcode-select --install
brew install java
brew install maven
brew install ant
mvn clean install
@p1nox
p1nox / cyberpunk_dark.itermcolors
Last active October 8, 2024 22:40
iTerm 2 cyberpunk themes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
[core]
# The home folder for airflow, default is ~/airflow
airflow_home = /Users/p1nox/airflow
# The folder where your airflow pipelines live, most likely a
# subfolder in a code repository
dags_folder = /Users/p1nox/airflow/dags
# The folder where airflow should store its log files. This location
base_log_folder = /Users/p1nox/airflow/logs
@p1nox
p1nox / python.md
Last active May 10, 2023 06:46
Python notes

osx

brew install python
brew install python@3.7

brew install pyenv
pyenv install 3.6.5
pyenv global 3.6.5