Giter Site home page Giter Site logo

bash_commands's Introduction

Bash Script Repository

This repository contains a collection of utility scripts written in Bash, designed to automate and simplify several tasks. Here are the scripts included in this repo:

1. commit_generator.sh

This script is used to generate git commits with weighted randomness. It also considers holidays and weekends, with lesser commit activity during summer months. It uses a local git repository to commit text files with timestamps.

Please be aware, this script permanently alters your repository's history. Be sure to backup your repository before running it.

2. deckfinder.sh

This script is designed to find a Steam Deck device on the local network and initiate an SSH connection to it. It uses nmap to scan the local network for a host with the specified name. If it fails to connect, it will rescan the network and try again.

3. django_aliases

This file is not a script, but rather a set of shorthand aliases for common Django management commands. The aliases are designed to be sourced in a bashrc or similar file, and used from the command line. The aliases allow you to specify the Python version to use, and provide shorthands for the runserver, makemigrations, and migrate commands.

Usage

For the bash scripts, make them executable using the chmod command:

chmod +x commit_generator.sh deckfinder.sh

Then, you can run them directly:

./commit_generator.sh
./deckfinder.sh

For the Django aliases, add the following line to your .bashrc or .bash_profile file:

source /path/to/repo/django_aliases

Then, you can use the dj command directly from your terminal:

dj 3.8 r  # This will run 'python3.8 manage.py runserver'
dj 3.8 m1  # This will run 'python3.8 manage.py makemigrations'
dj 3.8 m2  # This will run 'python3.8 manage.py migrate'

Remember to replace /path/to/repo with the actual path to the django_aliases file.

#Contributions

Feel free to contribute to this repository by creating a pull request. Please provide a description of what your script does, and how to use it.

bash_commands's People

Contributors

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