Code Monkey home page Code Monkey logo

wget.sh's Introduction

wget.sh

wget.sh is a cloud-based app installer. Ask it for something — it will detect your system configuration, your package manager, and install it for you.

Just paste this into your terminal.

bash <(curl https://wget.sh -s -A '')

You will be greeted with a friendly message.

Welcome to web.sh. What would you like to install:

Not sure what to install? Type help to get a list of available apps.

Welcome to web.sh. What would you like to install: help

Try one of the following apps:

· adium
· chrome
· droplr
...

Looking for a particular app? Type help YOUR_APP_NAME to search for matching apps.

Welcome to web.sh. What would you like to install: help op

Try one of the following apps:

· droplr
· imageoptim
· kaleidoscope
· opera

What would you like to install:

Unable find the app your looking for? Please file an issue or contribute to this project.

wget.sh's People

Contributors

jonathantneal avatar mathiasbynens avatar randombrad avatar

Stargazers

 avatar Tadeo Kondrak avatar Haruo Nakayama avatar Benjamin Tan avatar Bob TheBuilder avatar Ryan DeBeasi avatar Peter Souter avatar Jack Pearkes avatar Yusuke Suzuki avatar Daniel Durante avatar Irfaq Syed avatar  avatar Boris Cherny avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

randombrad

wget.sh's Issues

Enable HTTPS

Without HTTPS wget.sh is susceptible to MitM attacks, which is especially dangerous since wget.sh is supposed to return shell scripts that will be executed.

Consider getting an SSL certificate (you can get those for free nowadays) and enabling https://wget.sh/.

Make wget.sh work even if `.curlrc` specifies a default User-Agent string

We’ve been over this before on IRC.

For me, curl -s wget.sh returns:

<!doctype html>
<title>wget.sh</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body { font: 100%/1.5 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; }
body { margin: 0 auto; max-width: 40em; padding: 1em; }
p code, blockquote { border-radius: .25em; }
p code { border: 1px solid #CCC; background-color: #F5F5F5; display: inline-block; padding: 0.25em; line-height: 1; }
blockquote { background-color: #F5F5F5; color: #113; margin: 1em 0; padding: .5em; }
blockquote code { display: block; min-height: 1.25em; }
a { text-decoration: none; }
p a { border-bottom: 1px dotted #AAA; color: #44F; }
</style>
<body>
    <h1>wget.sh</h1>
    <p>
        <strong>wget.sh</strong> is a cloud-based app installer.
        Ask it for something &mdash; it will detect your system configuration, your package manager, and install it for you.
    </p>
    <p>
        Just paste this into your terminal.
    </p>
    <blockquote>
        <code>bash &lt;(curl -s wget.sh)</code>
    </blockquote>
    <p>
        You will be greeted with a friendly message.
    </p>
    <blockquote>
        <code>Welcome to web.sh. What would you like to install:</code>     
    </blockquote>
    <p>
        Not sure what to install? Type <code>help</code> to get a list of available apps.
    </p>
    <blockquote>
        <code>Welcome to web.sh. What would you like to install: help</code>
        <code></code>
        <code>Try one of the following apps:</code>
        <code></code>
        <code>· adium</code>
        <code>· chrome</code>
        <code>· droplr</code>
        <code>...</code>
    </blockquote>
    <p>
        Looking for a particular app? Type <code>help YOUR_APP_NAME</code> to search for matching apps.
    </p>
    <blockquote>
        <code>Welcome to web.sh. What would you like to install: help op</code>
        <code></code>
        <code>Try one of the following apps:</code>
        <code></code>
        <code>· droplr</code>
        <code>· imageoptim</code>
        <code>· kaleidoscope</code>
        <code>· opera</code>
        <code>...</code>
        <code></code>
        <code>What would you like to install:</code>
    </blockquote>
    <p>
        Unable to find the app your looking for? Please <a href="//github.com/jonathantneal/wget.sh/issues/new">file an issue</a> or <a href="https://github.com/jonathantneal/wget.sh">contribute to this project</a>.
    </p>
</body>

…because of my .curlrc settings.

Still issues with user agent string

$ bash <(curl https://wget.sh -s -A '')
Welcome to web.sh. What would you like to install: brew
Would like to install Brew? (y/n)? y
/dev/fd/61:1: syntax error, unexpected '<'
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
 ^
/dev/fd/61:2: syntax error, unexpected '<'
<html><head>
 ^
/dev/fd/61:3: syntax error, unexpected tCONSTANT, expecting end-of-input
<title>302 Found</title>
                ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.