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 / Manual Instalação Token Safenet5110 Ubuntu.txt
Last active October 14, 2024 15:42
Instalando token SAFENET 5110 - Ubuntu
-----------------------------------------------------------------------------------------------------------------------------
PROCEDIMENTOS PARA INSTALAÇÃO SAFENET5110
Autor: Alex Ishida <alexishida@gmail.com>
Data: 13/08/2021
Versão: 1.0.0.0
-----------------------------------------------------------------------------------------------------------------------------
PASSO 1, instale alguns pacotes disponíveis no repositório oficial do Ubuntu.
-----------------------------------------------------------------------------------------------------------------------------
sudo apt update
@alexishida
alexishida / rtsp-intelbras-outros.txt
Last active October 6, 2024 17:58
RTSP dvr intelbras e outros
-------- Intelbras -------------------------------------------------------
rtsp://usuário:senha@ip:porta/cam/realmonitor?channel=1&subtype=0
-------- Luxvision -------------------------------------------------------
rtsp://ip:porta/user=[usuário]&password=[senha]&channel=1&stream=0.sdp
-------- Hikvision -------------------------------------------------------
rtsp://usuário:senha@ip:porta/Streaming/Channels/102
@alexishida
alexishida / windows-commands.txt
Last active September 30, 2024 01:06
useful windows commands
# Disable Teredo
netsh interface teredo set state disabled
## 3 . You may need to reboot, depending on your version of Windows.
## If you wish to re-enable Teredo at some point you can issue the command:
netsh interface teredo set state type=default
# Reset network cache
@alexishida
alexishida / docker-comands.txt
Last active September 20, 2024 02:36
Comandos Docker
# Comandos basicos
docker pull mysql
docker images
docker run --name database -e MYSQL_ROOT_PASSWORD=teste123 -d mysql
docker ps
docker run --name blog --link database:mysql -e WORDPRESS_DB_PASSWORD=teste123 -p 80:80 -d wordpress
docker system prune
@alexishida
alexishida / rbenv-ruby-rails-install.sh
Last active September 7, 2024 02:23
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.6.4 - 23/08/2024
#---------------------------------------------------------------------------------------
#
# HOW TO INSTALL A SCRIPT
@alexishida
alexishida / gist-backup.py
Created September 6, 2024 01:12
Python script for backing up gists
import requests
import sys
import re
from subprocess import call
user = 'alexishida'
num_pages = 10
# Função para sanitizar o nome da pasta, removendo caracteres inválidos
def sanitize_folder_name(name):
@alexishida
alexishida / comandos-ruby-rails-exemplos.txt
Last active September 5, 2024 14:00
Comandos Ruby e Rails
# COMANDOS
rails new appname -d postgresql
rails new appname --api
gem install rails -v 6.1.4.4
rails _6.1.4.4_ new myapp
# Rails sem webpack
rails new app-name --skip-webpack-install --skip-javascript
@alexishida
alexishida / linux-commands.txt
Last active September 5, 2024 12:28
Comandos Linux
# Contando arquivos na pasta
ls -l | grep -v ^l | wc -l
# Listando os ips com mais acesso
cat access.log | cut -d ' ' -f 2 | sort | uniq -c | sort -nr | head
# Portas Abertas
sudo lsof -i -P -n | grep LISTEN
# Comprimir pastas
@alexishida
alexishida / linux-software.txt
Last active September 4, 2024 13:22
Linux Softwares
--- Persepolis Download Manager ---
sudo add-apt-repository ppa:persepolis/ppa
sudo apt update
sudo apt install persepolis
----- Grub Customizer ------
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt-get install grub-customizer
# or https://launchpad.net/~danielrichter2007/+archive/ubuntu/grub-customizer/+packages
@alexishida
alexishida / vscode rails extensions.txt
Last active August 14, 2024 00:53
vscode rails extensions
Extensions
Ruby
https://marketplace.visualstudio.com/items?itemName=Shopify.ruby-extensions-pack
This plugin is highly recommended for its debugging capabilities and general Ruby support.
Rufo
https://marketplace.visualstudio.com/items?itemName=mbessey.vscode-rufo
Perfect for formatting your Ruby files (.rb). It’s a great alternative if you prefer not to use Rubocop.