Skip to content

Instantly share code, notes, and snippets.

@mihailescu2m
mihailescu2m / solaredge.py
Created Dec 31, 2019
snippet to write solaredge optimisers panel data in an influxdb database
View solaredge.py
import requests, pickle
from datetime import datetime
import json, pytz
import pandas as pd
from influxdb import DataFrameClient
login_url = "https://monitoring.solaredge.com/solaredge-apigw/api/login"
panels_url = "https://monitoring.solaredge.com/solaredge-web/p/playbackData"
SOLAREDGE_USER = "" # web username
View gist:3da37876ce6ad912bbea26df5d6e3a1b
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<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>
View blocklist
chromegreen.pw
graucoay.net
9newsdaily.com
adclick.g.doublecklick.net
adeventtracker.spotify.com
ads-fa.spotify.com
analytics.spotify.com
audio2.spotify.com
b.scorecardresearch.com
bounceexchange.com
View highcharts in Jupyter Notebook
```javascript
%%javascript
require.config({
packages: [{
name: 'highcharts',
main: 'highcharts'
}],
paths: {
View detect.py
###
### script to detect objects in live video
### using MobileNets+SDD
###
### by: memeka <mihailescu2m@gmail.com>
###
import argparse, json
import time, datetime, threading
import numpy, cv2
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 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 chromium
general info
mkdir -pv ~/chromium
cd ~/chromium
git config --global user.name “Joel Maranhao”
git config --global user.email “youremail@example.com”
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": [
"background",
"aeroplane",
"bicycle",
"bird",
"boat",
"bottle",