Skip to content

Instantly share code, notes, and snippets.

@dbtek
dbtek / venv_wrapper
Last active July 31, 2024 08:53
Python 3 venv wrapper. Manages all virtual environments under ~/.venv/ .
# venv_wrapper, manage all virtual environments under ~/.venv/
# Include the following in .bashrc / .bash_profile / .zshrc
# See https://gist.github.com/dbtek/fb2ddccb18f0cf63a654ea2cc94c8f19
#
# Usage:
# $ mkvenv myvirtualenv # creates venv under ~/.venv/
# $ venv myvirtualenv # activates venv
# $ deactivate # deactivates venv
# $ rmvenv myvirtualenv # removes venv
# $ rmvenv env1 env2 # removes multiple venvs
@fpuga
fpuga / listado_grupos_tecnologia_galicia.csv
Last active June 17, 2017 15:26
Listado de Grupos y Asociaciones de Tecnología en Galicia
Nombre Twitter Web Contacto Zona Actividad
Ghandalf http://ghandalf.org http://www.ghandalf.org/contacto/ Galicia GUL
Galpón @galpon http://galpon.org galpon@listas.galpon.org Vigo GUL
gpul @gpul_ http://gpul.org http://lists.gpul.org/cgi-bin/mailman/listinfo/ Coruña GUL
O Zulo @ozulo http://www.comunidadeozulo.org/ https://groups.google.com/group/ozulo Mugardos GUL
Melisa http://webmelisa.es/ melisa.melide@gmail.com Melide GUL
BricoLabs @Brico_Labs http://bricolabs.cc/ contacto@bricolabs.cc Coruña Maker
Xeopesca @xeopesca http://xeopesca.com info@xeopseca.com Galicia GUL
Trasno @proxectotrasno http://trasno.gal/ Pontevedra GUL
Vigolabs @vigolabs http://vigolabs.gal/ http://vigolabs.gal/contact/ Vigo Maker
@lanefu
lanefu / OrangePIPythonWiringPIBuild.md
Last active July 31, 2024 22:22
How to get wiring Pi Python libraries on Orange PI with armbian

Overview

Use my fork of the Wiring-Pi Python library which checks out the WiringOP fork of the WiringPi library as a submodule to build everything. yes that's a little confusing

The WiringPI library is the original C library that RaspGPIO is somewhat based on. WiringPi was built to replicate arduino GPIO functions

In Raspberry Pi Land there are 2 normal python paths for GPIO. One is Raspi.GPIO and the other is WiringPI

Known Success

@baali
baali / dlAttachments.py
Created May 8, 2012 08:32
Python script to download all gmail attachments.
# Something in lines of http://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail
# Make sure you have IMAP enabled in your gmail settings.
# Right now it won't download same file name twice even if their contents are different.
import email
import getpass, imaplib
import os
import sys
detach_dir = '.'
@drj42
drj42 / org-mode-reference-in.org
Created February 6, 2012 23:53
This is a cheat sheet for Emacs org-mode... in org-mode format!