Git Product home page Git Product logo

safeshell's Introduction

Welcome to My GitHub Profile!

Hello, I'm Simon Hryszko, a passionate DevOps engineer with a love for all things related to cloud infrastructure, microservices, and open-source contributions. I'm excited about technology and always eager to learn and grow in this dynamic field.

๐Ÿ”ญ Currently Working On: Optimizing microservices environments using Kubernetes and Ansible to ensure resilience and scalability.
๐ŸŒฑ Exploring: New ways to streamline development and deployment processes for improved efficiency.
๐Ÿ’ก Goal: To collaborate with like-minded individuals and contribute to exciting projects that make a real impact.

๐Ÿš€ Projects

  • n8n-nodes-wordnik - Contributed to the n8n automation tool by developing a Words API integration node.
  • Infrastructure as Code (IaC) - Crafted a robust IaC blueprint using Ansible for various environments, from Raspberry Pi to VPS.

You can check out my public repositories here. Feel free to explore my code, and if you have any questions or want to collaborate, please reach out. Let's code together and make the tech world a better place! ๐Ÿš€

๐Ÿ’ป Tech Stack

  • DevOps: Kubernetes, AWS, Terraform, Helm, ArgoCD, Docker, Ansible.
  • Frontend: Vue.js 3, Tailwind CSS.
  • Programming Assistance: GitHub Copilot, Chat-GPT, Jira, Gerrit, taskwarrior

๐Ÿ“ซ Let's Connect

Thank you for visiting my GitHub profile!

safeshell's People

Contributors

shirobachi avatar sweep-ai[bot] avatar

Watchers

 avatar

safeshell's Issues

Sweep: in backup_sync greps throw errors when file not found

Details

No response

Checklist
  • src/backup_sync.sh

โ€ข Add a check for the existence of the backup_sync_config file at the beginning of the script. This can be done by adding the following lines of code at the beginning of the script:

if [ ! -f backup_sync_config ]; then
    echo "Error: backup_sync_config file not found."
    exit 1
fi

make new script for backup sync

My idea is to script take as 1st parameter mode (master/slave)
on master mode will add all files what has been changed, commit with generic message, pull & push
slave will only pull force
use for all commands --work-tree and --git-dir flags
in ~/.config read work-tree and git-dir from

Checklist
  • src/backup_sync.sh

โ€ข Add a shebang at the top of the file to specify that the script should be run using bash.
โ€ข Define a function that takes a mode as a parameter. This function will handle the backup synchronization process.
โ€ข Inside the function, use an if statement to check if the mode is "master". If it is, perform the operations for the master mode.
โ€ข Inside the if statement, use git commands to add all changed files, commit with a generic message, and perform a pull and push operation. Use the --work-tree and --git-dir flags for all commands.
โ€ข Outside the if statement, use an else if statement to check if the mode is "slave". If it is, perform the operations for the slave mode.
โ€ข Inside the else if statement, use a git command to perform a forced pull operation. Use the --work-tree and --git-dir flags for this command.
โ€ข Outside the else if statement, use an else statement to handle the case where the mode is neither "master" nor "slave". In this case, print an error message and exit the script.
โ€ข At the bottom of the file, call the function with the first command-line argument as the parameter.

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.