Skip to content

Instantly share code, notes, and snippets.

View gomezgleonardob's full-sized avatar
😎
Developing and Watching

Leonardo gomezgleonardob

😎
Developing and Watching
View GitHub Profile
@Mostly-BSD
Mostly-BSD / FreeBSD-Nvidia-510.md
Last active June 26, 2024 21:59
Step-by-step instructions on installing the latest NVIDIA drivers on FreeBSD 13.0 and above.

How to get the Latest NVIDIA drivers on FreeBSD

Step-by-step instructions on installing the latest NVIDIA drivers on FreeBSD 13.0 and above.

1.0 Clean Up Existing Drivers

IMPORTANT: Log out of X session. Make sure you Desktop Manager (sddm|slim) is off. You need to be on the console.

# Create a boot env incase we need to rollback
sudo bectl create `date +%Y%m%d`-BeforeNvidia-Upgrade
@CakJuice
CakJuice / odoo12_custom_report_wizard.py
Created May 24, 2019 06:01
Odoo 12 custom report wizard
# -*- coding: utf-8 -*-
from datetime import datetime
from odoo import models, fields, api
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT as DATETIME_FORMAT
class AttendanceRecapReportWizard(models.TransientModel):
_name = 'attendance.recap.report.wizard'
@oxydedefer
oxydedefer / odoo11_invoice.py
Last active July 4, 2022 14:54
Create invoice with payment in odoo 11 using odoorpc
# encoding: utf-8
import odoorpc
from datetime import datetime
HOST = 'localhost'
PORT = 8069
DB = 'DB_NAME'
USER = 'USER_MAIL'
PASS = 'PASSWORD_USER'
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
version="2.1">
<persistence-unit name="persistenceUnitName" transaction-type="RESOURCE_LOCAL">
<properties>
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" /> <!-- DB Driver -->
@coffeesam
coffeesam / yosemite_foomatic_paths.command
Created May 5, 2015 10:06
Yosemite Postscript driver sandbox lifting script
#!/bin/bash
######################################################################
#
# Product name: Foomatic PPD modifier for Yosemite
# version: 1.1 2014-10-28
#
# Copyright 2014 Matt Broughton <walterwego@macosx.com>
#
# This program is freed software; you can redistribute it and/or modify it