Skip to content

Instantly share code, notes, and snippets.

View vndmtrx's full-sized avatar
💅
Fazendo vários nadas

Eduardo N.S.R. vndmtrx

💅
Fazendo vários nadas
View GitHub Profile
@vndmtrx
vndmtrx / content-use-license-nuvemlgbt-en.md
Last active June 20, 2023 14:03
Licença de Uso dos Conteúdos da NuvemLGBT / NuvemLGBT Content Use License

NuvemLGBT Content Use License

This license establishes the terms and conditions for the use of user-generated content on the NuvemLGBT platform. By using the NuvemLGBT platform, you agree to adhere to the terms stipulated in this license.

1. Definitions

  1. "NuvemLGBT", hereinafter referred to as INSTANCE, refers to the online platform, based on Mastodon, intended for the creation and sharing of content related to the members of this INSTANCE.

  2. "User" refers to any person who has access and uses the services of INSTANCE.

  3. "Content" refers to any and all material, such as texts, images, videos, audios and any other forms of expression created and made available by the user in INSTANCE.

@vndmtrx
vndmtrx / toot-in-pride-nuvemlgbt.css
Created June 2, 2023 17:40
Toot in Pride da instância Mastodon NuvemLGBT
.compose-form__publish-button-wrapper button,
.ui__header__links .button {
background-color: rgba(0, 0, 0, 0);
background-image: linear-gradient(
#E22016,
#F28917,
#EFE524,
#78B82A,
#2C58A4,
#6D2380,
@vndmtrx
vndmtrx / twitter-unfav.js
Last active October 12, 2021 04:50
Js snippet for unfav tweets
/* Snippet for unfav tweets *
* 1: Access your favs tab on https://twitter.com/PROFILE/likes *
* 2: Run this snippet on Developer Tools > Console *
* 3: Wait a rather long time to script unfav all your tweets */
var timeout = 2000;
var promise = Promise.resolve();
var loop = setInterval(clearFavs, 10000);
function clearFavs() {
clearInterval(loop);
/* ~/.config/gtk-3.0/gtk.css */
/* Lista plugins: xfconf-query -c xfce4-panel -p /plugins -lv */
/* Recarrega XFCE: xfce4-panel -r */
/* GTK Theming para o XFCE: https://docs.xfce.org/xfce/xfce4-panel/theming */
/* Tema para uso com o painel horizontal configurado para 48px de tamanho da linha */
#whiskermenu-button* {
-gtk-icon-transform: scale(0.50);
}
@vndmtrx
vndmtrx / Makefile
Created November 30, 2020 16:53
My Makefile for bootstrapping Python projects
SHELL := /bin/bash
.SHELLFLAGS = -e -c
.ONESHELL:
.PHONY: clean freeze
PRJ_NAME = Project Name
.venv: .venv/bin/activate
@vndmtrx
vndmtrx / subnet.py
Last active October 18, 2023 20:09
Python 3 simple subnet calculator
#!/usr/bin/env python3
# Use: ./subnet.py <ip/cidr>
# Alt: ./subnet.py <ip> <mask>
import sys
if __name__=="__main__":
addr = [0, 0, 0, 0]
mask = [0, 0, 0, 0]
cidr = 0
@vndmtrx
vndmtrx / cron_script.sh
Last active November 12, 2018 11:27
Script para execução de atividades no Cron, com controle de horas e bloqueio de múltiplas execuções. Rode com cron_script.sh <path da atividade>.
#!/usr/bin/env bash
## Script Modelo de execução de tarefas no cron
## Recomendação: Usar script na pasta /etc/cron.d/ em vez de usar cron de usuário (crontab -e)
## Recomendação: Usar rotação de logs (https://www.thegeekstuff.com/2010/07/logrotate-examples)
##################################################### Configuração ####################################################
#TODO: Criar /etc/logrotate.d/script
if [ $# -ne 1 ]; then
@vndmtrx
vndmtrx / gen-cert.sh
Created December 31, 2017 23:00
Servidor HTTPS em Python2/3 com TLS ativado, para fins de desenvolvimento
#!/usr/bin/env bash
openssl req -new -x509 -keyout certificado.pem -out certificado.pem -days 365 -nodes
@vndmtrx
vndmtrx / Tarefa.java
Last active November 26, 2017 19:05
Post saindo do forno... #Java9 #SpringBoot
package com.vndmtrx.springboot.tarefas.modelos;
import javax.validation.constraints.Size;
import java.util.Date;
import javax.validation.constraints.NotNull;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
package io.github.vndmtrx.spring
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@EnableAutoConfiguration
@ComponentScan
class Application
fun main(args: Array<String>) {