Skip to content

Instantly share code, notes, and snippets.

View arturmartins's full-sized avatar
💭
I may be slow to respond.

Artur Martins arturmartins

💭
I may be slow to respond.
View GitHub Profile
@arturmartins
arturmartins / webvtt2txt.py
Created October 26, 2023 10:53
Converts WEBVTT subtitles (vtt) to plain text.
#!/usr/bin/env python3
"""
Converts WEBVTT subtitles (vtt) to plain text.
It removes all time related info as well as duplicated and empty lines.
"""
# Author: Artur Martins <[email protected]>
# Version: 1.0
# Date: 2023-Oct-25
@arturmartins
arturmartins / Token.sol
Created April 3, 2024 14:55
Chainlink Bootcamp - Day 3
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol";
import "@openzeppelin/[email protected]/access/AccessControl.sol";
contract Token is ERC20, AccessControl {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
constructor() ERC20("Chainlink Bootcamp 2024 Token", "CLBoot24") {
@arturmartins
arturmartins / install_lastpass_linux.sh
Created January 19, 2025 14:08
Install lastpass for linux
#!/bin/bash
#
# Author: github.com/arturmartins
# Version: 1.0.0
# Config details can be found in https://lastpass.com/lplinux.php
# CONFIG: URL and filenames
TARBALL="lplinux.tar.bz2"