run-control.sh is a script to set up your shell with productive environment settings
Ideally any shell should be supported. bash and zsh shells are tested though. Some commands are supported only if the corresponding packages are available.
Download the script:
curl --remote-name https://raw.githubusercontent.com/gunasekar/shell/master/run-control.sh
or
wget https://raw.githubusercontent.com/gunasekar/shell/master/run-control.sh
Review the script (avoid running scripts you haven't read!):
less run-control.sh
Apply the downloaded run-controls by appending the following line in your .bashrc or .zshrc:
source run-control.sh
Commands and aliases which helps increase your productivity,
uts
prints the unix time stampload-bash
,load-zsh
loads the .bashrc and .zshrc correspondinglytotp
prints the totp provided $totp_secrets variable is set in the running environment. Sample secretstotp_secrets=( "GitHub:ABCDE01234" "BitBucket:ABCDE01234" )
test-SSH-github
,test-SSH-bitbucket
,test-SSH-gitlab
to test the connection with the SCM servicesgenerate-ssh-key
,get-ssh-pubkey
andget-gpg-pubkey
helps in handling the SSH and GPG related actionsshow-aws-cred
prints your AWS access secretsstart-mysql
andstart-redis
starts the corresponding services under brew if not runninggo-build-linux
builds your go project for linux environment (useful when working in mac)get-open-ports
show the open ports from all IPs in the local subnetdocker-stop-all
,docker-start-all
,docker-rm-all-containers
,docker-rm-all-images
,docker-ips
helps in handling docker objectsenable-ubuntu-partners-repo
enables the ubuntu partners repo for apt package managementshoutcast
lists all the stations based on the query value and plays the selected station iddl-audio
,dl-video
, downloads the audio/video in highest available quality in mp3 format using youtube-dl for the provided urlplay
plays the media files from the current directory using mplayer in a shuffled mannernotify-after <seconds>
notifies you after given number of seconds andnotify-on-completion <pid>
notifies upon the completion of given PIDsearch-albums
anddl-albums
downloads 320Kbps songs from starfile.info for the given list of Movie IDs. Search for any movie name and get the movie id and pass it to download commandsstream-yt-720
,stream-yt-360
,stream-fb-hd
,stream-fb-sd
streams the youtube and facebook videos
Plugin repository for BitBar https://getbitbar.com,
- totp.20s.sh - Generates totp tokens every 20s. Allows to copy values to clipboard upon mouse click from BitBar Menu. Change the file name to customise the refresh rate.
- play-url.1h.sh - Dropdown options to play the streaming link playable by youtube-dl from the clipboard. Also lists the youtube playlists from the given playlist map
Download the script:
curl --remote-name https://raw.githubusercontent.com/gunasekar/shell/master/prepare-mac.sh
shell is free software and may be redistributed under the terms specified in the LICENSE file.