Skip to content

Instantly share code, notes, and snippets.

View abarmat's full-sized avatar

Ariel Barmat abarmat

View GitHub Profile
# 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:

@abarmat
abarmat / onename.txt
Created January 29, 2017 15:28
Onename verify ID
Verifying that "abarmat.id" is my Blockstack ID. https://onename.com/abarmat
import pprint
import re
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn import metrics, cross_validation
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.feature_extraction import DictVectorizer
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer