Skip to content

Instantly share code, notes, and snippets.

@davidrhodus
davidrhodus / .zshrc
Created April 5, 2019 22:59
vscode path with ZSH
function code {
if [[ $# = 0 ]]
then
open -a "Visual Studio Code"
else
local argPath="$1"
[[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}"
open -a "Visual Studio Code" "$argPath"
fi
}
pragma solidity 0.4.24;
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
Verifying my identity on Peepeth.com 0xb2853233e308fd574e82896c80a44f86e127ea24
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
https://github.com/zsh-users/zsh-autosuggestions
Manual
Clone this repository somewhere on your machine. This guide will assume ~/.zsh/zsh-autosuggestions.
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Add the following to your .zshrc:
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
Start a new terminal session.
gini coefficient
lorenz coefficient
nakamoto coefficient

Keybase proof

I hereby claim:

  • I am davidrhodus on github.
  • I am davidrhodus (https://keybase.io/davidrhodus) on keybase.
  • I have a public key ASC7wGMTV-XRtDJsGtAyplZGVQCvwmwrHvOW61e9hN-iDwo

To claim this, I am signing this object:

FFmpeg information for 360º video

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
  • -i is follwed by the path to the input video
  • -c:v sets the video codec you want to use