Skip to content

Instantly share code, notes, and snippets.

@ruze00
ruze00 / TestJWTS.cs
Created September 29, 2016 20:55
JWTS Token encoding using .NET for Jersey
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace TestAuth
@ruze00
ruze00 / ubuntu.sh
Created January 7, 2018 18:20 — forked from jarutis/ubuntu.sh
Theano and Keras setup on ubuntu with OpenCL on AMD card
## install Catalyst proprietary
sudo ntfsfix /dev/sda2
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK
sudo apt-get remove --purge fglrx*
sudo apt-get install linux-headers-generic
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo
sudo amdconfig --initial
## install build essentials
sudo apt-get install cmake
@ruze00
ruze00 / ncs2_realtime_objectdetection.py
Created September 9, 2018 21:19 — forked from chad-green/ncs2_realtime_objectdetection.py
Update for NCSDK 2.0 based on code from Adrian Rosebrock's tutorial on pyimagesearch.com (see link in comments)
# Updated for NCSDK 2.0. Original code by Adrian Rosebrock
# https://www.pyimagesearch.com/2018/02/19/real-time-object-detection-on-the-raspberry-pi-with-the-movidius-ncs/
# USAGE
# python ncs2_realtime_objectdetection.py --graph graphs/mobilenetgraph --display 1
# python ncs2_realtime_objectdetection.py --graph graphs/mobilenetgraph --confidence 0.5 --display 1
# import the necessary packages
from mvnc import mvncapi as mvnc
from imutils.video import VideoStream
from imutils.video import FPS