Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

f.etica.ai: simple hosting for binary files #68

Open
fititnt opened this issue Mar 26, 2019 · 1 comment
Open

f.etica.ai: simple hosting for binary files #68

fititnt opened this issue Mar 26, 2019 · 1 comment

Comments

@fititnt
Copy link
Member

fititnt commented Mar 26, 2019

  • Domain: https://f.etica.ai
  • SSH user: eticaaifiles
  • Password: (secret)
  • Host for SFTP/SSH access: culver.dreamhost.com
  • Real IP: 69.163.220.54
  • Price: "free" (Rocha is using one account on a shared hosting)
  • Warnings:
    • This should not be used for large files or even files that need too much access to avoid isses with the hosting.
    • Also f.etica.ai is hardcoded to a IP adress (because it is easy to make quick setup now). Maybe will work for a few weeks, maybe will work for a few years. If f.etica.ai stop work (and was not because of some error, the solution should is very likely to be just update to a new IP.

--

Cloudflare is manading the DNS
Captura de tela de 2019-03-26 05-12-26

Dreamhost asked for host the full DNS. We're use some black magic here (aka just copy the IP and hope it does not change for several years)

Captura de tela de 2019-03-26 05-24-16

@fititnt
Copy link
Member Author

fititnt commented Mar 26, 2019

If for some reason this repository had to be rebuild from scratch, these are the files added at the root. One index.html and one robots.txt file to block index from search engines. Not that we're would use something ilicit, but just to avoid we indexing even better than the original sources.

robots.txt

/home/eticaaifiles/f.etica.ai/robots.txt

User-agent: *
Disallow: /

index.html

/home/eticaaifiles/f.etica.ai/index.html

<!doctype html>

<html lang="pt">

<head>
  <meta charset="utf-8">

  <title>Etica.AI</title>
  <meta name="description" content="Etica.AI is concerned about long-term social & ethical implications of artificial intelligence on Africa/Latin America. Do it via grassroots acts in short-term.">
    <meta http-equiv="refresh" content="5; url=https://github.com/EticaAI/forum/issues/68">
  <style>
    * {
      padding: 0px;
      margin: 0px;
    }

    html,
    body {
      height: 100%;
    }

    blockquote {
      margin: 0 auto;
      height: 100%;
      width: 100%;


      font-size: 1.6em;

      color: #fff;
      text-align: center;
      background-color: #159957;
      background-image: linear-gradient(120deg, #155799, #159957);
    }

    .q {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  </style>
</head>

<body>
  <blockquote>
    <div class="q">
      <p lang="pt">"A ética é saber a diferença entre o que você tem o direito de fazer e o que
        é certo fazer"</p>
      <p lang="es">"La ética es saber la diferencia entre lo que tienes derecho a hacer y lo que
        es correcto hacer"</p>
      <p lang="en">"Ethics is knowing the difference between what you have a right to do and what
        is right to do"</p>
      <cite>Potter Stewart </cite>
      <div>
        Visite <a href="https://github.com/EticaAI/forum/issues/68" style="color: white">github.com/EticaAI/forum</a>
      </div>
    </div>
  </blockquote>
  <script>
    function lang() {
      var userLang = navigator.language || navigator.userLanguage;
      if (userLang.indexOf('pt') !== 1) {
        document.querySelector('[lang=es]').style.display = 'none';
        document.querySelector('[lang=en]').style.display = 'none';
      } else if (userLang.indexOf('es') !== 1) {
        document.querySelector('[lang=es]').style.display = 'none';
        document.querySelector('[lang=en]').style.display = 'none';
      } else if (userLang.indexOf('en') !== 1) {
        document.querySelector('[lang=pt]').style.display = 'none';
        document.querySelector('[lang=en]').style.display = 'none';
      }
      //alert("The language is: " + userLang);
    }
    lang();
  </script>
</body>

</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant