This file contains hidden or 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 | |
#rc.firewall | |
# | |
# | |
# Firewall configuration file. | |
# | |
# | |
# AUTHOR: José Lopes Oliveira Jr. <indiecode.com.br> | |
# | |
# |
This file contains hidden or 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 | |
#puck.sh | |
# A DNS propagation checker. Fetches in many DNS servers around | |
# the world for IPs assigned to a given domain. | |
# | |
# Author: José Lopes de Oliveira Júnior <http://joselop.es> | |
# | |
# |
This file contains hidden or 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
/** | |
* cronometr.ino | |
* Implements a stopwatch in Arduino Uno with DFRobot v1.1 board. | |
* Author: José Lopes de Oliveira Jr. <jilo.cc> | |
* License: GPLv3+ | |
*/ | |
#include <LiquidCrystal.h> |
This file contains hidden or 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
function get_quote() { | |
/* get_quote | |
* Retrieves a quote from YAHOO! Finance and puts into the spreadsheet's cell. | |
* | |
* It's a pretty simple script that access YAHOO! Finance and get the price of | |
* previous close price of symbol in the first column cell of actual row. | |
* | |
* Usage: Start a spreadsheet where the symbols are disposed in lines and are | |
* in the first column. Use only symbols without those ".SA"s in the end. | |
* Access Tools > Script editor... and replace the default code for this |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# | |
# This is a simple script to encrypt a message using AES | |
# with CBC mode in Python 3. | |
# Before running it, you must install pycryptodome: | |
# | |
# $ python -m pip install PyCryptodome | |
# | |
# Author.: José Lopes | |
# Date...: 2019-06-14 |
This file contains hidden or 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
from hashlib import md5 | |
from base64 import b64decode | |
from base64 import b64encode | |
from Crypto.Cipher import AES | |
# Padding for the input string --not | |
# related to encryption itself. | |
BLOCK_SIZE = 16 # Bytes | |
pad = lambda s: s + (BLOCK_SIZE - len(s) % BLOCK_SIZE) * \ |
This file contains hidden or 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
#!/usr/bin/env bash | |
# | |
# The MIT License (MIT) | |
# Copyright (c) 2016 José Lopes de Oliveira Jr. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a | |
# copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
# and/or sell copies of the Software, and to permit persons to whom the |
This file contains hidden or 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
'''Sets Windows' proxy configurations easily. | |
This script allows user to update Windows proxy settings easily, | |
by using predefined values assigned to proxies identified by | |
keywords. | |
Note that it'll also refresh your system to guarantee that all | |
settings take effect. Although in the tests it seemed unnecessary | |
(Windows 8.1), it's considered just a guarantee. |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import re | |
import logging | |
from imaplib import IMAP4_SSL | |
from email import message_from_bytes | |
from email.parser import HeaderParser | |
from email.header import decode_header, make_header | |
from email.utils import parsedate_to_datetime, localtime |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# | |
# Simple examples on using different block cipher modes | |
# of operation (NIST SP 800-38A) with AES. | |
# | |
# Warning: this script is just an example! You must be | |
# very confident on your work (or insane) to implement | |
# this kind of code in production, because it's safer | |
# to use wide tested frameworks like PyNaCl. | |
# |
OlderNewer