Skip to content

Instantly share code, notes, and snippets.

View alexishida's full-sized avatar
👨‍💻
Coding

Alex Ishida alexishida

👨‍💻
Coding
View GitHub Profile
@alexishida
alexishida / n8n-locally-docker.txt
Last active October 22, 2025 03:41
Run n8n locally with Docker.
docker volume create n8n_data
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-e GENERIC_TIMEZONE="America/Porto_Velho" \
-e TZ="America/Porto_Velho" \
-e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true \
-e N8N_RUNNERS_ENABLED=true \
-v n8n_data:/home/node/.n8n \
@alexishida
alexishida / install-docker-ubuntu.sh
Created October 22, 2025 00:26
Install Docker Engine on Ubuntu
#!/bin/bash
#---------------------------------------------------------------------------------------
# Script to Install Docker Engine on Ubuntu
# Source: https://gist.github.com/alexishida/269ae3891657e2c0bd8c25ad4d65ee6f
#
# Author: Alex Ishida <alexishida@gmail.com>
# Version: 1.0.0 - 21/10/2025
#
# References:
# https://docs.docker.com/engine/install/ubuntu/
@alexishida
alexishida / rbenv-ruby-rails-install.sh
Last active October 22, 2025 00:09
Script to install rbenv, Ruby, nodejs and yarn
#!/bin/bash
#---------------------------------------------------------------------------------------
# Script to install rbenv, Ruby, nodejs and yarn
# Source: https://gist.github.com/alexishida/655fb139c759393ae5fe47dacd163f99
#
# Author: Alex Ishida <alexishida@gmail.com>
# Version: 1.7.3 - 21/10/2025
#---------------------------------------------------------------------------------------
#
# HOW TO INSTALL A SCRIPT
@alexishida
alexishida / rbenv-uninstall.sh
Last active October 21, 2025 23:27
uninstall rbenv
#!/bin/bash
SCRIPT_USER=$SUDO_USER
# Checking if script running with sudo
if [[ $(id -u) -ne 0 ]]
then echo "Please run with sudo ..."
exit 1
fi
rm -fr /usr/local/rbenv
@alexishida
alexishida / linux-commands.txt
Last active October 20, 2025 17:51
Comandos Linux
# Definiro o ZSH como terminal padrao
chsh -s $(which zsh)
# Symbolic Link
ln -s <source> <target>
# Ubuntu configure locale e timezone
sudo dpkg-reconfigure locales
sudo dpkg-reconfigure tzdata
@alexishida
alexishida / rtsp-intelbras-outros.txt
Last active October 18, 2025 21:19
RTSP dvr intelbras e outros para acesso direto home assistant
-------- DVR e Mibo Smart Intelbras -------------------------------------------------------
rtsp://usuário:senha@ip:porta/cam/realmonitor?channel=1&subtype=0
Ps minha mibo smart im4c só funcionou com esse link:
rtsp://admin:chave de acesso@ip:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
-------- Luxvision -------------------------------------------------------
rtsp://ip:porta/user=[usuário]&password=[senha]&channel=1&stream=0.sdp
@alexishida
alexishida / rbenv-ruby-rails-update.sh
Last active October 18, 2025 00:36
Script to update rbenv, Ruby and Ruby on Rails versions
#!/bin/bash
#---------------------------------------------------------------------------------------
# Script to update rbenv, Ruby and Ruby on Rails versions
# Source: https://gist.github.com/alexishida/015b074ae54e1c7101335a2a63518924
#
# Author: Alex Ishida <alexishida@gmail.com>
# Version: 1.7.2 - 17/10/2025
#---------------------------------------------------------------------------------------
#
# If you want install rbenv for the first time
@alexishida
alexishida / Docker application installations.txt
Created October 10, 2025 12:29
Docker application installations
# MariaDB
docker run -d \
--name=mariadb \
--restart=always \
-v /etc/localtime:/etc/localtime:ro \
-e MYSQL_ROOT_PASSWORD=senha \
-v /storage/mariadb:/var/lib/mysql \
mariadb:latest
# PhpmyAdmin
@alexishida
alexishida / guia_chat_rails.md
Created September 25, 2025 15:18
Guia: Como Criar um Chat App com Ruby on Rails 8, ActionCable e Turbo Streams
@alexishida
alexishida / #ChatGPT Streaming.md
Created September 25, 2025 02:25 — forked from alexrudall/#ChatGPT Streaming.md
ChatGPT streaming with ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind!

How to add ChatGPT streaming to your Ruby on Rails 7 app!

This guide will walk you through adding a ChatGPT-like messaging stream to your Ruby on Rails 7 app using ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind. All code included below!

Want more content like this, for free? Check out my free book, RailsAI!

Alt Text