create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
Relies on some *nix CLI utilities: mediainfo
; and qt-faststart
(part of ffmpeg
). I used homebrew to install them on OS X.
Pseudo streaming is simply a video that can start playing before it's fully dowmloaded. The videos are not streaming but rather progressively downloaded. What's important is that the file metadata (the Moov Atom) is at the start of the file rather than at the end. Usually this is an option set when encoding the file (called quick start or web start). If the files have not been encoded this way you can either re-encode or use a utility to move the Moov Atom. Re-encoding takes much longer than using a utility to move the Moov Atom so here's how to do it.
First check with mediainfo
to see if video 'is streamable':
// 坑一、js的基本类型有那些? | |
number string boolean object null undefined | |
typeof null //===>"object" | |
//这只能说是最初的JavaScript实现的bug,而现在标准就是这样规范的. | |
//V8曾经修正并实现过typeof null=== "null",但最终证明不可行.http://wiki.ecmascript.org/doku.php?id=harmony:typeof_null | |
// 坑二、NaN isNaN | |
isNaN('a') //===>true | |
isNaN('09') //===>false |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
git init # 初始化本地git仓库(创建新仓库) | |
git config --global user.name "xxx" # 配置用户名 | |
git config --global user.email "[email protected]" # 配置邮件 | |
git config --global color.ui true # git status等命令自动着色 | |
git config --global color.status auto | |
git config --global color.diff auto | |
git config --global color.branch auto | |
git config --global color.interactive auto | |
git config --global --unset http.proxy # remove proxy configuration on git | |
git clone git+ssh://[email protected]/VT.git # clone远程仓库 |
#!/usr/bin/node | |
"use strict"; | |
const net = require('net'); | |
const url = require('url'); | |
const qs = require('querystring'); | |
function request(opts) { | |
if(! /^https?:\/\//.test(opts.url)) opts.url = `http://${opts.url}`; |
1) Generate RSA key: | |
$ openssl genrsa -out key.pem 1024 | |
$ openssl rsa -in key.pem -text -noout | |
2) Save public key in pub.pem file: | |
$ openssl rsa -in key.pem -pubout -out pub.pem | |
$ openssl rsa -in pub.pem -pubin -text -noout | |
3) Encrypt some data: |