###Install
opkg install lighttpd lighttpd-mod-cgi
###Configgure
修改/etc/lighttpd/lighttpd.conf
- 行
static-file.exclude-extensions = (".php", ".pl", ".fcgi")
改成static-file.exclude-extensions = (".php", ".pl", ".fcgi", ".lua")
pandoc --to=docx -o document.docx wiki.md |
#!/bin/bash | |
# inotifywait-cmd.sh | |
# | |
# Example: | |
# inotifywait-cmd.sh test/ 'phpunit --verbose test/ModelReferencesTest.php' | |
# | |
# Requires: https://github.com/thekid/inotify-win on windows | |
# | |
# author: Gabe LG <[email protected]> |
###Install
opkg install lighttpd lighttpd-mod-cgi
###Configgure
修改/etc/lighttpd/lighttpd.conf
static-file.exclude-extensions = (".php", ".pl", ".fcgi")
改成static-file.exclude-extensions = (".php", ".pl", ".fcgi", ".lua")
#!/bin/sh | |
# Wonder Shaper | |
# please read the README before filling out these values | |
# | |
# Set the following values to somewhat less than your actual download | |
# and uplink speed. In kilobits. Also set the device that is to be shaped. | |
# All config needs to be done in /etc/config/wshaper | |
#. /lib/functions.sh |
/etc/config/easycwmp
config local
option interface wlan0
option port 7547
option ubus_socket /var/run/ubus.sock
option date_format %FT%T%z
option username bob
#!/bin/sh | |
# 定义进出设备(IDEV 内网接口, ODEV外网接口) | |
IDEV="br-lan" | |
ODEV="pppoe-wan" | |
# 定义总的上下带宽 | |
UP="7.52mbit" | |
DOWN="9.55mbit" |
config interface 'loopback' | |
option ifname 'lo' | |
option proto 'static' | |
option ipaddr '127.0.0.1' | |
option netmask '255.0.0.0' | |
config interface 'lan1' | |
option ifname 'eth0.1' | |
option proto 'static' |
--------------- FFMPEG command line | |
ffmpeg = child_process.spawn("ffmpeg", [ | |
"-i", rtsp , "-vcodec", "copy", "-f", "mp4", "-f", "segment", "-segment_time", recSeg, "-segment_wrap", 2, "-map", "0", "-segment_format", "mp4", "-reset_timestamps", "1", "-y", "plugins/security/videos/" + camName + "/rec-%01d.mp4" | |
], {detached: false}); | |
---------------- Node.JS streamer | |
// Stream mp4 video file based on URL request from client player. Accept request for partial streams | |
// Code attribution: https://github.com/meloncholy/vid-streamer/blob/master/index.js (MIT license) | |
var recStream = function (req, resp) { | |
var stream; |
#Use the following command to retrieve the times of a Pings | |
# ping -c 100 www.google.co.uk | awk -F [=\ ] {'print $(NF-1)'} | grep -E "[0-9]" > pingTimes.dat | |
#Then use the following script to plot it with gnuplot | |
set terminal pdfcairo font "Gill Sans,9" linewidth 2 rounded fontscale 1.0 | |
set output "ping.pdf" | |
set ylabel "Time in milliseconds" | |
set xlabel "Number of Pings" |