This file contains 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 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 | |
#chloe.sh | |
# A receipt files' manager. | |
# | |
# Author.: José Lopes de Oliveira Júnior | |
# Website: http://joselop.es | |
# Licence: GPLv3+ | |
# |
This file contains 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 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 | |
str2int(){ | |
local octet int=0 | |
for octet in $(echo $1 | tr "." " "); do | |
int=$((int << 8)) | |
int=$((int + octet)) | |
done | |
echo $int | |
} |
This file contains 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 | |
#webfortune.sh | |
# Retrieves the last @pensador's tweet. Manages it retrieving one | |
# tweet per day, by using a file to cache the quote. | |
# | |
# | |
# José Lopes de O. Júnior <http://indiecode.com.br> | |
# |
This file contains 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 | |
#ervilha.sh | |
# | |
# | |
# Displays the sequence until its Nth item, passed through $1. | |
# The sequence starts with 1 and its next item will be given | |
# by the read of the current item. | |
# For exemple, if the 4th item is 1211 --three one and one | |
# two--, the 5th item will be 3112. | |
# |
This file contains 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 | |
#macaddr.sh | |
# | |
# It will catch all of your network interfaces and | |
# find out what's the manufacturer of each according | |
# to its OUI. | |
# | |
# José Lopes de Oliveira Jr. <indiecode.com.br> | |
# | |
# GPLv3 |
This file contains 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 python | |
#coding: utf8 | |
"""IP | |
Provides a class that stores an IPv4 address like an | |
integer number. But it is transparent to the user. | |
""" |
This file contains 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 | |
#sync-bkps.sh | |
# | |
# Syncs backups from different servers in a single | |
# place, using rsync. This "single place", in this | |
# case is a shared folder in a Windows 2008 system. | |
# So, we have to mount it using Samba first. | |
# | |
# AUTHOR.: José Lopes de Oliveira Jr. <indiecode.com.br> | |
# LICENSE: GPLv3+ |
This file contains 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 | |
#pack.sh | |
# | |
# Zips and crypts a directory. | |
# | |
# TODO | |
# - Ask confirmation before delete. | |
## | |
OUTPUT="$(basename $(pwd))" #current dirname |
OlderNewer