This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 1 2 3; do | |
docker-machine create -d virtualbox node-$i | |
done | |
eval $(docker-machine env node-1) | |
docker swarm init \ | |
--advertise-addr $(docker-machine ip node-1) | |
TOKEN=$(docker swarm join-token -q worker) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import odoorpc | |
import argparse | |
import urllib2 | |
import json | |
import ssl | |
from bs4 import BeautifulSoup | |
from base64 import b64encode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import odoorpc | |
import argparse | |
import urllib2 | |
import requests | |
import ssl | |
from base64 import b64encode | |
PARSER = argparse.ArgumentParser() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import odoorpc | |
import argparse | |
import csv | |
PARSER = argparse.ArgumentParser() | |
PARSER.add_argument("-d", "--db", help="DataBase Name", required=True) | |
PARSER.add_argument("-r", "--user", help="OpenERP User", required=True) | |
PARSER.add_argument("-w", "--passwd", help="OpenERP Password", required=True) | |
PARSER.add_argument("-f", "--filePath", help="csv file path", required=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import odoorpc | |
import argparse | |
import csv | |
PARSER = argparse.ArgumentParser() | |
PARSER.add_argument("-d", "--db", help="DataBase Name", required=True) | |
PARSER.add_argument("-r", "--user", help="OpenERP User", required=True) | |
PARSER.add_argument("-w", "--passwd", help="OpenERP Password", required=True) | |
PARSER.add_argument("-f", "--filePath", help="csv file path", required=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import odoorpc | |
import argparse | |
import csv | |
PARSER = argparse.ArgumentParser() | |
PARSER.add_argument("-d", "--db", help="DataBase Name", required=True) | |
PARSER.add_argument("-r", "--user", help="OpenERP User", required=True) | |
PARSER.add_argument("-w", "--passwd", help="OpenERP Password", required=True) | |
PARSER.add_argument("-f", "--filePath", help="csv file path", required=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import odoorpc | |
import argparse | |
import csv | |
PARSER = argparse.ArgumentParser() | |
PARSER.add_argument("-d", "--db", help="DataBase Name", required=True) | |
PARSER.add_argument("-r", "--user", help="OpenERP User", required=True) | |
PARSER.add_argument("-w", "--passwd", help="OpenERP Password", required=True) | |
PARSER.add_argument("-f", "--filePath", help="csv file path", required=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
BUCKET="my aws bucket" | |
function putS3 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this list all branch with its commits sorted by last commit | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import oerplib | |
import argparse | |
import csv | |
PARSER = argparse.ArgumentParser() | |
PARSER.add_argument("-d", "--db", help="DataBase Name", required=True) | |
PARSER.add_argument("-r", "--user", help="OpenERP User", required=True) | |
PARSER.add_argument("-w", "--passwd", help="OpenERP Password", required=True) | |
PARSER.add_argument("-f", "--filePath", help="csv file path", required=True) |
NewerOlder