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 / flex-template.txt
Last active January 9, 2026 12:19
Grid e Flex template
# Link https://codepen.io/argus-academy/pen/abRmmoz
# Html
<ul>
<li>Home</li>
<li>Produtos</li>
<li>Contato</li>
<li>Sobre</li>
</ul>
@alexishida
alexishida / react-anotations.txt
Last active January 9, 2026 01:31
Anotações do React
# Criando um projeto novo com o vite e o react-ts
npm create vite@latest app -- --template react-ts
# Instalando o tailwindcss no vite
npm install tailwindcss @tailwindcss/vite
# Instalando o Redux e Redux-React
npm install @reduxjs/toolkit react-redux
# Interactive React Lifecycle Methods diagram.
@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