Skip to content

Instantly share code, notes, and snippets.

View icarito's full-sized avatar
🐙

Sebastian Silva icarito

🐙
  • Amazonas Sur
View GitHub Profile
<span class="edit-button"
onclick="edit_resource( {{resource_type|tojson}},
{{resource["guid"]|tojson}},
{{resource["content"]|tojson}},
{{resource["title"]|tojson}} )">
diff --git a/odoo.py b/odoo.py
index 62de058..0549b51 100755
--- a/odoo.py
+++ b/odoo.py
@@ -129,7 +129,7 @@ def cmd_setup_deps():
setup_deps_debian(git_dir)
def setup_pg_debian(git_dir):
- cmd = ['sudo','su','-','postgres','-c','createuser -s %s' % os.environ['USER']]
+ cmd = ['sudo','su','-','postgres','-c','createuser -s %s' % 'odoo'] #os.environ['USER']]
import requests
def get_data_doc_number(user, password, tipo_doc, numero_doc, format='json'):
'''
url = 'http://py-devs.com:8888/api'
tipo_doc = 'dni' o 'ruc'
'''
url = 'http://py-devs.com:8888/api'
url = '%s/%s/%s' % (url, tipo_doc, str(numero_doc))
res = {'error': True, 'message': None, 'data': {}}
Started GET "/profile/ispectregadget" for 68.180.229.245 at 2016-09-30 14:49:07 +0000
Processing by UsersController#profile as */*
Parameters: {"id"=>"ispectregadget"}
Rendered users/profile.html.erb within layouts/application (12.0ms)
Completed 500 Internal Server Error in 175.4ms
ActionView::Template::Error (undefined method `barnstars' for nil:NilClass):
156: <li><a href="#questions" data-toggle="tab"><i class="fa fa-comments"></i><span class="hidden-sm hidden-xs"> <%= t('users.profile.questions') %></span></a></li>
157: <li><a href="#comments" id="comments-tab" data-toggle="tab"><i class="fa fa-comment"></i><span class="hidden-sm hidden-xs"> <%= t('users.profile.comments') %></span></a></li> 158: <li><a href="/profile/<%= @user.username %>/likes"><i class="fa fa-star"></i><span class="hidden-sm hidden-xs"> <%= t('
@icarito
icarito / readme.md
Last active July 27, 2017 04:18
test markdown

Censa Árbol

Aplicación desarrollada con el propósito de contribuir a los esfuerzos de conservación de los bosques mediante el registro de especímenes notables de árboles para su seguimiento, estudio y protección.

Permite: * Gestionar una lista principal de registros:

# n código especie diámetro
<html>
<body>
<script src="require.js"></script>
<script>
requirejs.config({
shim: {
"rapydscript": {
exports: 'RapydScript'
}
}
{
"responseHeader": {
"status": 0,
"QTime": 328,
"params": {
"q": "*:*",
"indent": "true",
"fq": "precocious",
"wt": "json",
"_": "1510875681647"
commit da920d16fa29c4160741d70077a49668cf2c039b
icarito@tycho2:/srv/mapknitter-app/production$ bower list
bower check-new Checking for new versions of the project dependencies..
^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B
bower retry Request to https://bower.herokuapp.com/packages/blueimp-tmpl failed with ETIMEDOUT, retrying in 1.6s
@icarito
icarito / readme.md
Last active February 17, 2018 15:25

@nuxtjs/python

npm (scoped with tag) npm CircleCI Codecov Dependencies js-standard-style

Write Nuxt.js Apps in Python

icarito@tycho:/srv/plotsbot/plotsbot$ docker-compose up -d
Creating network "plotsbot_default" with the default driver
Creating plotsbot_plotsbot_1 ...
Creating plotsbot_plotsbot_1 ... done
icarito@tycho:/srv/plotsbot/plotsbot$ docker-compose ps
Name Command State Ports
-------------------------------------------------
plotsbot_plotsbot_1 yarn start Exit 1
icarito@tycho:/srv/plotsbot/plotsbot$ docker-compose logs plotsbot
Attaching to plotsbot_plotsbot_1