Skip to content

Instantly share code, notes, and snippets.

View abarmat's full-sized avatar

Ariel Barmat abarmat

View GitHub Profile
ffmpeg -i <infile> -c:v libx264 -profile:v high -pix_fmt yuv420p -crf 23 -c:a aac -b:a 160k -strict -2 <outfile>
avconv -y -v warning -i <infile> -ss 00:00:00 -t 00:01:00 -codec copy <outfile>
awk -v RS= '{$1=$1}1'
gpg --symmetric --cipher-algo AES256 file.txt
# Create and attach swapfile
sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Permanent mount
echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab
filetype plugin on
syntax on
set nocompatible
set expandtab
set shiftwidth=2
set tabstop=2
docker stop $(docker ps -a -q)
sha1sum ${FILENAME} | awk '{print $1}'
{ tx: '0x3e387318c3d6b9e640e233441069f53052da7e8e46c8473dfb9001c6fbdf0b1d',
receipt:
{ transactionHash: '0x3e387318c3d6b9e640e233441069f53052da7e8e46c8473dfb9001c6fbdf0b1d',
transactionIndex: 0,
blockHash: '0xaf2af5f3c1bad937f0f998b0ed0b0ae01a576380d4d96b550038acfc4e28eda9',
blockNumber: 643,
gasUsed: 45004,
cumulativeGasUsed: 45004,
contractAddress: null,
logs: [] },