This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne 2 ]; then | |
echo "Uso: resizewindow largura altura" | |
exit 1 | |
fi | |
xdotool selectwindow windowsize $1 $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Comandos para liberar espaço da partição root no Arch | |
# O Arch Linux não guarda versões antigas do Kernel | |
# por isso não é necessário removê-las para liberar espaço | |
# Executar os comandos como root | |
if [ "$EUID" -ne 0 ] | |
then echo "Executar como root" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ~/.config/nvim/init.vim | |
" Configurações dos plugins | |
source /home/admin/.config/nvim/plugin-config/vim-plug.vim | |
source /home/admin/.config/nvim/plugin-config/deoplete.vim | |
source /home/admin/.config/nvim/plugin-config/neosnippet.vim | |
source /home/admin/.config/nvim/plugin-config/denite.vim | |
source /home/admin/.config/nvim/plugin-config/vim-fake.vim | |
source /home/admin/.config/nvim/plugin-config/monokai.vim | |
source /home/admin/.config/nvim/plugin-config/nvim-lspconfig.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# Baixar o modelo pré-treinado e o prompt em inglês: | |
# - https://huggingface.co/TheBloke/wizardLM-7B-GGML/tree/main | |
# WizardLM 7B de 5 bit otimizado, "wizardLM-7B.ggmlv3.q5_1.bin" | |
script_dir="$(dirname "$0")" | |
prompt_template=${prompt_template:-"${script_dir}/prompt-EN-US.txt"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# Baixar o modelo pré-treinado e o prompt em português: | |
# - https://huggingface.co/CRD716/ggml-vicuna-1.1-quantized/tree/main | |
# Vicuna 7B de 5 bit otimizado, "ggml-vicuna-7b-1.1--q5_1.bin" | |
script_dir="$(dirname "$0")" | |
prompt_template=${prompt_template:-"${script_dir}/prompt-PT-BR.txt"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# Baixar o modelo pré-treinado e o prompt em português: | |
# - https://huggingface.co/TheBloke/LLaMa-7B-GGML/tree/main | |
# Llama 13B de 4 bit otimizado, "llama-7b.ggmlv3.q8_0.bin" | |
script_dir="$(dirname "$0")" | |
prompt_template=${prompt_template:-"${script_dir}/prompt-PT-BR.txt"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Libera espaço da partição root no Debian | |
# Executar os comandos como root | |
if [ "$EUID" -ne 0 ] | |
then echo "Executar como root" | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use 5.010; | |
use autodie; | |
use Cwd qw(cwd); | |
# Script: docker-services.pl | |
# Descrição: Inicia/para serviços do Docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Script: epoch-datetime.bash | |
# Descrição: Converte epoch para data e hora | |
# para obter epoch: date +%s | |
# Uso: ./epoch-datetime EPOCH | |
# Checa o número de argumentos e verifica se é um número | |
if [ $# -ne 1 ] || ! [[ $1 =~ ^[0-9]+$ ]]; then | |
echo "Erro: Uso incorreto. Correto: ${0} EPOCH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Script: exif-datetime.bash | |
# Descrição: Usa o exiftool para extrair as datas dos metadados de arquivos. | |
# Exemplo de uso: ./exif-datetime arquivo.jpg | |
# Função para extrair metadados | |
get_metadata() { | |
exiftool -s -s -s -"${1}" "${FILE}" | |
} |
NewerOlder