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 / clamav-commands.txt
Created August 5, 2020 17:12
Clamav commands
# Update Database
$ freshclam
# Scan recursive
$ clamscan --infected --remove --recursive /home
@alexishida
alexishida / Linux QtSixA is the Sixaxis Joystick Manager.txt
Last active June 15, 2020 14:21
Linux QtSixA is the Sixaxis Joystick Manager (PS3 controller, Playstation 3 controller)
# Install QtSixA is the Sixaxis Joystick Manager
$ sudo apt-get update &&
$ sudo apt-get install git dialog build-essential pyqt4-dev-tools libusb-dev libjack-dev libbluetooth-dev python-dbus checkinstall -y &&
$ git clone https://github.com/falkTX/qtsixa.git &&
$ cd qtsixa &&
$ make &&
$ sudo checkinstall
# Connect with USB
$ sixpair
@alexishida
alexishida / lista-programas-recuperacao-de-dados.txt
Last active January 8, 2021 04:06
Programas para recuperação de dados
# Programas para recuperação de dados (Windows)
Recuva
https://www.ccleaner.com/recuva
DMDE - DM Disk Editor and Data Recovery Software
https://dmde.com/
PhotoRec
https://www.cgsecurity.org/wiki/PhotoRec
@alexishida
alexishida / Instalando-ePass2003-Linux-x64-Chrome.txt
Created May 15, 2020 15:45
Instalando certificado ePass2003 no ubuntu Linux-x64 e no Google Chrome
# Instalando
Coloque o arquivo zip dentro da sua pasta home
unzip ePass2003-Linux-x64
cd ePass2003-Linux-x64/config
sudo sh config.sh
sudo cp -rf ~/ePass2003-Linux-x64/ /usr/lib/
cd ..
cd redist/
sudo cp libcastle.so.1.0.0 /usr/lib
sudo ln -s /usr/lib/ePass2003-Linux-x64/redist/pkimanager_admin /bin/pkimanager_admin
@alexishida
alexishida / AES.java
Created April 22, 2020 15:21
Classe de uso para criptogradar e descriptografar dados em JAVA
/*
Classe de uso para criptogradar e descriptografar dados
Autor: Alex Ishida
Data: 14/04/2020
Exemplo de uso
final String secretKey = "3213215421356513213";
@alexishida
alexishida / settings.xml
Created March 30, 2020 15:57
Maven netbeans 8.2 https
<?xml version="1.0" encoding="UTF-8"?>
<!--
PATH
netbeans-8.2/java/maven/conf/settings.xml
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
@alexishida
alexishida / encrypt_decrypt.rb
Last active April 1, 2020 14:39
Encrypt and Decrypt using Openssl Ruby
require 'openssl'
class CryptoService
def encrypt(data,key)
digest = Digest::SHA256.new
digest.update(key)
key = digest.digest
cipher = OpenSSL::Cipher::AES.new(256, :CBC)
cipher.encrypt
@alexishida
alexishida / vnc-ubuntu-mate.txt
Last active March 19, 2020 13:40
vnc ubuntu mate
#PASSO 1
sudo apt-get install -y ubuntu-desktop tigervnc-standalone-server tigervnc-common tigervnc-xorg-extension tigervnc-viewer
#PASSO 2
vncserver
#PASSO 3
#definir senha
#PASSO 4
@alexishida
alexishida / python-commands
Created February 18, 2020 01:55
Python Commands
# Resolvendo problemas com o pip
python -m pip install --user somepackage
python3 -m pip install --user somepackage
# Adicionar .bashrc
pip() ( python -m pip "$@" )
pip3() ( python3 -m pip "$@" )
@alexishida
alexishida / kaminari.pt-BR.yml
Created February 4, 2020 02:36
kaminari internacionalização config/locales/kaminari.pt-BR.yml
pt-BR:
views:
pagination:
first: "&laquo; Primeira"
last: "Última &raquo;"
previous: "&lsaquo; Anterior"
next: "Próxima &rsaquo;"
truncate: "&hellip;"
helpers:
page_entries_info: