GithubHelp home page GithubHelp logo

erudition / scriptlets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from krlmlr/scriptlets

0.0 2.0 0.0 78 KB

A collection of tiny but helpful shell scripts and config files for personal use. Tested on Ubuntu

Makefile 0.56% Shell 91.38% CMake 8.07%

scriptlets's Introduction

scriptlets

A collection of tiny but helpful shell scripts for personal use. Tested with current Ubuntu. Licensed under GPL v3.

To install all scripts to ~/bin (by creating symbolic links), clone the project and type make. Or run the bootstrap script:

curl -s https://raw.githubusercontent.com/krlmlr/scriptlets/master/bootstrap | sh

Notifications

n

Execute command in the foreground and show desktop notification after completion.

bkg

Execute command in the background and show desktop notification in case of error.

Open my GUI here

rh

Start RStudio with an .Rproj project file found in the current directory. If no project file is found, it is created using usethis::use_rstudio().

texstudio-here

Start a new instance of texstudio with a .txss session file found in the current directory.

copy-real-path

Copies its argument to the clipboard.

ghpsd

GitHub Pages in a separate directory. Allows efficiently maintaining and synchronizing the contents of the gh-pages branch in a subdirectory of the main branch. Supports subcommands init, repair (in case you want to undo init, works only before pushing), merge and checkout.

Use ghpsd init for creating an empty gh-pages subdirectory that will hold the contents of your gh-pages branch. After adding to this subdirectory, use ghpsd merge for updating the gh-pages branch. Note that you still have to push to GitHub.

It works by cloning a copy of the repo into a shadow subdirectory named .gh-pages (which is added to .gitignore, too); this makes updating the gh-pages branch work seamless. Call ghpsd checkout to recreate the hidden .gh-pages folder, this clones locally and does not require network access.

You can also add the call ghpsd merge to your commit hook.

gh-mirror

Mirrors GitHub issues in a subdirectory of .git for offline use. A low-tech wrapper for wget.

git-mmv

Allows you to write git mmv to move several Git-controlled files at once, with the usual mmv syntax.

git-merge-into

Merges the current branch into another branch without altering the current working copy.

git-merge-update

Simplifies maintenance of "development" branches that contain several feature/bugfix branches.

git-rsync

Allows repeated Git-less synchronization with remote locations via rsync.

imgdiff and imgdiff-bg

Compare two images side by side and show differences in a middle pane. Requires ImageMagick. The -bg script exits immediately. Usage: git difftool -x imgdiff-bg -y <image files>. (Source)

is-unmetered

Exits with 0 if and only if the connection is configured as an unmetered connection.

machine-load

Connects to remote machines and shows the top 5 processes by CPU consumption.

mail-after

Executes a script and e-mails the status and output to the current user after completion.

ogv-to-gif

Convert a video to an animated GIF.

pmake

Parallel make, uses number of CPU cores as number of jobs.

retry

Execute command until success, with increasing time intervals between failures.

slecho

Echoes each of its parameters on a single line.

tbca

Creates a new mail in Thunderbird with attachments (given as parameters).

xpra-attach-ssh

A simple wrapper around xpra attach, useful to integrate xpra with GNU Screen.

rpt

Repeat a command (default: make) as soon as the contents of the current working directory change.

Obsolete

encfs-local

encfs command with support for relative paths.

i4 and i4c

Indent current clipboard contents by four spaces and copy back to clipboard, the latter script places two hashes in front.

soR

Executes an R script in a way that its contents and output are formatted as strict Markdown.

extmon-start and extmon-stop

Start multi-monitor output on an Optimus card, using bumblebee. Needs tweaking to adapt to your screen setup.

Copyright 2015-2019 Kirill Müller.

scriptlets's People

Contributors

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