Skip to content

Instantly share code, notes, and snippets.

View abarmat's full-sized avatar

Ariel Barmat abarmat

View GitHub Profile
docker stop $(docker ps -a -q)
filetype plugin on
syntax on
set nocompatible
set expandtab
set shiftwidth=2
set tabstop=2
# 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
gpg --symmetric --cipher-algo AES256 file.txt
awk -v RS= '{$1=$1}1'
avconv -y -v warning -i <infile> -ss 00:00:00 -t 00:01:00 -codec copy <outfile>
ffmpeg -i <infile> -c:v libx264 -profile:v high -pix_fmt yuv420p -crf 23 -c:a aac -b:a 160k -strict -2 <outfile>
Web3 = require('web3')
web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"))
for file in $(ls -p | sort -R | grep -v / | grep -v s.sh | tail -6000)
do
mv $file ./cv/1/
done

Keybase proof

I hereby claim:

  • I am abarmat on github.
  • I am abarmat (https://keybase.io/abarmat) on keybase.
  • I have a public key whose fingerprint is 7A5E 39AF 8053 DD3F F514 8831 51DF 9451 E697 7209

To claim this, I am signing this object: