Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
const fs = require('fs'); | |
const cp = require('child_process'); | |
const util = require('util'); | |
const path = require('path'); | |
const exec = util.promisify(cp.exec); | |
const writeFile = util.promisify(fs.writeFile); | |
const prettierConfigVscode = { | |
'editor.codeActionsOnSave': { |
class PostIndex extends React.Component { | |
state = { loading: false }; | |
componentDidMount() { | |
window.onscroll = () => { | |
if (!this.state.loading | |
&& (window.innerHeight + window.scrollY) | |
>= document.body.offsetHeight) { | |
this.setState({loading: true}, () => { |
$> brew cask install java | |
$> brew install kafka | |
$> vim ~/bin/kafka | |
# ~/bin/kafka | |
#!/bin/bash | |
zkServer start | |
kafka-server-start.sh /usr/local/etc/kafka/server.properties |
[Unit] | |
Description=Mirth Connect Interface Engine | |
After=network.target | |
[Service] | |
Type=forking | |
User=mirth | |
Group=mirth | |
ExecStart=/opt/mirthconnect/mcservice start |
wget http://download.virtualbox.org/virtualbox/4.3.12/VBoxGuestAdditions_4.3.12.iso | |
sudo mkdir /media/iso | |
sudo mount -o loop ./VBoxGuestAdditions_4.3.12.iso /media/iso | |
sudo bash /media/iso/VBoxLinuxAdditions.run --nox11 | |
sudo umount /media/iso |
.slide-animation.ng-enter, .slide-animation.ng-leave { | |
-webkit-transition: 0.5s linear all; | |
-moz-transition: 0.5s linear all; | |
-o-transition: 0.5s linear all; | |
transition: 0.5s linear all; | |
position:relative; | |
height: 1000px; | |
} | |
.slide-animation.ng-enter { |