Git Product home page Git Product logo

42toolbox's Introduction

42toolbox

A bunch of scripts to make your life better at @42School

Installation

Just git clone https://github.com/alexandregv/42toolbox.git ~/42toolbox.

If you use shell_utils.sh, you probably want to source it inside your .zshrc/.bashrc/etc:
echo "source ~/42toolbox/shell_utils.sh" >> ~/.zshrc.

You can also use the scripts of your choice without cloning the repository. You will have to edit toolbox_path in init_session.sh if you use it.

init_session

A script to init your session at 42 when you log in. It can:

  • Connect your bluetooth device
  • Init SSH (see init_ssh)
  • Init docker (see init_docker)
  • Check if all your apps are installed and start them
  • Update brew and its formulas
  • Clean your disk (also check free_space)
  • Start RP42
  • Open System Preferences (You could need it to edit your keyboard/screen settings, etc)

init_ssh

A script to create an SSH key pair if needed, then see how to add it on the intra.
It can copy the public key to your clipboard if supported (macOS or Linux with xsel/xclip) and open the intra settings page automatically.

init_docker

A script to init Docker for Mac at 42.
It checks if Docker for Mac is properly installed and makes symlinks to the goinfre to not fill your session disk.

free_space

A script to free space on your session disk.
It will show you a summary of your disk, what files take space, and delete them if you ask to.

shell_utils

This one is a script you should source in your .zshrc/.bashrc/etc.
It creates nice aliases and functions:

  • valgrind_macos : a function to protect valgrind and fsanitize
  • valgrind_docker_{make,custom} : two functions to run valgrind (and your program) inside docker. No more false positive with valgrind on macOS

42toolbox's People

Contributors

alexandregv avatar d-r-e avatar nollium avatar scarf005 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.