Skip to content

Instantly share code, notes, and snippets.

@lopes
lopes / aes-cbc.py
Last active May 7, 2025 01:11
Simple Python example of AES in CBC mode. #python #cryptography #aes #cbc #poc
#!/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
@lopes
lopes / Code.gs
Last active August 7, 2024 13:36
Retrieves a quote from YAHOO! Finance and puts into the spreadsheet's cell. #javascript #js #sheets #yahoo #finance
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
@lopes
lopes / cronometr.ino
Last active August 7, 2024 13:34
A stopwatch in Arduino Uno with DFRobot v1.1 board. #clang #arduino #prototype
/**
* 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>
@lopes
lopes / puck.sh
Last active August 28, 2024 00:51
A DNS propagation checker in Shell Script. #shell #shellscript #dns
#!/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>
#
#
@lopes
lopes / rc.firewall
Last active May 26, 2025 16:47
My template to configure iptables. #iptables #firewall #linux #conf
#!/bin/bash
#rc.firewall
#
#
# Firewall configuration file.
#
#
# AUTHOR: José Lopes Oliveira Jr. <indiecode.com.br>
#
#