https://github.com/mathix420/42-utilities
Simple tools to help your daily coding routine!
https://github.com/mathix420/42-utilities
42 42-school 42born2code 42school born2code mf-gen proto-list
Last synced: 7 months ago
JSON representation
Simple tools to help your daily coding routine!
- Host: GitHub
- URL: https://github.com/mathix420/42-utilities
- Owner: mathix420
- License: mit
- Created: 2018-11-10T17:47:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-06T17:18:04.000Z (over 6 years ago)
- Last Synced: 2025-01-13T23:33:51.440Z (9 months ago)
- Topics: 42, 42-school, 42born2code, 42school, born2code, mf-gen, proto-list
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 42-utilities
Simple tools to help your daily coding routine!
### Installation
```bash
git clone https://github.com/mathix420/42-utilities.git ~/42-utilities && sh ~/42-utilities/install.sh
```## mf-gen
Generates Makefiles for you.
### Alias
An alias is added to your `shell rc` to use **mf-gen** anywhere:
> alias mf-gen="python3 ~/42-utilities/mf-gen.py"### Usage
Run `mf-gen` in your project folder.
Or if you prefer the arguments version:
```bash
mf-gen
```## proto-list
Copies all function prototypes (with how many tabs you want) to your clipboard, so you can easily add them to your header file.
### Alias
An alias is added to your `shell rc` to use **proto-list** anywhere:
> alias proto-list="sh ~/42-utilities/proto-list.sh"### Usage
Use the `display` option to show the prototypes copied to your clipboard.
```bash
proto-list [display]
```## Auto-updater
Updates **42-utilities** when necessary. Checks for updates only once a day. Takes about one second to do so.
### Alias
This command is prepended to all aliases:
> /bin/sh ~/42-utilities/update.sh### How does it work?
- Checks if the date stored in `/tmp/.42_utilities_date` is different from the current date.
- If so, checks if `https://raw.githubusercontent.com/mathix420/42-utilities/master/sum` is different from `~/42-utilities/sum`.
- Again, if so, performs a `git pull` in the **42-utilities** directory.## Contributors
* agissing: [GitHub](https://github.com/mathix420)
* flklein: [GitHub](https://github.com/floklein)