GithubHelp home page GithubHelp logo

useful-bash's Introduction

useful-bash

useful bash scripts i wrote i will try to make them posix compliant especally the simpler ones, all entries here have listed wether or not they are posix compliant

checkout-pr.sh

Posix Compliant: Yes This script creates a new branch from a given pull request
First argument is the pull request number and the second is optionally a name for the new branch

block-torrent.sh

Posix Compliant: Yes

This script uses iptables to block torrent connection. However it is rather loose and doesnt for example block encrypted ssl traffic

use -r argument to reset the iptables configuration

vimspector.sh

Posix Compliant: Yes

this script generates a vimspector file for a project. vimspector is a plugin for vim & neovim for debugging. this has to be run in the root directory of your project. you need to specify a language, since at the moment i mostly use rust the build path
for everything but rust is ${workspaceRoot}/src/$name you also need to specify a name as the second argument. this supports all languages that vimspector support except legacy ones

wr-comp.sh

Posix Compliant: No
Will it be: No
Reason: Arrays are required and Posix doesnt have them
Maybe: It might be possible to replace them with delimited strings but im not doing that

wr-comp.sh compares to given files passed as arguments and generates a new file containing lines of both files but no double lines for example if you have a file containing
1 2 3 4 4
and a file containing
1 3 4 5 4 6
the file generated would contain
1 2 3 4 5 6
this script also strips empty lines (eg. lines containing only newlines or spaces)
this can be disabled by passing -t after the files it will include lines containing whitespaces

install-basic-vim-config.sh

Posix Compliant: Yes

this script installs my basic vim config into your home directory without making your home directory a github repo
pass -r to the script to have it install it into /root too so you will have this config even when you need to edit something that requires root

pacman-get-package-list-noversion.sh

Posix Compliant: Yes

This script gets all packges installed with pacman and puts them into packages.txt and removes their versions

count-lines-sh

Posix Compliant: Yes

this counts lines of all files in the current directory recursively except if any file is inside a .git folder or its a README or LICENSE file

anti-afk.sh

Posix Compliant: Yes

This script moves your mouse every 1 second (with relative movements)

useful-bash's People

Contributors

julianwogersien avatar julian-wogersien 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.