Ambiente: Ubuntu 14.04
sudo apt-get install git
sudo apt-get install python-scipy
sudo apt-get install python-numpy
sudo apt-get install python-skimage
sudo apt-get install python-pandas
sudo apt-get install python-opencv
#!/bin/bash | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options | |
This script set ownership for all table, sequence and views for a given database | |
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto |
# images to hdf5 | |
# https://groups.google.com/forum/#!topic/h5py/9sA18XbC_ao | |
# https://github.com/h5py/h5py/issues/268 | |
import h5py | |
import numpy | |
def create_image_dataset(group, dataset_name, image, **kwargs): | |
""" | |
Create a dataset respecting the HDF5 image specification |
#!/bin/sh | |
# This script will migrate schema and data from a SQLite3 database to PostgreSQL. | |
# Schema translation based on http://stackoverflow.com/a/4581921/1303625. | |
# Some column types are not handled (e.g blobs). | |
SQLITE_DB_PATH=$1 | |
PG_DB_NAME=$2 | |
PG_USER_NAME=$3 |
#!/bin/sh | |
## | |
# basic script to backup entire drive and backup securely | |
# backup a mysql database using lvm snapshot tool | |
## | |
# stop mysql | |
/usr/sbin/service mysql stop |
# Ignore everything in this directory | |
* | |
# Except this file | |
!.gitignore |
#!/usr/bin/python | |
import re,urllib2,urllib | |
list_ids = ( '1', '2', '3') | |
url = 'https://<url>/<path>/file.php?id=' | |
regex = '[0-9]{2}\/[0-9]{11}\-[0-9]' |