Skip to content

Instantly share code, notes, and snippets.

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

Edson Ferreira edsoncelio

🏠
Working from home
View GitHub Profile
@edsoncelio
edsoncelio / loading.sh
Last active June 26, 2016 19:50
loading bar in shell script
#!/bin/bash
#loading bar in shell script^^
BARRA="[..................................................]"
passo="="
for i in $(seq 1 50); do
BARRA=${BARRA/./$passo}
sleep 1
clear
echo $BARRA $i"%"
@edsoncelio
edsoncelio / virtualenv_py3
Created June 27, 2016 15:32
testing virtualenv debian base
#!/bin/bash
#testar a virtual env no ubuntu
echo '----------------------'
echo ' conf virtual env '
echo '----------------------'
#verificar a instalacao
@edsoncelio
edsoncelio / grub
Created July 1, 2016 22:43
meny-entry windolos
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (em /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-42B4-2C42' {
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 42B4-2C42
else
search --no-floppy --fs-uuid --set=root 42B4-2C42
fi
@edsoncelio
edsoncelio / hello.spec
Last active July 11, 2016 00:28
specfile hello world!
Summary: GNU Hello
Name : hello
Version: 2.1.1
Release: 1
Source: https://ftp.gnu.org/gnu/hello/hello-2.1.1.tar.gz
URL: https://www.gnu.org/software/hello/hello.hmtl
License: GPL
Group: System Environment/Libraries
#!/bin/bash
# Edson Celio 2016 <[email protected]>
#script simples para limpeza e organização da pasta de downloads
# obs: pode ser modificado de acordo com as necessidades, e adicionado no crontab
function usage(){
echo 'usage ./clear <opcao>'
echo 'opcoes:'
echo '1 - pdf'
echo '2 - jpg'
NB2HI4DTHIXS6ZDJONRW64TEFZTWOL3GJM3UKODHPE======
Quer dica também? ah vá.
@edsoncelio
edsoncelio / backup_config.sh
Created August 4, 2017 12:23
Backup to my config files.
#!/bin/bash
#Script para backup de arquivos/dirs de conf importantes!
#/home/.profile
#/home/.bashrc
#/home/.vimrc
#/home/.ssh/
#/home/.oh-my-zsh/
BK_DIR=/tmp/$(hostname -s)_$(date +%d-%m-%y)
BK_OUT=/tmp/backup_$(date +%d-%m-%y).cpio
#!/bin/bash
#funcionalidades:
#baixar todos os episodios (ok)
#baixar ovas (ok)
#criar pasta com nome do anime(ok)
#formato MP4(faltando)
#continuar download de episodios de uma pasta(faltando)
function usage(){
clear
@edsoncelio
edsoncelio / links.txt
Created February 14, 2018 18:51
Links de referência para build e upload de pacotes Linux