Skip to content

Instantly share code, notes, and snippets.

View gist:3da37876ce6ad912bbea26df5d6e3a1b
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="">
<Document id="root_doc">
<Schema name="freeling_buildings" id="freeling_buildings">
<SimpleField name="BLD_PG_PID" type="string"></SimpleField>
<SimpleField name="BLD_PID" type="string"></SimpleField>
<SimpleField name="DT_CREATE" type="string"></SimpleField>
<SimpleField name="DT_LT_MOD" type="string"></SimpleField>
<SimpleField name="DT_RETIRE" type="string"></SimpleField>
<SimpleField name="CAPT_DATE" type="string"></SimpleField>
mihailescu2m /
Created December 31, 2019 23:00
snippet to write solaredge optimisers panel data in an influxdb database
import requests, pickle
from datetime import datetime
import json, pytz
import pandas as pd
from influxdb import DataFrameClient
login_url = ""
panels_url = ""
SOLAREDGE_USER = "" # web username
View blocklist
View highcharts in Jupyter Notebook
packages: [{
name: 'highcharts',
main: 'highcharts'
paths: {
View compile enlightenment
*** efl
export CFLAGS="-O3"
export CFLAGS="$CFLAGS -ffast-math"
export CFLAGS="$CFLAGS -fexpensive-optimizations"
export CFLAGS="$CFLAGS -frename-registers"
export CFLAGS="$CFLAGS -ftree-vectorize"
export CFLAGS="$CFLAGS -march=armv7-a"
export CFLAGS="$CFLAGS -mfpu=neon-vfpv4"
export CFLAGS="$CFLAGS -mfloat-abi=hard"
View compile firefox wayland
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-av1
ac_add_options --disable-webrtc
ac_add_options --disable-tests
View compile chromium
general info
mkdir -pv ~/chromium
cd ~/chromium
git config --global “Joel Maranhao”
git config --global “”
git config --global core.autocrlf false
git config --global core.filemode false
git config --global color.ui true
View Kodi + exynos IPPv2
------- init() function --------
monitor_width = m_destRect.Width(); // from kodi
monitor_height = m_destRect.Height(); // from kodi
struct drm_mode_create_dumb dumb_buffer;
/* create dumb buffer */
memset(&dumb_buffer, 0, sizeof(dumb_buffer));
View detect.json
"prototxt": "MobileNetSSD_deploy.prototxt",
"caffemodel": "MobileNetSSD_deploy.caffemodel",
"classes": [
### script to detect objects in live video
### using MobileNets+SDD
### by: memeka <>
import argparse, json
import time, datetime, threading
import numpy, cv2