Nenhuma descrição

Desobediente Civil c669259c75 Adicionei novas instruções 8 anos atrás
css 340d32c77a proxy blocked domains handling 10 anos atrás
inc f48314fcac blocked domains handling - redirection to google cache 10 anos atrás
js 7e2e19eb63 client side decoded original link 10 anos atrás
lib 9c25f97c75 Desistindo de ser teimoso 8 anos atrás
.gitignore e83c0df701 Reorganizando variáveis 8 anos atrás
.htaccess 258206b45a initial 10 anos atrás
LICENSE b8328b768b Initial commit 10 anos atrás
README.md c669259c75 Adicionei novas instruções 8 anos atrás
ajax-loader.gif 258206b45a initial 10 anos atrás
apple-touch-icon-precomposed.png 258206b45a initial 10 anos atrás
capture.sh e556a3030f Agora sim cagada consertada 8 anos atrás
favicon.ico 258206b45a initial 10 anos atrás
humans.txt 258206b45a initial 10 anos atrás
index.php 45c6719ac1 Adicionando variáveis em arquivo separado 8 anos atrás
optimize.sh 7436a4abd9 sliced-images-new-feature 10 anos atrás
private.php e83c0df701 Reorganizando variáveis 8 anos atrás
proxy.php 340d32c77a proxy blocked domains handling 10 anos atrás
robots.txt 258206b45a initial 10 anos atrás
schema.sql b7cdc6de32 minor fix 10 anos atrás
slice.sh 7436a4abd9 sliced-images-new-feature 10 anos atrás
static.php a728bd57a4 Variável no lugar errado 8 anos atrás

README.md

naofo.de

url shortener which creates a print. for denouncing despicable content without giving it views or pagerank / it's all about http://wkhtmltopdf.org/

simple installation guide for ubuntu 14.04

dependencies:

  • python
  • apache
  • php5
  • php5-curl
  • php5-mysql
  • mysql
  • wkhtmltoimage
  • imagemagick

other requirements:

  • recaptcha
  • google analytics

steps:

  1. add apache variables in /etc/apache2/envvars:

    export naofode_recaptchakey='???'
    export naofode_dsn='mysql:host=localhost;dbname=???'
    export naofode_dbuser='???'
    export naofode_dbpass='???'

  2. alter recaptcha site key in index.php

  3. alter analytics javascript in index.php

  4. create database table:

    mysql> source /path/to/schema.sql

  5. edit files static.php and private.php to match your local configuration.

    also you'll have to change line 12 of file lib/Thrash.class.php to suit your environment.

  6. alter <Directory /var/www/> in /etc/apache2/apache2.conf:

    AllowOverride All

  7. execute

    mkdir /var/www/html/prints

  8. execute

    chown www-data:www-data /var/www/html/prints

  9. execute

    a2enmod rewrite

  10. execute

    service apache2 restart

Troubleshooting

xvfb

On a headless server I had to use xfvb as mentioned here and here.

On a debian based system you have to: sudo apt-get install xvfb

Otherwise, the capture.sh file should be changed.