Skip to content

Instantly share code, notes, and snippets.

View memeka's .config for xu4-4.14.0-rc6
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 4.14.0-rc6 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_ARM_DMA_USE_IOMMU=y
CONFIG_ARM_DMA_IOMMU_ALIGNMENT=8
CONFIG_MIGHT_HAVE_PCI=y
View config-4.14.0-rc7-08
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 4.14.0-rc7 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_ARM_DMA_USE_IOMMU=y
CONFIG_ARM_DMA_IOMMU_ALIGNMENT=8
CONFIG_MIGHT_HAVE_PCI=y
@mihailescu2m
mihailescu2m / DownloadStation
Last active Jun 5, 2018
Synology NAS: from DownloadStation to Filebot to Plex
View DownloadStation
METHOD OVERVIEW:
================
This method involves creating a PSQL trigger, and PSQL C function which runs a bash script.
The bash script is responsible for running FileBot and notifying Plex server of new files.
The bash script outputs the recognized files to the PSQL C function, which removes completed
downloads containing those files from the database (and from DownloadStation GUI).
NOTE: you need to give the Synology user 'postgres' access to all the required paths
(download folder, plex media folder, scripts folder, filebot, java).
View gist:0118e2edd913c5d6fafab7fd118af3be
gscbuf = v4l2_getfree_v4l2buf(gsc->output);
if (!gscbuf)
return AVERROR(ENOMEM);
// copy mfc capture buffer to gsc capture buffer
for(i = 0; i < avbuf->num_planes; i++) {
gscbuf->plane_info[i].mm_addr = avbuf->plane_info[i].mm_addr;
gscbuf->planes[i].bytesused = avbuf->planes[i].bytesused;
gscbuf->planes[i].length = avbuf->planes[i].length;
}
View detect.json
{
"prototxt": "MobileNetSSD_deploy.prototxt",
"caffemodel": "MobileNetSSD_deploy.caffemodel",
"classes": [
"background",
"aeroplane",
"bicycle",
"bird",
"boat",
"bottle",
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 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 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 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