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
def get_video_name(url) | |
begin | |
if url.index("vimeo") | |
id = url.match(/(\d+)/)[0] | |
link = "http://vimeo.com/api/v2/video/#{id}.json" | |
result = JSON.parse(open(link).read) | |
name = result[0]["title"] | |
else | |
# youtube | |
id = url.match(/=([\w]+)/)[1] |
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
/* | |
====================== | |
~ Damnatio Memoriae ~ | |
====================== | |
a conceptual-virus that appends a black stripe over jpeg images with faces | |
====================== | |
author | Rafael Polo | |
====================== | |
Memefest | International festival of radical communication memefest.org | |
====================== |
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
apt-get update | |
apt-get upgrade | |
apt-get install autoconf automake bison build-essential curl cmake gcc git git-core htop libc6-dev libcurl4-openssl-dev libffi-dev libgdbm-dev libreadline-dev libreadline6 libreadline6-dev libsqlite3-0 libsqlite3-dev libssl-dev libtool libxml2 libxml2-dev libxslt-dev libyaml-dev locate make ncurses-dev nmap openjdk-9-jre openssl patch python-software-properties rubygems-integration ruby-bundler ruby2.3-dev ruby2.3 sqlite3 vim zlib1g zlib1g-dev software-properties-common mysql-server mysql-client libmysqlclient-dev libmagickwand-dev | |
sudo ln -s /usr/bin/ruby2.3 /usr/bin/ruby | |
sudo adduser git | |
mkdir /home/git/.ssh | |
chown -R git /home/git/ |