Skip to content

Instantly share code, notes, and snippets.

@vtmx
vtmx / sh
Created March 30, 2023 00:42
convert-imgs-to-txt.sh
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
if ! kdialog -v > /dev/null; then
exit_error "Command not exist: kdialog"
fi
@vtmx
vtmx / onedark.theme
Last active December 7, 2021 01:04
btop-theme-onedark
# Theme: OneDark
# By: Vitor Melo
# Main bg
theme[main_bg]="#282c34"
# Main text color
theme[main_fg]="#abb2bf"
# Title color for boxes
@vtmx
vtmx / settings.json
Last active June 21, 2020 21:32
My VS Code settings
{
// Editor
"editor.autoClosingBrackets": "always",
"editor.autoIndent": true,
"editor.detectIndentation": false,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.glyphMargin": false,
"editor.insertSpaces": true,
"editor.minimap.enabled": false,
@vtmx
vtmx / Keypirinha.ini
Created June 21, 2020 16:59
My theme for Keypirinha - https://keypirinha.com
[app]
launch_at_startup = yes
hotkey_run = Alt+Space
[gui]
theme = vitormelo
max_height = 8
max_results = 30
[theme/vitormelo]
@vtmx
vtmx / calc.js
Created July 13, 2019 05:53
Correção 17C12
class CalcController {
constructor() {
this._operation = []
this._locale = 'pt-BR'
this._displayCalcEl = document.querySelector('#display')
this._dateEl = document.querySelector('#data')
this._timeEl = document.querySelector('#hora')
this.initialize()
this.initButtonsEvents()
@vtmx
vtmx / calc.js
Created July 12, 2019 04:12
Calc
class CalcController {
constructor() {
this._operation = []
this._locale = 'pt-BR'
this._displayCalcEl = document.querySelector('#display')
this._dateEl = document.querySelector('#data')
this._timeEl = document.querySelector('#hora')
this.initialize()
this.initButtonsEvents()