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
@tiberiosantos
tiberiosantos / sysprep.cmd
Created July 19, 2022 20:38
Generalizando uma imagem do Windows para implantação
C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /unattend:<CAMINHO>\unattend.xml /quiet /shutdown
@tiberiosantos
tiberiosantos / themes.sh
Last active August 27, 2022 18:49
Script to install and update my favorite themes for KDE, GTK and Firefox
#!/bin/bash
#
# Script to install and update my favorite themes for KDE, GTK and Firefox.
#
# The MIT License (MIT)
#
# Copyright (c) 2022 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"),
@tiberiosantos
tiberiosantos / boca.md
Last active May 7, 2022 02:29
Instalação e Configuração do BOCA Online Contest Administrator (https://github.com/cassiopc/boca/)

Instalação dos pacotes do BOCA

Instalando os pacotes necessários para compilar e rodar a aplicação.

apt install --no-install-recommends acl apache2 build-essential coreutils debconf debootstrap debhelper git libany-uri-escape-perl makepasswd makepasswd openssl php php-cli php-fpm php-gd php-pgsql php-xml php-zip postgresql postgresql-client quota quotatool sharutils schroot

Compilando e instalando os pacotes do BOCA

git clone https://github.com/cassiopc/boca
cd boca
dpkg-buildpackage -us -uc
@tiberiosantos
tiberiosantos / adblocker-updater.sh
Last active December 29, 2021 05:29
Script to download and build a huge ADS blocklist for Pi-hole
#!/bin/bash
#
# Script to download and build a huge ADS blocklist for Pi-hole.
#
# Copyright (c) 2021 Tiberio A. Santos
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3.
#
@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
#
@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 / 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 / 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 / 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 / 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,