Skip to content

Instantly share code, notes, and snippets.

View terroo's full-sized avatar

Marcos Oliveira terroo

View GitHub Profile
@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
@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 / 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 / .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 / colorpane.sh
Created September 30, 2019 00:39
Colors panel
#!/usr/bin/env bash
#
# This script is written by https://gitlab.com/YOUR-WORST-TACO
# source: https://gitlab.com/YOUR-WORST-TACO/dots/blob/hecate/bin/colorpane
#
# Define Color Variables
trap ctrl_c EXIT
# hide cursor
#!/usr/bin/env bash
# Code example to shared snippets
send_msg(){
tput cnorm
echo -e "\n\e[31;1mBye!\e[m"
exit 127
}
trap send_msg SIGINT
tput civis
while true;
@terroo
terroo / ola-deno.ts
Created May 26, 2020 04:59
Olá, mundo! Com Deno
console.log("Olá Deno!");
const deno = [" __" , " / _)" , " _.----._/ /" , " / /", " __/ ( | ( |" , "/__.-'|_|--|_|"]
var i;
for ( i = 0; i < deno.length ; i++ ){
console.log( deno[i] );
}
// deno run ola-deno.ts
@terroo
terroo / path-install-nvim.txt
Created May 22, 2022 14:32
Location where Neovim install files and directories
-- Install configuration: "Debug"
-- Installing: /usr/bin/share/man/man1/nvim.1
-- Installing: /usr/bin/bin/nvim
-- Installing: /usr/bin/lib/nvim/
-- Installing: /usr/bin/lib/nvim//parser
-- Installing: /usr/bin/lib/nvim//parser/c.so
-- Installing: /usr/bin/share/locale/ja.euc-jp/LC_MESSAGES/nvim.mo
-- Installing: /usr/bin/share/locale/cs.cp1250/LC_MESSAGES/nvim.mo
-- Installing: /usr/bin/share/locale/sk.cp1250/LC_MESSAGES/nvim.mo
-- Installing: /usr/bin/share/locale/nb/LC_MESSAGES/nvim.mo

sigc++-3.0.7

user@prompt $ ~/build/libsigc++-3.0.7$ sudo make install
[sudo] senha para user: 
Making install in sigc++
make[1]: Entrando no diretório '/home/user/build/libsigc++-3.0.7/sigc++'
make  install-am
make[2]: Entrando no diretório '/home/user/build/libsigc++-3.0.7/sigc++'
make[3]: Entrando no diretório '/home/user/build/libsigc++-3.0.7/sigc++'
@terroo
terroo / tilemap.tmx
Created May 24, 2022 20:08
TMX example for parser
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.8" tiledversion="1.8.2" orientation="orthogonal" renderorder="right-down" width="80" height="23" tilewidth="32" tileheight="32" infinite="0" nextlayerid="2" nextobjectid="1">
<tileset firstgid="1" source="floor.tsx"/>
<tileset firstgid="2" source="points.tsx"/>
<layer id="1" name="Camada de Tiles 1" width="80" height="23">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,