Giter Club home page Giter Club logo

shellscripts's Introduction

shellScripts

My personal collection of useful shell scripts

MIT-Lic

Descriptions


  • newdwin: a very simple one line script to create a new Terminal window with my "DeskNames" settings using term.sh. Here's the result:
    DeskNames Example

    With many projects going at the same time, and many desktops open, it is difficult to know which desktop is which. I put this window in the corner of every desktop to keep track of my desktops. The large font allows me to read the desktop names in Mission Control mode.

  • newdwin2: same as newdwin, except the output is printed to the right-hand screen in a two display setup.

  • newiwin: one liner that creates my default windows for launching IPython Notebooks. With typically dozens of Terminal windows open, I find a little bit of custom color coding for each window type speeds up finding the window I'm looking for, increasing productivity. IPy Green Example

  • newiwin2: same as newiwin, except the output is printed to the right-hand screen in a two display setup.

  • term.sh: A script for opening a new Mac OS X terminal window with the desired command, window settings, size, and position. It is based on David Moles' response to this stackoverflow question, but tweaked to optionally set the size and position. The syntax is

    term.sh "command" "window settings" width height y-position x-position

    For example

    term.sh "echo 'hello world'" "Novel" 640 320 500 50
  • keepNthRow: a routine to keep the nth row of an input file, and write it to file if requested. Includes options for keeping the header and verbosity. An example that will include verbosity, keep the top row (column names) in addition to every tenth row of input.txt, and write the contents to output.txt is shown below:

    keepNthRow -vkn 10 -f output.txt input.txt

shellscripts's People

Contributors

mattgiguere avatar

Watchers

 avatar  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.