This file contains hidden or 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
| import cStringIO as StringIO | |
| from PIL import Image | |
| with open('/testimage.png', 'rb') as f: | |
| data = f.read() | |
| image_stream = StringIO.StringIO(data) | |
| image = Image.open(image_stream) | |
| image.load() |
This file contains hidden or 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
| ==1== by 0x5355035: PyEval_EvalFrameEx (in /usr/lib/libpython2.7.so.1.0) | |
| ==1== by 0x535BAAD: PyEval_EvalCodeEx (in /usr/lib/libpython2.7.so.1.0) | |
| ==1== by 0x52FFFF9: ??? (in /usr/lib/libpython2.7.so.1.0) | |
| ==1== by 0x52E3653: PyObject_Call (in /usr/lib/libpython2.7.so.1.0) | |
| ==1== by 0x535B2DD: PyEval_EvalFrameEx (in /usr/lib/libpython2.7.so.1.0) | |
| ==1== by 0x535BAAD: PyEval_EvalCodeEx (in /usr/lib/libpython2.7.so.1.0) | |
| ==1== by 0x5359E1A: PyEval_EvalFrameEx (in /usr/lib/libpython2.7.so.1.0) | |
| ==1== by 0x535BAAD: PyEval_EvalCodeEx (in /usr/lib/libpython2.7.so.1.0) | |
| ==1== by 0x52FFFF9: ??? (in /usr/lib/libpython2.7.so.1.0) | |
| ==1== by 0x52E3653: PyObject_Call (in /usr/lib/libpython2.7.so.1.0) |
This file contains hidden or 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
| # --- Build Debug Liraries for GDB Debugging --- | |
| ENV CFLAGS='-Wall -O0 -g' | |
| RUN apk add --update alpine-sdk \ | |
| && adduser -G abuild -g "Alpine Package Builder" -s /bin/ash -D builder \ | |
| && echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \ | |
| && mkdir /packages \ | |
| && chown builder:abuild /packages \ | |
| && git clone --depth 1 git://dev.alpinelinux.org/aports \ | |
| && abuild-keygen -a -i \ | |
| && cd aports/main/python |
This file contains hidden or 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
| 2016-06-01 06:03:25,474 13 DEBUG test3 PIL.PngImagePlugin: STREAM tIME 80 7 | |
| 2016-06-01 06:03:25,475 13 DEBUG test3 PIL.PngImagePlugin: tIME 80 7 (unknown) | |
| 2016-06-01 06:03:25,475 13 DEBUG test3 PIL.PngImagePlugin: STREAM IDAT 99 7809 | |
| Program received signal SIGSEGV, Segmentation fault. | |
| [Switching to LWP 32] | |
| 0x00007ffff7a9b073 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 | |
| (gdb) bt | |
| #0 0x00007ffff7a9b073 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 | |
| #1 0x00007ffff7aa2aae in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 |
This file contains hidden or 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
| [10:19:33.807][VpnKit ][Info ] com.docker.slirp.exe: Created instance tcp:0.0.0.0:10000:tcp:172.17.0.7:10000 | |
| [10:19:34.347][VpnKit ][Debug ] com.docker.slirp.exe: tcp:0.0.0.0:12900:tcp:172.17.0.16:12900: closing listening socket | |
| [10:19:34.403][VpnKit ][Debug ] com.docker.slirp.exe: tcp:0.0.0.0:9000:tcp:172.17.0.16:9000: closing listening socket | |
| [10:19:35.402][VpnKit ][Debug ] com.docker.slirp.exe: udp:0.0.0.0:4500:udp:172.17.0.3:4500: closing listening socket | |
| [10:19:35.409][VpnKit ][Error ] com.docker.slirp.exe: udp:0.0.0.0:4500:udp:172.17.0.3:4500: shutting down recvfrom thread: Uwt.Uwt_error(Uwt.ECANCELED, "uwt_udp_recv", "") | |
| [10:19:35.412][VpnKit ][Debug ] com.docker.slirp.exe: udp:0.0.0.0:4500:udp:172.17.0.3:4500: shutting down from vsock thread: End_of_file | |
| [10:19:35.463][VpnKit ][Debug ] com.docker.slirp.exe: udp:0.0.0.0:500:udp:172.17.0.3:500: closing listening socket | |
| [10:19:35.468][VpnKit ][Error ] com.docker.slirp.exe: udp:0.0.0 |
This file contains hidden or 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
| atlantic812:~/rancher# cat docker-compose.yml | |
| version: "2" | |
| services: | |
| rancher-server: | |
| image: rancher/server:stable | |
| restart: unless-stopped | |
| command: ["--db-host", "104.xyz.xyz.xyz", "--db-port", "3306", "--db-name", "cattle", "--db-user", "cattle", "--db-pass", "ERASED"] | |
| environment: | |
| ports: |
This file contains hidden or 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
| class WorkerMaintenance(WorkerCron): | |
| def __init__(self, multi): | |
| super(WorkerMaintenance, self).__init__(multi) | |
| self.watchdog_timeout = multi.maintenance_timeout | |
| def process_work(self): | |
| rpc_request = logging.getLogger('odoo.netsvc.rpc.request') | |
| rpc_request_flag = rpc_request.isEnabledFor(logging.DEBUG) | |
| _logger.debug("WorkerMaintenance (%s) polling for install/updates", self.pid) |
This file contains hidden or 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
| point_of_sale: [FIX] fp map to empty tax | |
| Before this commit, `_map_tax_fiscal_position` could map to undifined, if the | |
| target tax was empty (a valid use case, in other words: "remove"). | |
| This commit filters or validates the mapping result in order to take care of the | |
| undifined returns. As it is construed as a mapping function, we cannot take | |
| care within the function itself but must handle it in downstream code. |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| # Copyright 2017, XOE Corp. | |
| # XOE Enterprise Edition License v1.0. | |
| from odoo import models, fields, api, _ # noqa | |
| class MrpSettings(models.TransientModel): | |
| _inherit = 'mrp.config.settings' | |
| group_mrp_maquila = fields.Boolean('Manage maquila for third parties', implied_group='mrp_maquila.group_mrp_maquila') |
This file contains hidden or 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
| get_product_by_category: function(category_id){ | |
| var product_ids = this.product_by_category_id[category_id]; | |
| var list = []; | |
| var tmpl_list = []; | |
| if (product_ids) { | |
| for (var i = 0, len = Math.min(product_ids.length, this.limit); i < len; i++) { | |
| var product = this.product_by_id[product_ids[i]]; | |
| if (!tmpl_list.includes(product.product_tmpl_id)) { | |
| list.push(product); | |
| tmpl_list.push(product.product_tmpl_id); |
OlderNewer