Skip to content

Instantly share code, notes, and snippets.

View bwrsandman's full-sized avatar

Sandy bwrsandman

  • Montreal
View GitHub Profile
@bwrsandman
bwrsandman / openerp.dtd
Last active January 4, 2016 21:09
View dtd for OpenERP 7.0
<!DOCTYPE openerp [
<!ELEMENT openerp (data+)>
<!ELEMENT data (menuitem|record|delete|wizard|act_window|url|assert|report|workflow|function|ir_set)*>
<!ATTLIST data noupdate CDATA #IMPLIED>
<!ATTLIST data context CDATA #IMPLIED>
<!ELEMENT menuitem EMPTY>
<!ATTLIST menuitem id CDATA #REQUIRED>
<!ATTLIST menuitem name CDATA #IMPLIED>
@bwrsandman
bwrsandman / Dockerfile
Last active October 4, 2022 17:02
Odoo 8.0 docker using pip
FROM ubuntu:14.04
# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install dependencies
RUN apt-get install -y python-dev python-pip python-lxml python-ldap \
@bwrsandman
bwrsandman / to_dev_logo.py
Created January 14, 2015 17:21
to_dev logo stamping for odoo
"""Using PIL add 'DEV' to the company (and the main odoo) logo
This is meant to be run as a script in the upgrade.py script of anybox.recipe.odoo
"""
from base64 import b64encode, b64decode
from cStringIO import StringIO
from PIL import Image, ImageDraw
main_partner = session.registry('ir.model.data').get_object(
session.cr, session.uid, 'base', 'main_partner')
if main_partner.image:

Keybase proof

I hereby claim:

  • I am bwrsandman on github.
  • I am bwrsandman (https://keybase.io/bwrsandman) on keybase.
  • I have a public key whose fingerprint is C3C2 5B39 3568 109B 5B23 5ED3 A619 A81D B067 F56A

To claim this, I am signing this object:

# Maintainer: Nascher <kevin at nascher dot org>
# Contributor: Ludovic LE ROUX <bojurama12@yahoo.com>
# This package is based on the gog-terraria package and the gog-freedom-planet package from Ainola.
pkgname=gog-shovel-knight
pkgver=2.5.0.7
pkgrel=2
_gamename=${pkgname#gog-}
_gamename_=${_gamename//-/_}
@bwrsandman
bwrsandman / tri.frag
Last active April 17, 2016 17:18
LunarG Vulkan Triangle Demo ported to SDL2 (Linux-tested only)
/*
* Copyright (c) 2015-2016 The Khronos Group Inc.
* Copyright (c) 2015-2016 Valve Corporation
* Copyright (c) 2015-2016 LunarG, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and/or associated documentation files (the "Materials"), to
* deal in the Materials without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Materials, and to permit persons to whom the Materials are
#0 0x00005555555e1362 in xe::copy_and_swap_16_aligned(void*, void const*, unsigned long) (dest_ptr=0x7fffffffaf40, src_ptr=0x7fffffffaee2, count=41) at ../src/xenia/base/memory.cc:43
input = {19512248310515026, 6113271908}
output = {140737488331056, 7}
dest = 0x7fffffffaf40
src = 0x7fffffffaee2
shufmask = {434320308619640833, 1013041691324254217}
i = 1
unaligned_words = 0
#1 0x000055555556675f in ()::xe::base::test::____C_A_T_C_H____T_E_S_T__(void) () at ../src/xenia/base/testing/memory_test.cc:77
a = 52651
@bwrsandman
bwrsandman / O0-constant_propagation_pass.o
Created March 10, 2019 00:38
constant_propagation_pass optimization issue
O0/constant_propagation_pass.o: file format elf64-x86-64
architecture: i386:x86-64, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x0000000000000000
Disassembly of section .text:
0000000000000000 <xe::cpu::compiler::passes::ConstantPropagationPass::ConstantPropagationPass()>:
@bwrsandman
bwrsandman / constant_propagation_pass.diff
Created March 10, 2019 02:50
Adding __attribute__ ((optnone)) to set_zero in src/xenia/cpu/hir/value.h
--- /proc/self/fd/11 2019-03-09 21:47:38.316521355 -0500
+++ /proc/self/fd/13 2019-03-09 21:47:38.316521355 -0500
@@ -1,5 +1,5 @@
-opt/constant_propagation_pass.o: file format elf64-x86-64
+noopt/constant_propagation_pass.o: file format elf64-x86-64
architecture: i386:x86-64, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x0000000000000000
@@ -3027,15 +3027,24 @@
Windows:
i> 00003380 Build: linux / 88b5899952eeca6021c59ce390637e122635841f on Jul 19 2019
i> 00003380 Content root: XXXXX
i> 00003380 Initializing Vulkan 1.1.0...
i> 00003380 Found 4 global layers:
i> 00003380 - VK_LAYER_NV_optimus (spec: 1.1.70, impl: 0.0.1)
i> 00003380 NVIDIA Optimus layer
i> 00003380 - VK_LAYER_VALVE_steam_overlay (spec: 1.1.73, impl: 0.0.1)
i> 00003380 Steam Overlay Layer
i> 00003380 - VK_LAYER_VALVE_steam_fossilize (spec: 1.1.73, impl: 0.0.1)