Skip to content

Instantly share code, notes, and snippets.

View tiberiosantos's full-sized avatar

Tibério A. Santos tiberiosantos

  • Centro Paula Souza
  • Brazil
View GitHub Profile
#!/bin/bash
# The MIT License (MIT)
#
# Copyright (c) 2016 Tiberio A. Santos
#
# 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 Software is furnished to do so,
@tiberiosantos
tiberiosantos / xdccq.py
Created February 24, 2016 03:28
Port of the xdccq addon from jmoiron for Hexchat IRC
#!/usr/bin/env python
#
# written by jmoiron, <http://dev.jmoiron.net/xchat/>
# ported to hexchat by tiberio, <tiberiosantos.github.io>
# licensed under the GNU GPL v2
# a copy of the license can be found:
# http://www.gnu.org/licenses/gpl.txt
# version 0.7:
# - initial port of plugin
# version 0.6:
# -*- coding: utf-8 -*-
try:
input = raw_input
except NameError:
pass
def ip2list(ip):
ip = [int(i) for i in ip.split('.')]
if len(ip) == 4:
# -*- coding: utf-8 -*-
try:
input = raw_input
range = xrange
except NameError:
pass
class IPv4:
@tiberiosantos
tiberiosantos / audio-splitter.sh
Created May 27, 2017 20:30
Split an audio file into tracks from a text file with titles and its times
#!/bin/bash
# The MIT License (MIT)
#
# Copyright (c) 2017 Tiberio A. Santos
#
# 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 Software is furnished to do so,
@tiberiosantos
tiberiosantos / fetch-sid-security.py
Last active April 18, 2018 15:36
Script to fetch the last security fixes update list of debian sid to upgrade testing distribution
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2018 Tiberio A. Santos
#
# 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
@tiberiosantos
tiberiosantos / sources.list
Created September 14, 2017 23:15
Debian Testing source lists
## Debian Testing
#deb http://ftp.debian.org/debian testing main contrib non-free
deb http://ftp.br.debian.org/debian testing main contrib non-free
deb-src http://ftp.br.debian.org/debian testing main contrib non-free
#deb http://sft.if.usp.br/debian testing main contrib non-free
#deb http://linorg.usp.br/debian testing main contrib non-free
#deb http://httpredir.debian.org/debian testing main contrib non-free
## Debian Security
#deb http://security.debian.org/ testing/updates main contrib non-free
@tiberiosantos
tiberiosantos / wfd.sh
Created November 1, 2017 23:52
Script to download css and fonts from google fonts for local use
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2017 Tiberio A. Santos
#
# 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
@tiberiosantos
tiberiosantos / apt-rollback.sh
Created October 8, 2019 14:49
A script to roll back an apt upgrade
# Apt upgrade roll back
# A release to downgrade.
v=testing
# An action to revert.
s=Upgrade
# The date the action was taken.
d="Start-Date: 0000-00-00 00:00:00"
@tiberiosantos
tiberiosantos / sign-modules.sh
Created October 9, 2020 23:30
Script to create and sign linux kernel modules with a UEFI MOK key
#!/bin/bash
#
# Script to sign linux kernel modules with a UEFIMOK key
#
# Reference: https://wiki.debian.org/SecureBoot
#
# The MIT License (MIT)
#
# Copyright (c) 2020 Tiberio A. Santos
#