Skip to content

Instantly share code, notes, and snippets.

View rodjjo's full-sized avatar

Rodrigo Antônio de Araújo rodjjo

View GitHub Profile
@rodjjo
rodjjo / sha1.au3
Created April 11, 2020 20:23
Display a message box with file sha1 information
; compile this script to generate sha1.exe
; drag the file to executable to compute it's sha1
#include <Crypt.au3>
$sha1 = _Crypt_HashFile ($CmdLine[1], $CALG_SHA1)
MsgBox(0, 'Sha1 of ' & $CmdLine[1], $sha1)
@rodjjo
rodjjo / terraria-worlds-terrafirma.au3
Last active April 11, 2020 21:07
Generate random worlds and check if they have required items. Keep Seeds and sha1 hash.
#include <String.au3>
#include <AutoItConstants.au3>
#include <Crypt.au3>
; CODED WITH LOVE AND EXTREME GO HORSE METHOD
; Este script gera mapas do terraria usando o cliente até que os mapas tenha todos itens do array
; Leave terraria opened in window mode at world generation screen.
const $window_w = 1110
@rodjjo
rodjjo / card.js
Last active March 11, 2020 14:35
Find card's brand by given card number using it's prefix.
/*
Creates a mapping like:
{
'2': { # length 2
'33': 'Card X'
},
'1': { # length 1
'4': 'Card Y',
}
}
@rodjjo
rodjjo / popup-blocker.au3
Last active March 31, 2020 16:13
Opens firefox and close any window that open after the first one. must replace firefox path
#include <MsgBoxConstants.au3>
#include <Array.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <WinAPISysWin.au3>
Func RunWaitFirefox()
Run('D:\Mozilla Firefox\firefox.exe')
Sleep(1000)
@rodjjo
rodjjo / install_kvm_and_minikube.sh
Created June 13, 2019 20:13
Instala minekube e kvm (verifica se já instalou antes de baixar cada elemento)
#!/bin/bash
mkdir -p "temp"
# install kubectl
kubectl version > /dev/null
if [ $? -eq 127 ]; then
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./temp/kubectl
sudo mv ./temp/kubectl /usr/local/bin/kubectl
fi