Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Command-line tool to get the current menu for Ghent University restaurants.
This application was made using Zeus WPI' s Hydra API.
It's recommended to install the tool using pipx
to allow running the
command from anywhere on your PC, without having to invoke it using python3 -m ugent_food
.
$ pipx install ugent-food
If you don't want to use pipx
, it can also be installed using pip
:
$ pip3 install --user ugent-food
Note: Don't install this in a Virtual Environment, as you won't be able to run it from anywhere else.
Next, you can add an alias to your .bashrc
or .zshrc
for your own convenience:
# If you installed using pipx
$ echo 'alias food="ugent-food"' >> ~/.bashrc
$ echo 'alias food="ugent-food"' >> ~/.zshrc
# If you installed using pip
$ echo 'alias food="python3 -m ugent_food"' >> ~/.bashrc
$ echo 'alias food="python3 -m ugent_food"' >> ~/.zshrc
You can now simply use food
to run the tool.
To keep the examples short, they use food
instead of python3 -m ugent_food
to invoke the tool.
To get the menu for a given day, use the menu
command. By default, not passing any arguments will fetch today's
menu:
$ food
For convenience, passing this command is optional. You can immediately pass a day (or subcommand) instead of having to explicitly add this as well. The above line is equivalent to
$ food menu
To fetch the menu for a specific day, an extra argument can be passed. This can either be a weekday, an offset (relative
to today), or a day in DD/MM
-format:
$ food monday
$ food tomorrow
$ food 21/09
The tool has a couple of settings that you can configure using the set
subcommand:
$ food config set skip_weekends true
You can list the current settings with config ls
:
$ food config ls
Note that boolean
arguments can be supplied as any of [true, false, t, f, 1, 0]
.
Name | Description | Type (choices) | Default |
---|---|---|---|
hidden | A list of meal kinds that should be hidden when fetching menus. This can be useful for vegetarians and vegans who don't care about the meat dishes. | List[String] ("fish", "meat", "soup", "vegan", "vegetarian") | [] |
language | The language used to fetch the menus in. | String ("en" 🇬🇧 , "nl" 🇧🇪/🇳🇱) | "en" |
skip_weekends | Whether to automatically skip weekends when fetching menus without an explicit day argument. This defaults to true because the restaurants aren't usually open during weekends. For example: using the tool on a Saturday will show the menu for the coming Monday. | Boolean | True |
FAQs
Command-line tool to get the current menu for Ghent University restaurants
We found that ugent-food demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.