访问WR703N在OpenWrt的[Wiki页][wr703n-openwrt],然后在Flashing一节中找到下载链接:[squashfs-factory.bin][flash.bin],下载后别忘了[比对md5][md5sum]。[1]
进入路由器管理界面,出厂配置为http://192.168.1.1,用户名和密码均为admin,然后进入固件更新,选择下载的文件,然后更新。
| var http = require('http'); | |
| http.createServer(function(request, response) { | |
| var proxy = http.createClient(80, request.headers['host']) | |
| var proxy_request = proxy.request(request.method, request.url, request.headers); | |
| proxy_request.addListener('response', function (proxy_response) { | |
| proxy_response.addListener('data', function(chunk) { | |
| response.write(chunk, 'binary'); | |
| }); | |
| proxy_response.addListener('end', function() { |
ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>emoji</key> | |
| <array> | |
| <string>0⃣️</string> | |
| </array> |
| 1. Make PHPStorm ignore .idea folder | |
| |- File > Settings > Version Control > Ignored Files > Add(+) > Ignored all files under > select directory .idea | |
| 2. Clean PhpStorm Git Cache | |
| |- Open Terminal (Left+Down) #> "C:\Program Files (x86)\Git\cmd\git.exe" rm -f --cached .idea/* | |
| or | |
| |- Open Terminal (Left+Down) #> git rm -f --cached .idea/* | |
| 3. Reboot PhpStorm | |
| \- Done! |
| // hard won knowledge from http://stackoverflow.com/questions/20035615/using-raw-image-data-from-ajax-request-for-data-uri | |
| var xmlHTTP = xhr.XMLHttpRequest(); | |
| xmlHTTP.open('GET', url, true); | |
| xmlHTTP.responseType = 'arraybuffer'; | |
| xmlHTTP.onload = function(e) { | |
| var arr = new Uint8Array(this.response); | |
| var raw = String.fromCharCode.apply(null,arr); | |
| var b64 = base64.encode(raw); | |
| var dataURL="data:image/png;base64," + b64; | |
| }; |
| Install Homebrew OS X package manager: | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| Install ffmpeg with x265 support: | |
| brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265 | |
| Convert video to x265: | |
| ffmpeg -i input -c:v libx265 -preset medium -crf 28 -c:a aac -b:a 128k output.mp4 | |
| Uninstall ffmpeg: |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # unzip-gbk.py | |
| import os | |
| import sys | |
| import zipfile | |
| print "Processing File " + sys.argv[1] |
| axios({ | |
| url: 'http://localhost:5000/static/example.pdf', | |
| method: 'GET', | |
| responseType: 'blob', // important | |
| }).then((response) => { | |
| const url = window.URL.createObjectURL(new Blob([response.data])); | |
| const link = document.createElement('a'); | |
| link.href = url; | |
| link.setAttribute('download', 'file.pdf'); | |
| document.body.appendChild(link); |