Skip to content

Instantly share code, notes, and snippets.

View matheusoliveira-luizalabs's full-sized avatar

Matheus Oliveira matheusoliveira-luizalabs

View GitHub Profile
@allanino
allanino / simple_docker_api.py
Created February 26, 2016 17:57
Just some commands I need for my project.
import requests
class DockerAPI(object):
""" Helper for using Fleet API to deploy services to a CoreOS cluster."""
def __init__(self, docker_endpoint):
self.docker_endpoint = docker_endpoint
def containers(self):
""" Return a list of pairs with container's names and ids """
@Bouke
Bouke / gist:10454272
Last active September 22, 2025 06:27
Install FreeTDS, unixODBC and pyodbc on OS X

First, install the following libraries:

$ brew install unixodbc
$ brew install freetds --with-unixodbc

FreeTDS should already work now, without configuration:

$ tsql -S [IP or hostname] -U [username] -P [password]
locale is "en_US.UTF-8"

locale charset is "UTF-8"