准备工作:
备份与恢复本地数据库 (localhost):
- 在想要备份的应用目录下,
meteor run。 - 还是在相应的应用目录下,
meteor mongo,查看相应的端口号,比如:如果显示的是connecting to: 127.0.0.1:3001/meteor,那么端口号就是3001,下一步要用到。
| const puppeteer = require('puppeteer'); | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| const playSoundOnDevice = async (username, password, deviceName) => { | |
| const browser = await puppeteer.launch({ | |
| args: [ | |
| '--disable-features=site-per-process', |
| #!/usr/bin/env python2 | |
| # lrdcq | |
| # usage python2 unwxapkg.py filename | |
| import sys, os | |
| import struct | |
| class WxapkgFile(object): | |
| nameLen = 0 |
| {"lastUpload":"2020-04-30T04:17:22.471Z","extensionVersion":"v3.4.3"} |
| var citiesLatLng = { | |
| "municipalities": [ | |
| { | |
| "name": "北京", | |
| "g": { | |
| "lng": "116.395645", | |
| "lat": "39.929986" | |
| } | |
| }, | |
| { |
ffmpeg -f avfoundation -framerate 30 -s "640x480" -i "0" -c:v rawvideo -pix_fmt rgb24 -f caca -s "640x480" output4.mp4
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libcaca
ffmpeg -i vitrine.mp4 -vf scale=1024:-1 -q:vscale 0 vitrine.avi
This face-boxer.py script is more-or-less the same code that you'll find in the OpenCV tutorial: Face Detection using Haar Cascades. For another variation, with more explanation, check out RealPython's tutorial.
The face-boxer.py script is designed to be run from the command-line. It has two required arugments:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| </head> | |
| <body> | |
| <script> | |
| var source = new EventSource('updates.php'); | |
| source.onmessage = function(e) { | |
| var updates; |
| /* | |
| http://benjithian.sg/2012/12/simple-background-subtraction/ | |
| Simple Background Subtraction. Simple stuff. | |
| */ | |
| #include <stdio.h> | |
| #include <curl/curl.h> | |
| #include <sstream> | |
| #include <iostream> | |
| #include <vector> | |
| #include <opencv2/opencv.hpp> |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>App Redirection</title> | |
| </head> | |
| <body> | |
| <!-- | |
| NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom | |
| protocol handlers. |