{"id":13459940,"url":"https://github.com/alexandregv/42toolbox","last_synced_at":"2026-03-01T19:18:27.711Z","repository":{"id":36304449,"uuid":"223238839","full_name":"alexandregv/42toolbox","owner":"alexandregv","description":"A bunch of macOS scripts to make your life better at @42School","archived":false,"fork":false,"pushed_at":"2024-05-10T21:28:12.000Z","size":44,"stargazers_count":283,"open_issues_count":2,"forks_count":29,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-01T09:42:53.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexandregv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-21T18:32:05.000Z","updated_at":"2024-06-13T00:43:30.000Z","dependencies_parsed_at":"2023-02-11T10:40:10.266Z","dependency_job_id":"214cfea7-3d02-4490-92dc-d49b4e463f15","html_url":"https://github.com/alexandregv/42toolbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandregv%2F42toolbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandregv%2F42toolbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandregv%2F42toolbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandregv%2F42toolbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexandregv","download_url":"https://codeload.github.com/alexandregv/42toolbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221995793,"owners_count":16913562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T10:00:32.664Z","updated_at":"2026-03-01T19:18:27.670Z","avatar_url":"https://github.com/alexandregv.png","language":"Shell","funding_links":[],"categories":["WELCOME","Vie sur le campus","Tools","Shell","Table des matières"],"sub_categories":["**Others**","Liens externes","Scripts"],"readme":"# 42toolbox\nA bunch of scripts to make your life better at @42School.\n\n⚠️ This has been devloped when 42Paris was still using macOS, which is not the case anymore. Some scripts will only work on macOS and not Linux, or will be useless on Linux.  \nFor example, `init_docker.sh` is useless on Linux because it's configured by default and `free_space.sh` uses macOS directories.\n\n## Installation\nJust `git clone https://github.com/alexandregv/42toolbox.git ~/42toolbox`.  \n\nIf you use [shell_utils.sh](#shell_utils), you probably want to source it inside your .zshrc/.bashrc/etc:  \n`echo \"source ~/42toolbox/shell_utils.sh\" \u003e\u003e ~/.zshrc`.  \n\nYou can also use the scripts of your choice without cloning the repository. You will have to edit `toolbox_path` in [init_session.sh](https://github.com/alexandregv/42toolbox/blob/master/init_session.sh#L22) if you use it.\n\n### init_session\nA script to init your session at 42 when you log in. It can:\n- Connect your bluetooth device\n- Init SSH (see [init_ssh](#init_ssh))\n- Init docker (see [init_docker](#init_docker))\n- Check if all your apps are installed and start them\n- Update brew and its formulas\n- Clean your disk (also check [free_space](#free_space))\n- Start [RP42](https://github.com/alexandregv/RP42)\n- Open System Preferences (You could need it to edit your keyboard/screen settings, etc)\n\n### init_ssh\nA script to create an SSH key pair if needed, then see how to add it on the intra.  \nIt can copy the public key to your clipboard if supported (macOS or Linux with xsel/xclip) and open the intra settings page automatically.\n\n### init_docker\nA script to init Docker for Mac at 42.  \nIt checks if Docker for Mac is properly installed and makes symlinks to the goinfre to not fill your session disk.\n\n### free_space\nA script to free space on your session disk.  \nIt will show you a summary of your disk, what files take space, and delete them if you ask to.\n\n### shell_utils\nThis one is a script you should source in your .zshrc/.bashrc/etc.  \nIt creates nice aliases and functions:\n- valgrind_macos : a function to protect valgrind and fsanitize\n- valgrind_docker_{make,custom} : two functions to run valgrind (and your program) inside docker. No more false positive with valgrind on macOS\n\n## Stargazers over time\n[![Stargazers over time](https://starchart.cc/alexandregv/42toolbox.svg?variant=adaptive)](https://starchart.cc/alexandregv/42toolbox)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandregv%2F42toolbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandregv%2F42toolbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandregv%2F42toolbox/lists"}