Skip to content

Instantly share code, notes, and snippets.

View requeijaum's full-sized avatar

Rafael Requião requeijaum

  • Salvador, BA - Brazil
View GitHub Profile
@requeijaum
requeijaum / ajuda_na_correcao-marcelo.py
Created July 2, 2019 23:42
Marcelo me pediu pra corrigir isso. Ele finalmente aprendeu Python!
'''
Verificado por Rafael Requião em 03jul2019
1 - Soma, subtração, multiplicação, divisão, resto da divisão, exponenciação e raiz quadrada.
> OK
2 - Calcular fatorial de um número.
> OK
3 - Mostrar lista de operações disponíveis; solicitar operação; solicitar operandos; mostrar resultado da operação selecionada.
@requeijaum
requeijaum / clonarSite.sh
Created June 30, 2019 03:09
Simples script para clonar sites usando o HTTRACK. Tem algumas flags que eu costumo usar para burlar ROBOTS.TXT e baixar apenas o que está dentro do nome de domínio do host.
#!/bin/bash
TITULO=$1
PASTA=$2
echo "$TITULO será salvo em: ./$PASTA/"
mkdir "$PASTA"
sleep 3
httrack "$TITULO" -O "$PASTA" -N100 -I0 --max-rate 0 --disable-security-limits --near -v -s0
# não usar -%i0
@requeijaum
requeijaum / test_unicode.php
Created June 23, 2019 02:26 — forked from Daniel-KM/test_unicode.php
Check and fix Unicode issues on a web server with php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<h1>Check Unicode on a web server with php</h1>
<p>If your filenames requires characters with diacritics or any Unicode characters and not only the strict latin characters (26 letters + 10 numbers + some symbols and punctuation marks), the web server should be checked and fixed.</p>
@requeijaum
requeijaum / emuparadise.download.user.js
Created June 20, 2019 17:41 — forked from infval/emuparadise.download.user.js
emuparadise.me download workaround (Most games + Sega Dreamcast, Books/Comics/Guides/Magazines)
// ==UserScript==
// @name EmuParadise Download Workaround
// @version 1.2.2
// @description Replaces the download button link with a working one
// @author infval (Eptun)
// @match https://www.emuparadise.me/*/*/*
// @grant none
// ==/UserScript==
// https://www.reddit.com/r/Piracy/comments/968sm6/a_script_for_easy_downloading_of_emuparadise_roms/
@requeijaum
requeijaum / check_intermedium_private_key_leak.sh
Created May 15, 2019 00:30 — forked from guilhermednt/check_intermedium_private_key_leak.sh
Verifying Banco Intermedium's private key leak
# Today the twitter user @ayubio said he had received the private key for a Brazillian bank's HTTPS certificate:
# - https://twitter.com/ayubio/status/994260981294469120
# - https://twitter.com/ayubio/status/994262029929246722
# - https://twitter.com/ayubio/status/994277992351391744
# To prove he actualy had the key, another user asked him to sign a message with such key and so he did:
# - http://pastebin.xyz/p?q=bXllODA
# The commands bellow will check that signature
# Store the message in a file (tweet.txt) in the same way @ayubio did:
@requeijaum
requeijaum / hax.c
Created May 9, 2019 18:14 — forked from apsun/hax.c
Hook main() using LD_PRELOAD
/*
* Hook main() using LD_PRELOAD, because why not?
* Obviously, this code is not portable. Use at your own risk.
*
* Compile using 'gcc hax.c -o hax.so -fPIC -shared -ldl'
* Then run your program as 'LD_PRELOAD=$PWD/hax.so ./a.out'
*/
#define _GNU_SOURCE
#include <stdio.h>
@requeijaum
requeijaum / nisphp_menus.md
Created May 6, 2019 17:57
Menus do NIsPHP - uLaunchELF

Menus do NIsPHP

Menu #1

OPL
FMCB
ESR
GSM
FileBrowser
@requeijaum
requeijaum / Doc API
Created March 31, 2019 22:20 — forked from rgr2k/Doc API
SambaVideos API
SambaVideos API!
=====================
Este documento descreve os recursos que compõem a API do **SambaVideos**. Se você tiver quaisquer problemas ou pedidos, por favor, contate o suporte clicando aqui.
----------
Conteúdo
-------
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 93)
03:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
root@ondadigital:/home/ondadigital# lspci -vvv -nn
00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 0b)
	Subsystem: Dell Haswell-ULT DRAM Controller [1028:05cb]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
@requeijaum
requeijaum / build_log-climate_controller-arduino-19fev2019.md
Created February 19, 2019 17:50
build_log-climate_controller-arduino-19fev2019.md