Code Monkey home page Code Monkey logo

auto-bots's Introduction

Table of Contents generated with DocToc

Auto-bots

A mishmash of various scripts and bots that make life easier. Most of these scripts are bash scripts, but some are written in python or MATLAB

All files here are either scripts or bots. scripts are meant to be run manually, as you need them. bots are meant to run in the background using a system-level scheduler like crontab

installation

If you have git installed:

git clone https://github.com/sg-s/auto-bots.git
cd auto-bots
chmod a+x link-scripts.sh
./link-scripts.sh

link-scripts makes all the scripts here executable, and you can run them by calling their name.

Contents

copy-fonts [script]

Moving computers? Take your fonts with you. Copies fonts from commonly used folders on Mac OS X into a folder called "fonts" in your home folder so you can move it easily.

git-stat [script]

Tells you the status of your local repo, compared to the remote.

keep-drive-mounted [bot]

Keeps a network volume mounted on OS X. It checks if you're on the correct WiFi network (change as needed) and checks if the network drive is mounted (again, change as needed), and calls a small AppleScript to mount the network drive (again, modify as needed). The advantage of doing this crazy scheme is you use Mac OS X's core volume management, and have full access to the keychain, so no passwords are stored in plain text.

this works with an arbitrary number of wifi networks/drives, so it will mount the correct network volume based on your location.

This is basically a free replacement to ridiculous tools like Drive Mounter (App Store link)

keep-process-running [bot]

keep-process-running is meant to be run continuously, e.g., using crontab.

edit the file (e.g., on line 3) with the process you want to keep running:

if [ $(ps aux | grep "Quicksilver" | wc -l) -eq 1 ]

make-retina.sh [script]

Scans a folder of pictures, and up-samples them if necessary to fill a "retina" sized screen (a 15" high-DPI screen).

share.sh [script]

share zips a target folder, uploads it to your server, and returns a publicly accessibly URL. See how it works here.

where-am-i.py [bot]

where-am-i is a handy bot that writes the internal and external IP address of the computer it is running on to file. The idea is that you want to SSH (or VNC) into your computer, but because you have a sucky ISP, your external IP keeps changing.

where-am-i tracks IPs for you, and if it writes to a file inside a folder that you can otherwise synchronize (for example, with Bit Torrent Sync), you can SSH into your computer from anywhere.

link-scripts [script]

What's the use of having a bunch of scripts if you need to remember where they are and have to manually set permissions for them to get them working? link-scripts automatically makes all the scripts in the current folder executable, and links them using short names (it strips out the extension) to a folder in /usr/bin/.

So once you run the install script above, you can run any of the scripts from anywhere in your computer using (for example)

make-retina

netup.m [bot]

strip-mp3 [script]

Strips MP3s from specified video files in the current folder and extracts the audio to a .mp3. Particualrltly useful when combined with this handy script to download youtube videos

strip-mp3 .mp4 

will grab all the .mp4 files in the current directory, and use VLC to extract audio form them and save them in mp3 files.

auto-bots's People

Contributors

sg-s 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.