Skip to content

Instantly share code, notes, and snippets.

#
# 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
#
# 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 June 5, 2018 03:48
Synology NAS: from DownloadStation to Filebot to Plex
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).
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;
}
###
### 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
{
"prototxt": "MobileNetSSD_deploy.prototxt",
"caffemodel": "MobileNetSSD_deploy.caffemodel",
"classes": [
"background",
"aeroplane",
"bicycle",
"bird",
"boat",
"bottle",
------- 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));
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
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
*** 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"