Skip to content

Instantly share code, notes, and snippets.

View terroo's full-sized avatar

Marcos Oliveira terroo

View GitHub Profile
@terroo
terroo / .ncmpcpp-config
Last active June 21, 2019 22:36
.ncmpcpp-config
ncmpcpp_directory = "~/.ncmpcpp"
mpd_host = "127.0.0.1"
mpd_port = "6600"
mpd_music_dir = "~/Música"
mpd_crossfade_time = 5
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_output_name = "FIFO"
@terroo
terroo / colors.sh
Created April 25, 2019 22:55
Test the emulator color scheme of your terminal
#!/bin/bash
#
# This file echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background
# colors (default + 8 escapes).
#
# Author: Giles Orr
@terroo
terroo / pacman.sh
Created April 1, 2019 01:49
Colorful PacMan game icons in Terminal
#!/bin/bash
initializeANSI()
{
esc="$(echo -en '\e')"
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
@terroo
terroo / youtube-v1.sh
Last active September 18, 2018 00:25
Como Criar um Script para obter dados do Youtube
#!/bin/bash
# author: Marcos Oliveira <terminalroot.com.br>
# license: MIT
# version: 1.0
function get_dados_youtube() {
page_video_youtube=$(mktemp)
page_canal=$(mktemp)
# A variável 1 é um parâmetro de posição