Skip to content

Instantly share code, notes, and snippets.

import React, { useEffect, useState} from 'react';
import { Link, useHistory, useParams } from 'react-router-dom';
import { Alert, Button, Container, Form, FormGroup, Input, Label } from 'reactstrap';
const CoffeeShopEdit = (props) => {
const [isLoading,setIsLoading] = useState(true);
const [isCreate,setIsCreate] = useState(false);
const [item ,setItem] = useState({});
# CUDA Environment Setup: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#environment-setup
for CUDA_BIN_DIR in `find /usr/local/cuda-*/bin -maxdepth 0`; do export PATH="$PATH:$CUDA_BIN_DIR"; done;
for CUDA_LIB_DIR in `find /usr/local/cuda-*/lib64 -maxdepth 0`; do export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}$CUDA_LIB_DIR"; done;
export PATH=`echo $PATH | tr ':' '\n' | awk '!x[$0]++' | tr '\n' ':' | sed 's/:$//g'` # Deduplicate $PATH
export LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH | tr ':' '\n' | awk '!x[$0]++' | tr '\n' ':' | sed 's/:$//g'` # Deduplicate $LD_LIBRARY_PATH
//
// Shinobi - Tensorflow Plugin
// Copyright (C) 2016-2025 Moe Alam, moeiscool
// Copyright (C) 2020 Levent Koch, dermodmaster
//
// # Donate
//
// If you like what I am doing here and want me to continue please consider donating :)
// PayPal : [email protected]
//
/root/.pm2/logs/shinobi-tensorflow-error.log last 15 lines:
2|shinobi- | 2020-08-21 15:53:42.914779: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA n ode, so returning NUMA node zero
2|shinobi- | 2020-08-21 15:53:42.915286: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
2|shinobi- | name: GeForce GTX 1050 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.468
2|shinobi- | pciBusID: 0000:04:00.0
2|shinobi- | 2020-08-21 15:53:42.950284: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2|shinobi- | 2020-08-21 15:53:43.217998: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10.0
2|shinobi- | 2020-08-21 15:53:43.315173: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successf
/root/.pm2/logs/shinobi-tensorflow-error.log last 15 lines:
2|shinobi- | 2020-08-21 13:59:56.472832: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10.0
2|shinobi- | 2020-08-21 13:59:56.475713: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2|shinobi- | 2020-08-21 13:59:56.475876: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2|shinobi- | 2020-08-21 13:59:56.476388: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2|shinobi- | 2020-08-21 13:59:56.476794: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
2|shinobi- | 2020-08-21 13:59:56.476848: I tensorflow
root@vanillax-shinobi:/home/Shinobi# ffmpeg -hwaccels
ffmpeg version N-98759-g1c7e55dd50 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (Ubuntu 8.4.0-1ubuntu1~18.04)
configuration: --pkg-config-flags=--static --prefix=/opt/ffmpeg --bindir=/opt/ffmpeg/bin --extra-cflags=-I/opt/ffmpeg_build/include --extra-ldflags=-L/opt/ffmpeg_build/lib --enable-cuda-nvcc --enable-cuvid --enable-libnpp --extra-cflags=-I/usr/local/cuda/include/ --extra-ldflags=-L/usr/local/cuda/lib64/ --enable-nvenc --enable-libass --disable-debug --enable-libvorbis --enable-libvpx --enable-opencl --enable-gpl --cpu=native --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-openssl --enable-librtmp --extra-libs='-lpthread -lm -lz' --enable-nonfree
libavutil 56. 58.100 / 56. 58.100
libavcodec 58.100.100 / 58.100.100
libavformat 58. 51.100 / 58. 51.100
libavdevice 58. 11.101 / 58. 11.101
libavfilter 7. 87.100 / 7. 87.100
# make sure that your dns has a cname set for organizr
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name shinobi.*;
include /config/nginx/ssl.conf;
Incident Identifier: 61354DD7-DE39-4598-BAE2-C1EF145059E8
CrashReporter Key: 53b4c25ecfe995271b11fbe9564f2a887747d550
Hardware Model: iPad7,3
Process: Runner [36914]
Path: /private/var/containers/Bundle/Application/5A87D382-DE11-40F8-86AF-505DE1F62BB2/Runner.app/Runner
Identifier: com.flutterVlcPlayer.flutterVlcPlayerExample
Version: 1 (1.0.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
@mitchross
mitchross / main.dart
Last active February 17, 2020 17:25
import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'package:flutter_vlc_player/vlc_player.dart';
import 'package:flutter_vlc_player/vlc_player_controller.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
# Copyright (c) 2018 NVIDIA Corporation. All rights reserved.
#
# NVIDIA Corporation and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA Corporation is strictly prohibited....
[application]
enable-perf-measurement=0