Skip to content

Instantly share code, notes, and snippets.

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

Angelo Andelnyr Sampaio Alves Andelnyr

🏠
Working from home
View GitHub Profile
@Andelnyr
Andelnyr / 00-detect-virtualenv-sitepackages.py
Created March 4, 2021 15:25 — forked from viniciusban/00-detect-current-venv.py
IPython startup script to detect and inject VIRTUAL_ENV's site-packages dirs.
"""IPython startup script to detect and inject VIRTUAL_ENV's site-packages dirs.
IPython can detect virtualenv's path and injects it's site-packages dirs into sys.path.
But it can go wrong if IPython's python version differs from VIRTUAL_ENV's.
This module fixes it looking for the actual directories. We use only old stdlib
resources so it can work with as many Python versions as possible.
References:
http://stackoverflow.com/a/30650831/443564
@Andelnyr
Andelnyr / install.sh
Created August 26, 2020 20:24 — forked from vitorbritto/install.sh
Shell Script - Este é um script shell básico para clonar um repositório no GitHub e executar comandos de estruturação para um projeto com Bower e Grunt.
# Executar no shell/bash com: bash install.sh
# ------------------------------------------------------------------------------
# | Helpers |
# ------------------------------------------------------------------------------
# Renderiza um log de informação
e_informa() {
printf "\n$(tput setaf 7)%s$(tput sgr0)\n" "$@"
@Andelnyr
Andelnyr / git.md
Created May 30, 2020 11:31 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@Andelnyr
Andelnyr / install_gogs_ubuntu.sh
Created May 15, 2020 03:58 — forked from jniltinho/install_gogs_ubuntu.sh
Install Gogs on Debian or Ubuntu
#!/bin/bash
## Install Gogs v0.11.4 + Nginx Webserver + Mysql
## On Debian, Ubuntu 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Version: 3.5
### Tested on Ubuntu 16.04 LTS 64Bits
### Tested on Debian 8/9 64Bits
echo 'install_gogs_ubuntu.sh'
@Andelnyr
Andelnyr / python-guide.sh
Last active July 14, 2025 21:36 — forked from henriquebastos/python-guide.sh
The definitive guide to setup my Python workspace
# The definitive guide to setup my Python workspace
# Author: Henrique Bastos <henrique@bastos.net>
clear
echo -e "\n>>> Atualizando a lista de aplicações disponíveis no repositório."
echo -e "=================================================================\n"
if [ $USER == 'root' ]; then
echo -e "+++ AVISO! NÃO SE LOGUE COMO ROOT!!!"