Video stream url for VLC/DVR:
- rtsp://192.168.1.93:554/user=admin&password=&channel=&stream=.sdp?real_stream--rtp-caching=100
Telnet access
- telnet 192.168.1.10 23
- Localhost login: root
- Password: xmhdipc
// A small SSH daemon providing bash sessions | |
// | |
// Server: | |
// cd my/new/dir/ | |
// #generate server keypair | |
// ssh-keygen -t rsa | |
// go get -v . | |
// go run sshd.go | |
// | |
// Client: |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
server { | |
index index.php; | |
set $basepath "/var/www"; | |
set $domain $host; | |
# check one name domain for simple application | |
if ($domain ~ "^(.[^.]*)\.dev$") { | |
set $domain $1; | |
set $rootpath "${domain}"; |
# Default session directory. Make sure you don't run multiple instances with the same dir. | |
session = ~/torrent/session | |
# Maximum and minimum number of peers to connect to per torrent. | |
min_peers = 50 | |
max_peers = 400 | |
# Same as above but for seeding completed torrents (-1 = same as downloading) | |
min_peers_seed = 20 |
#include <pthread.h> | |
#include <stdio.h> | |
#define PRODUCER_COUNT 1 | |
#define CONSUMER_COUNT 1 | |
#define THREAD_COUNT (PRODUCER_COUNT + CONSUMER_COUNT) | |
#define QUEUE_SIZE 64 | |
// Let's go the easy way and keep a gap between head and tail when full. |