This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------------------------------------------------------------------------------------------------------- | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
NewerOlder