Skip to content

Instantly share code, notes, and snippets.

View terroo's full-sized avatar

Marcos Oliveira terroo

View GitHub Profile
@terroo
terroo / path-magic.txt
Created May 16, 2024 12:35
Path pós install libmagic
sudo make install
Making install in src
make[1]: Entrando no diretório '/home/$USER/post-mime-type-cpp/file-5.40/src'
make install-am
make[2]: Entrando no diretório '/home/$USER/post-mime-type-cpp/file-5.40/src'
make[3]: Entrando no diretório '/home/$USER/post-mime-type-cpp/file-5.40/src'
/usr/bin/mkdir -p '/usr/local/lib'
/bin/bash ../libtool --mode=install /usr/bin/install -c libmagic.la
'/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libmagic.so.1.0.0
/usr/local/lib/libmagic.so.1.0.0 libtool: install: (cd /usr/local/lib && { ln -s
@terroo
terroo / font.hpp
Created November 23, 2023 11:12
font.hpp
constexpr std::array<uint8_t, 101808> data = {
0x00, 0x01, 0x00, 0x00, 0x00, 0x13, 0x01, 0x00, 0x00, 0x04, 0x00, 0x30, 0x44, 0x53, 0x49, 0x47,
0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x80, 0xDC, 0x00, 0x00, 0x00, 0x08, 0x47, 0x44, 0x45, 0x46,
0x06, 0x4C, 0x07, 0x1A, 0x00, 0x01, 0x80, 0xE4, 0x00, 0x00, 0x00, 0x46, 0x47, 0x50, 0x4F, 0x53,
0x23, 0x24, 0x6C, 0xC7, 0x00, 0x01, 0x81, 0x2C, 0x00, 0x00, 0x0C, 0x62, 0x47, 0x53, 0x55, 0x42,
0x6C, 0x91, 0x74, 0x8F, 0x00, 0x01, 0x8D, 0x90, 0x00, 0x00, 0x00, 0x20, 0x4F, 0x53, 0x2F, 0x32,
0x45, 0x54, 0x8E, 0xD5, 0x00, 0x00, 0x01, 0xB8, 0x00, 0x00, 0x00, 0x60, 0x63, 0x6D, 0x61, 0x70,
0xB9, 0x5C, 0x5C, 0x10, 0x00, 0x00, 0x05, 0x88, 0x00, 0x00, 0x02, 0x2E, 0x63, 0x76, 0x74, 0x20,
0x19, 0x00, 0x0E, 0x10, 0x00, 0x00, 0x16, 0x6C, 0x00, 0x00, 0x00, 0x34, 0x66, 0x70, 0x67, 0x6D,
0x62, 0x2E, 0xFB, 0x7B, 0x00, 0x00, 0x07, 0xB8, 0x00, 0x00, 0x0E, 0x0C, 0x67, 0x61, 0x73, 0x70,
@terroo
terroo / file_path.sh
Created November 23, 2023 11:10
files path
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/lib64/imhex/plugins/builtin.hexplug
-- Set runtime path of "/usr/lib64/imhex/plugins/builtin.hexplug" to ""
-- Installing: /usr/lib64/imhex/plugins/script_loader.hexplug
-- Set runtime path of "/usr/lib64/imhex/plugins/script_loader.hexplug" to ""
-- Installing: /usr/share/licenses/imhex/LICENSE
-- Installing: /usr/share/applications/imhex.desktop
-- Installing: /usr/share/pixmaps/imhex.png
-- Installing: /usr/lib64/libimhex.so.1.31.0
@terroo
terroo / img.hpp
Created November 23, 2023 11:07
img.hpp
This file has been truncated, but you can view the full file.
constexpr std::array<uint8_t, 273610> img_data = {
0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44, 0x52,
0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x02, 0xD0, 0x08, 0x06, 0x00, 0x00, 0x00, 0xCF, 0x7D, 0xDD,
0x56, 0x00, 0x00, 0x01, 0x84, 0x69, 0x43, 0x43, 0x50, 0x49, 0x43, 0x43, 0x20, 0x70, 0x72, 0x6F,
0x66, 0x69, 0x6C, 0x65, 0x00, 0x00, 0x28, 0x91, 0x7D, 0x91, 0x3D, 0x48, 0xC3, 0x40, 0x1C, 0xC5,
0x5F, 0x5B, 0x45, 0xD1, 0x8A, 0xA2, 0x45, 0x44, 0x1C, 0x82, 0x54, 0x27, 0xBB, 0xA8, 0x88, 0x63,
0xAD, 0x42, 0x11, 0x2A, 0x84, 0x5A, 0xA1, 0x55, 0x07, 0x93, 0x4B, 0xBF, 0xA0, 0x49, 0x43, 0x92,
0xE2, 0xE2, 0x28, 0xB8, 0x16, 0x1C, 0xFC, 0x58, 0xAC, 0x3A, 0xB8, 0x38, 0xEB, 0xEA, 0xE0, 0x2A,
0x08, 0x82, 0x1F, 0x20, 0xAE, 0x2E, 0x4E, 0x8A, 0x2E, 0x52, 0xE2, 0xFF, 0x92, 0x42, 0x8B, 0x18,
0x0F, 0x8E, 0xFB, 0xF1, 0xEE, 0xDE, 0xE3, 0xEE, 0x1D, 0xE0, 0xAF, 0x95, 0x98, 0x6A, 0xB6, 0x45,
@terroo
terroo / cup.cpp
Last active November 24, 2022 18:01
Brasil x Sérvia
#include <iostream>
int main(){
std::uint16_t brasil, servia;
float time {0.f};
while( time <= 90.f ){
if( time == 15.f || time == 33.f ){
++brasil;
}
@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,

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 / 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
@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
#!/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;