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 / cs_commands.txt
Created November 8, 2025 02:08
CS 2 commands
# Mata Mata
mp_respawn_on_death_ct 1; mp_respawn_on_death_t 1; mp_freezetime 0; mp_limitteams 0; mp_autoteambalance 0; mp_roundtime 60; mp_buy_anywhere 1; mp_buytime 9999; mp_timelimit 0;bot_kick; bot_difficulty 3; mp_startmoney 16000; mp_restartgame 1;
@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 <[email protected]>
# Version: 1.0.0 - 21/10/2025
#
# References:
# https://docs.docker.com/engine/install/ubuntu/
@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

@alexishida
alexishida / nano-banana-prompts.txt
Last active September 23, 2025 16:37
Nano Banana Prompts
turn this photo into
# Restoration
Color Restoration: Restore this old photo with today's realistic colors.
Modern DSLR Quality: Restore this vintage photo as if it were taken by a high-powered modern DSLR.
Original Quality Restoration: Restore this photograph to its original quality. Remove scratches, enhance details, correct colors, and make it look as close to the original as possible when it was first taken.
@alexishida
alexishida / apache solr docker.txt
Created September 8, 2025 14:59
apache solr docker default
docker run -d \
--name=my_solr \
--restart=always \
-v /etc/localtime:/etc/localtime:ro \
-v /storage/solr/data:/var/solr \
-p 8983:8983 \
solr:latest solr-precreate gettingstarted
@alexishida
alexishida / oracle-rails.md
Created July 21, 2025 15:09
Tabela de Configuração de Timeout - Oracle 23ai e Ruby on Rails

Tabela de Configuração de Timeout - Oracle 23ai e Ruby on Rails

Tipo de Timeout Dev/Test Produção Crítico (Low Latency) Parâmetro Ruby on Rails Parâmetro Oracle 23ai
Conexão 5s 3s 2s connect_timeout: SQLNET.OUTBOUND_CONNECT_TIMEOUT
Query/Statement 15s 10s 5s sql_timeout: STATEMENT_TIMEOUT
Transação 60s 30s 15s timeout: (no código) _TX_TIMEOUT (parâmetro oculto)
Pool Idle 5min 1min 30s idle_timeout: -
Inatividade Sessão 120min 30min 15min -
@alexishida
alexishida / setup_cursor_ubuntu.md
Created July 11, 2025 14:09 — forked from evgenyneu/setup_cursor_ubuntu.md
Install Cursor AI code editor on Ubuntu 24.04 LTS

Install Cursor AI editor on Ubuntu 24.04

  1. Use the Download button on www.cursor.com web site. It will download the NAME.AppImage file.

  2. Copy the .AppImage file to your Applications directory

cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage