Skip to content

Instantly share code, notes, and snippets.

View trcarden's full-sized avatar

Timothy Cardenas trcarden

View GitHub Profile
@trcarden
trcarden / sortable_test.rb
Created June 25, 2019 06:26 — forked from twalpole/sortable_test.rb
Sortable demo test
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'selenium-webdriver'
gem 'webdrivers'
gem 'capybara'
gem 'byebug'
gem 'puma'
end
@trcarden
trcarden / odoo-sh.py
Created November 2, 2016 17:28 — forked from dreispt/odoo-sh.py
Odoo Shell: run Odoo commands without a server RPC connection
"""
Setup:
Assuming Odoo 8.0 sources at ~/odoo:
$ cp odoo-sh.py ~/odoo
$ cd ~/odoo
$ python -i odoo-sh.py
Usage example:
>>> env = connect('my-db-name')
>>> Users = env['res.users']