brew install ffmpeg
ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=90 output.mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function tftpd | |
| switch $argv | |
| case start | |
| sudo rm -rf /private/tftpboot | |
| sudo ln -s (pwd) /private/tftpboot | |
| sudo launchctl load -w /System/Library/LaunchDaemons/tftp.plist | |
| case stop | |
| sudo launchctl unload -w /System/Library/LaunchDaemons/tftp.plist | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { compose, withState, withProps } from 'recompose' | |
| function HoCComponent ({a, b, c, setA, setB}) { | |
| return ( | |
| <div> | |
| <span>A: {a}</span> | |
| <button onClick={setA}>Update A</button> | |
| <span>B: {b}</span> | |
| <button onClick={setB}>Update B</button> | |
| <span>C: {c}</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Convert <input/> to <textarea/> to preserve line-breaks. | |
| */ | |
| function replaceInputWithTextarea(input) { | |
| if (input.type !== 'text') return; | |
| // Create textarea element. | |
| const textarea = document.createElement('textarea'); | |
| // Copy all input attributes except `value`. |
| code | description |
|---|---|
<%_ term %> |
translate with i18n |
<%: term %> |
translate with i18n and escape XML |
<%+ path/to/template %> |
include template from view dir (/usr/lib/lua/luci/view) |
<%= expression %> |
print expression |
<%# comment %> |
comment |
<%- |
remove whitespaces on the left |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| channel spectrum | |
| ready | |
| SELECT_AP -> ready | |
| SCAN -> loading | |
| loading | |
| CANCEL_SCAN -> ready | |
| SCAN_SUCCESS -> chart | |
| SCAN_FAILURE -> error | |
| chart | |
| SELECT_AP -> ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Build Zsh from sources on Debian Wheezy. | |
| # From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file. | |
| # Some packages may be missing | |
| sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo | |
| git clone git://git.code.sf.net/p/zsh/code zsh | |
| cd zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| // Rough modified version of Celeste to darken it up | |
| "name": "Celeste Dark", | |
| "author": "Sublime HQ Pty Ltd", | |
| "variables": | |
| { | |
| // These colors are part of the hashed range | |
| // and should only be used in non-source | |
| "purple": "hsla(260, 50%, 70%, 1)", | |
| "blue": "hsla(200, 70%, 55%, 1)", |
Try to run bin file with and without extension:
.\node_modules\.bin\electron.cmd
.\node_modules\.bin\electronIf it's work with extension but not without, check PATHEXT environment variable.
OlderNewer