Skip to content

Instantly share code, notes, and snippets.

José Lopes forkd

  • Belo Horizonte, MG, Brasil
Block or report user

Report or block forkd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@forkd
forkd / squid-cleaner.py
Created Jun 26, 2019
Cleans Squid domain list
View squid-cleaner.py
#!/usr/bin/env python3
'''Squid Cleaner
This script takes a file with a list of domains in Squid format
separated by "comma-space" and outputs a new list without
duplicates, shadows (.domain.com and domain.com <-removes this),
and overlaps (.domain.com, sub.domain.com <-removes this).
It can also check is domains are responsive, but of course this
@forkd
forkd / honeyd-syslogger.sh
Last active Mar 15, 2019
Parses honeyd logfiles to syslog and sends them to a SIEM.
View honeyd-syslogger.sh
#!/bin/ksh
#honeyd-syslogger.sh
#
# Parses honeyd logfiles to syslog and sends them to a SIEM.
# This script is compatible with OpenBSD 6.4 and ksh. If
# you're running in Linux/Bash, the commands below should help:
#
# YESTERDAY="$(date -u +"%Y-%m-%d" -d "yesterday")"
#
# Deploy: simply edit global variables according to your
@forkd
forkd / query-radar.py
Created Feb 27, 2019
Performs queries in IBM QRadar.
View query-radar.py
#!/usr/bin/env python3
from sys import argv
from urllib.parse import quote
from urllib.request import Request, urlopen
from urllib.error import HTTPError
from json import loads
from time import sleep
@forkd
forkd / winproxy.py
Created Jan 3, 2019
Sets Windows' proxy configurations easily.
View winproxy.py
'''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.
@forkd
forkd / hwgste.py
Created Dec 28, 2018
HWg-STEpy is a simple script to get STE info.
View hwgste.py
#!/usr/bin/env python3
'''HWg-STEpy is a simple script to get STE info.
This script takes advantage of HWg-STE's XML interface
to retrieve temperature and humidity information, then
print them on the screen.
To use this, first edit the `devices' variable below to
include the IP addresses of your STE devices, then run:
@forkd
forkd / pymv.py
Created Oct 29, 2018
Moves and renames files according to their modification dates.
View pymv.py
'''
Moves and renames files according to their modification dates.
source directory has a structure like:
SOX-old
+ dir1
+ file1
+ dir2
+ file1
@forkd
forkd / vsdbatch.py
Last active Jun 4, 2018
Exports multiple Visio files in batch.
View vsdbatch.py
#!/usr/bin/env python3
#vsdbatch.py
'''
vsdbatch
Exports multiple Visio files in batch.
REQUIREMENTS
1. Python 3.6 -- and pip3
@forkd
forkd / thief.py
Created Feb 21, 2017
Retrives and update a certain file according to a URI.
View thief.py
#!/usr/bin/python3
#
# This program retrives and update a certain file according to a URI. In other
# words, the URI is fetched and, if the content of that file is different, the
# new content is written into that file.
#
#
# MIT License
#
# Copyright (c) 2017 José Lopes
@forkd
forkd / pilsner.sh
Last active Sep 8, 2016
A backup script to be used with my external HDD.
View pilsner.sh
#!/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
@forkd
forkd / xbox.py
Created Jul 4, 2016
Show the Xbox's backward compatibility game library.
View xbox.py
#!/usr/bin/env python3
# Show the Xbox's backward compatibility game library.
# Still needs a lot of tests, its just a kind of alpha
# version.
# José Lopes <jilo@lavaboom.com>
# GPLv3+
##
from re import search
from difflib import context_diff
You can’t perform that action at this time.