Giter VIP home page Giter VIP logo

cloudxtreme / cask-drag-drop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremybradbury/cask-drag-drop

0.0 1.0 0.0 544 KB

Individual oneliner install .sh files for caskroom.io The idea is any of these you want just chekout the repo then drag/drop any you want to your terminal window (after having installed caskroom). You can also fork, delete what you don't need, then commit.

Home Page: http://caskroom.io

Shell 100.00%

cask-drag-drop's Introduction

Individual oneliner install .sh files for caskroom.io

The idea is any of these you want just chekout the repo then drag/drop any you want to your terminal window (after having installed caskroom).

You can also fork, delete what you don't need, then commit.

yes I WAS that bored here's what i did:

  • brew cask search '/[\s\S]*/' > cask.txt
  • did a find and replace of "\n" => "\nbrew cask install" (i used Sublime using regex replacements)
  • removed the first text reading: "==> Regexp matches"
  • saved it, making a long list of install commands
  • ran a (and yes PHP because that's what im super quick at) script that reads the text file and writes a new file for each line
<?php
  $ofile = "cask.txt";
	$handle = fopen($ofile, "r");
	if ($handle) {
	    while (($line = fgets($handle)) !== false) {
	        $filename = trim(str_ireplace("brew cask install","",$line));
			file_put_contents("$filename.sh", $line); 
		} 
		fclose($handle);
	} else {
		throw new exception("$ofile = bad filename");
	}

If i can get the caskroom guys to PR me when they add new apps (or even fork/assume ownership) this could be a wonderful supporting tool =D

cask-drag-drop's People

Contributors

jeremybradbury avatar

Watchers

 avatar

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.