Skip to content

Instantly share code, notes, and snippets.

View RafaAguilar's full-sized avatar

Rafael Aguilar RafaAguilar

View GitHub Profile

#Bluetooth mouse won't reconnect - Specific case Microsoft Mouse

Scan for your mouse Info

# hcitool scan

KDE users:

then edit this /usr/share/apps/bluedevilwizard/pin-code-database.xml

#Screen brightness / backlight on Sony Vaio #Tested series VPCEG

create /usr/share/X11/xorg.conf.d/20-intel.conf

Section "Device"
        Identifier  "card0"
        Driver      "intel"
 Option "Backlight" "intel_backlight"
#!/usr/bin/env python
import logging
import pycurl
import json
from cgi import escape
from StringIO import StringIO
logging.basicConfig(filename='invoices_missing.log',level=logging.DEBUG)
example_invoice_json = '{"against_income_account":"Revenue - C\u0026C","total_commission":0.0,"write_off_amount":0.0,"naming_series":"SINV-","fiscal_year":"2014-2015","doctype":"Sales Invoice","total_advance":0.0,"conversion_rate":1.0,"total":25.0,"customer_name":"31 PTE. LTD.","paid_amount":0.0,"apply_discount_on":"Grand Total","update_stock":0,"packed_items":[],"base_total":25.0,"selling_price_list":"Standard Selling","source":"","base_grand_total":25.0,"recurring_type":"","docstatus":0,"territory":"Venezuela","base_in_words":"BSF Twenty Five only.","due_date":"2015-07-31","ignore_pricing_rule":1,"advances":[],"company":"Fake COMPANY","is_opening":"No","grand_total":25.0,"base_discount_amount":0.0,"outstanding_amount":25.0,"customer_address":"Customer 1","base_rounded_total":25.0,"base_total_taxes_and_charges":0.0,"rema