https://github.com/noah-huppert/scripts
A collection of useful Bash scripts
https://github.com/noah-huppert/scripts
bash helpers scripting scripts utilities
Last synced: about 1 year ago
JSON representation
A collection of useful Bash scripts
- Host: GitHub
- URL: https://github.com/noah-huppert/scripts
- Owner: Noah-Huppert
- License: mit
- Created: 2017-10-22T00:25:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-02T04:14:57.000Z (over 5 years ago)
- Last Synced: 2025-03-29T16:34:00.491Z (about 1 year ago)
- Topics: bash, helpers, scripting, scripts, utilities
- Language: Shell
- Size: 151 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scripts
A collection of useful Bash scripts.
# Table Of Contents
- [Overview](#overview)
- [Install](#install)
- [Commands](#commands)
- [show-help](#show-help)
- [sslinfo](#sslinfo)
- [xcopy and xpaste](#xcopy-and-xpaste)
- [nvim-swap](#nvim-swap)
- [fterm](#fterm)
- [local-dns](#local-dns)
- [fix](#fix)
- [todo](#todo)
- [x](#x)
- [m](#m)
- [bkground](#bkground)
- [touchx](#touchx)
- [cgrep](#cgrep)
- [sx](#sx)
- [urlcode](#urlcode)
- [onchanges](#onchanges)
- [open-pr](#open-pr)
- [serve](#serve)
- [snip](#snip)
- [bloop](#bloop)
- [pylab](#pylab)
- [mode](#mode)
- [xrename](#xrename)
- [read-out](#read-out)
- [edit](#edit)
- [editx](#editx)
- [md2pdf](#md2pdf)
- [logs](#logs)
- [xtend](#xtend)
- [gh-open](#gh-open)
- [git-branches-rm](#git-branches-rm)
- [emacs-clean](#emacs-clean)
- [utf8codepoint](#utf8codepoint)
- [mvself](#mvself)
- [mvext](#mvext)
- [wgrep](#wgrep)
- [record-screen-gif](#record-screen-gif)
- [pagerr](#pagerr)
- [kill-window](#kill-window)
- [tabs-to-spaces](#tabs-to-spaces)
- [m3u8dl](#m3u8dl)
- [Functions](#functions)
- [mcdir](#mcdir)
- [gcd](#gcd)
# Overview
This repository provides numerous helpful bash scripts and functions.
The README contains a brief description of each script and function. For more
detailed usage information run a script or function with the `-h` option.
# Install
Place this repository in your `$PATH`.
Source the `load-functions.sh` file in your shell profile. This will load
the custom bash functions into your shell.
# Commands
## show-help
Prints the help text in the top comment of a script.
## sslinfo
Prints the ssl certificate for the provided URL.
## xcopy and xpaste
The xcopy and xpaste scripts emulate the ctrl+{c,v} behavior in the shell.
## nvim-swap
A script which clears any swap files nvim has made.
## fterm
A script which opens a terminal in a floating window using bspwm.
## virtual-dns
A tool which modifies your `/etc/hosts` file to give you local domains for
quick development.
## fix
Fixes terminal after outputting binary garbage.
## todo
Shows todo notes in source files.
## x
Kills current terminal.
## m
Make shortcut.
## bkground
Sets the desktop background with feh.
## Touchx
Creates a file with execution privileges.
## cgrep
Grep with color argument.
## sx
StartX shortcut.
## urlcode
URL encoding utility.
## onchanges
Runs a command when files change.
## open-pr
Opens a GitHub pull request.
## serve
Local HTTP server using Python 3's `http.server` module.
## snip
Select an area of the screen and take a screen shot.
## bloop
Play bloop noise
## pylab
Start Jupyter Lab without a password.
## mode
Show file mode.
## xrename
Rename X window.
## read-out
Read text out letter by letter.
## edit
Edit file with `$EDITOR`.
## editx
Give file execute permissions and edit with `$EDITOR`.
## md2pdf
Convert markdown to PDF.
## logs
View socklog system logs.
## xtend
Manage displays with xrandr.
## gh-open
Open GitHub repository from terminal.
## git-branches-rm
Remove all branches except the one which is currently checked out.
## emacs-clean
Use the `trash` command to remove emacs auto save files.
These files can be restored with the `trash-restore` command.
## utf8codepoint
Prints the UTF-8 code point for glyph from stdin.
## mvself
Move current working directory.
## mvext
Changes extension of files.
## wgrep
Wait until input matches pattern and exit.
## record-screen-gif
Records the screen as a GIF.
## pagerr
Page standard error.
## kill-window
Kill an X window.
## tabs-to-spaces
Converts tabs in a file to spaces.
## m3u8dl
Downloads a video stream specified by a m3u8 file into an mp4 file.
# Functions
## mcdir
Create and cd into directory.
## gcd
Git clone and cd into directory.