Skip to content

Instantly share code, notes, and snippets.

View LakithKarunaratne's full-sized avatar

Lakith LakithKarunaratne

View GitHub Profile
@kylehounslow
kylehounslow / client.py
Last active April 23, 2024 10:58
Send and receive images using Flask, Numpy and OpenCV
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'
@Guidoom
Guidoom / gist:d5db0a76ce669b139271a528a8a2a27f
Last active October 30, 2024 10:05
Sample odoo.conf file
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active November 6, 2024 13:34
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@davidteren
davidteren / nerd_fonts.md
Last active November 2, 2024 19:03
Install Nerd Fonts via Homebrew [updated & fixed]