This interactive Neo4j graph tutorial covers a common credit card fraud detection scenario.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BUILD_DIR := gen | |
| # pandoc is a handy tool for converting between numerous text formats: | |
| # http://johnmacfarlane.net/pandoc/installing.html | |
| PANDOC := pandoc | |
| # pandoc options | |
| # Liberation fonts: http://en.wikipedia.org/wiki/Liberation_fonts | |
| PANDOC_PDF_OPTS := --toc --chapters --base-header-level=1 --number-sections --template=virsto_doc.tex --variable mainfont="Liberation Serif" --variable sansfont="Liberation Sans" --variable monofont="Liberation Mono" --variable fontsize=12pt --variable documentclass=book | |
| PANDOC_EBOOK_OPTS := --toc --epub-stylesheet=epub.css --epub-cover-image=cover.jpg --base-header-level=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::sync::mpsc::{channel, Sender}; | |
| use std::sync::Mutex; | |
| use std::thread; | |
| #[derive(Debug)] | |
| enum Message { A, B } | |
| struct Request; | |
| struct Response; | |
| struct IronError; |
Boot a specific installed Ubuntu kernel using grub-reboot and grub-set-default.
This allows you to pick what kernel you want to boot on next reboot, or set the default, without having to know much about how grub works or editing config files.
Usage: boot-kernel [options] [kernel]
call grub-reboot or grub-set-default to boot the provided kernel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This first example assumes two usb serial port adapters are connected to the host machine. They enumerate as ttyUSB0 and ttyUSB1. | |
| We want data coming into ttyUSB0 to be piped right back out of ttyUSB1 (so our host sits as a man in the middle). | |
| We want an application running on the host to be able to connect to a com port and monitor the traffic. | |
| # create the fifo | |
| sudo mkfifo -m 777 /tmp/fifo | |
| # stream serial data on /dev/ttyUSB0 to the fifo AND a virtual com port /tmp/relay | |
| sudo socat /dev/ttyUSB0,raw,echo=0 system:'sudo tee /tmp/fifo | sudo socat - "pty,raw,echo=0,link=/tmp/relay"' & |