Giter VIP home page Giter VIP logo

aem-utils's Introduction

aem-utils

Miscellaneous short shell utilities I use frequently

makemore and makeless

Inject or steal jobserver tokens from GNU make. Useful for when you want to increment or decrement the -j setting on a long-running parallel make.

Expect make to emit warnings such as the following after using this:

make: INTERNAL: Exiting with 7 jobserver tokens available; should be 5!

vim-cp and vim-mv

Copy or move a file, and also move the vim undofile. Assumes all undofiles are kept in ~/.vim/undo. Currently, it only moves one file at a time, it requires absolute paths, and it requires the second argument to be the filename and not just the target directory. It won't do the right thing if you only specify the target directory.

BUG: Should be more robust, and should at least complain instead of doing the wrong thing.

git-vim-cp and git-vim-mv

Like vim-cp and vim-mv, but also renames it in git.

rmsame

Compare two files, and ask if you want to delete the first if the two are identical.

rmlnsame

Compare two files, and ask if you want to replace the first with a symlink to the second if the two are identical.

samefile

Returns success if two files are the same inode, and otherwise returns failure.

BUG: Doesn't make sure the files are actually on the same device.

unswap

For each specified swap device, or, if none are specified on the command line, for each swap device in /proc/swaps, calls swapoff and then swapon. Useful for loading swapped-out pages back into RAM after recovering from a low-memory condition.

uniqfiles

Filter a list of filenames, removing files with content identical to a file already seen.

Uses newline as delimiter. Will choke on filenames containing newlines.

aem-utils's People

Contributors

electrodude avatar

Stargazers

 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.