Skip to content

Instantly share code, notes, and snippets.

View guibeira's full-sized avatar
🏠
Working from home

Guilherme de S. Vieira Beira guibeira

🏠
Working from home
View GitHub Profile
@guibeira
guibeira / config.yml
Last active July 24, 2020 14:06
My configuration for terminalizer
# Specify a command to be executed
# like `/bin/bash -l`, `ls`, or any other commands
# the default is bash for Linux
# or powershell.exe for Windows
command: zsh
# Specify the current working directory path
# the default is the current working directory path
cwd: null
@guibeira
guibeira / mp3_donwloader.py
Last active January 26, 2021 21:12
Python script to donwload and converter youtube videos to MP3
import asyncio
import functools
import itertools
import time
DONWLOAD_COMMAND = "youtube-dl -x -i -q --audio-format mp3 --audio-quality 0 --embed-thumbnail --no-playlist --no-warnings {}"
musics = [ # examples of musics to donwload
"https://www.youtube.com/watch?v=iJPX8zyUmxQ",
"https://www.youtube.com/watch?v=9PObvIbB1Fg",
#Para quem tem que deletar muita msg das dead_queue,
#e tem que selecionar uma a uma quais msg deseja excluir.
#Seus problemas acabaram! abra a fila clique em visualizar e buscar e no console cole isso:
function find_and_delete_many(to_find){
for (let item of to_find) {
console.log(item)
$("div[style='overflow:hidden;white-space:nowrap;']").each(function( index ) {
var text_to_validate = $(this).text()
@guibeira
guibeira / Install dojotimer step-by-step
Last active March 24, 2019 16:30
Install dojo timer
sudo apt install gtk-sharp2 # install dependencies
sudo apt install mono-complete
wget https://teamcity.jetbrains.com/guestAuth/repository/download/cb_bt402/.lastSuccessful/dojotimer.exe # download binary file
sudo chmod 755 dojotimer.exe # give permissions
sudo mv dojotimer.exe /bin/dojotimer
# now just type `dojotimer`