Skip to content

Instantly share code, notes, and snippets.

View nerun's full-sized avatar
💾
Fight on!

Daniel Dias Rodrigues nerun

💾
Fight on!
View GitHub Profile
@nerun
nerun / PyDice.py
Last active July 9, 2024 14:56
A dice roller with a gaussian distribution calculator. Written in Python 3.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# PyDice.py - version 2.0 - 08 july 2024
# Copyright (c) 2024 Daniel Dias Rodrigues <[email protected]>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the Creative Commons Zero 1.0 Universal (CC0 1.0) Public
# Domain Dedication (https://creativecommons.org/publicdomain/zero/1.0/).
#
@nerun
nerun / bitwarden-to-chrome-csv
Created March 14, 2022 18:24
Convert a CSV created by Bitwarden Password Manager to Chrome CSV format.
#!/bin/bash
# First, make a copy of the original CSV file. We gonna work with the copy.
cp $1 $2
# If no name is given for the output file, use a default.
if [ -z $2 ]; then
output='passwords_output.csv'
else
output=$2
fi
@nerun
nerun / zap
Last active April 2, 2025 22:33
Universal Compressor (Archiver) and Decompressor (Extractor) for Linux shell.
#!/usr/bin/env zsh
###########################
# ZAP
# By Daniel Dias Rodrigues
###########################
# Se o parâmetro for -c, compactar
if [[ $1 == "-c" || $1 == "c" ]]; then
local args=("$@") # array de argumentos
@nerun
nerun / example.po
Last active June 28, 2023 01:03
Example of .po file
msgid ""
msgstr ""
"Project-Id-Version: Exemplo\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2021-08-05 14:45-0300\n"
"PO-Revision-Date: 2023-06-27 22:02-0300\n"
"Last-Translator: Daniel Dias Rodrigues <danieldiasr@gmail."
"com>\n"
"Language-Team: \n"
"Language: pt_BR\n"
@nerun
nerun / GURPS-Stella.py
Last active June 7, 2021 15:20
Stellar Systems Generator for GURPS Space.
import locale, os, random
## CONFIGURATION ###
try:
lang = locale.getdefaultlocale()[0][:2] # ('pt_BR', 'UTF-8')
except:
lang = "en"
# DECLARAÇÃO DE VARIÁVEIS E FUNÇÕES
########################################################################
@nerun
nerun / JulianDate.py
Last active July 24, 2023 19:58
Calculadora de Data Juliana em Python 3 + tkinter + tkcalendar
#!/usr/bin/env python3
# CALCULADORA DE DATA JULIANA
# por Daniel Dias Rodrigues em 2459259.7188310185
# Usando algoritmos da Wikipédia.
# Agradecimentos a "Jc3s5h" da Wikipedia por me ajudar a corrigir o algoritmo.
################################################################################
# This source code is released under the license
# Creative Commons CC0 1.0 Universal Public Domain Dedication
# <https://creativecommons.org/publicdomain/zero/1.0>
################################################################################
@nerun
nerun / Alone Among the Stars.py
Last active April 30, 2022 14:13
Gerador de exploração espacial baseado no RPG Solo "Alone Among de Stars v2.0 de"
# Alone Among the Stars v2.0
# =================================================
# Por Takuma Okada | noroadhome.itch.io
# Traduzido por Daniel Dias Rodrigues
# Script Python por Daniel Dias Rodrigues
# https://www.gurpzine.com.br/alone-among-the-stars
# =================================================
import os, time, random
def LimparTela(linhas=100):
@nerun
nerun / ZipCracker.py
Last active January 12, 2024 20:37
Python Zip Cracker. Funciona com arquivos ZIP encriptados com ZipCrypto, não suporta AES128/256.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time, sys, itertools, os, string, datetime
from zipfile import ZipFile
def LimparTela(linhas=100):
if os.name == 'posix':
os.system('clear')
elif os.name in ('nt', 'dos', 'ce'):
os.system('cls')