semvec/pypi-packages huggingface dataset:
dgut-inet-auth 0.3
Log in to DGUT campus internet
Requires Python: >=3.7

# dgut-inet-auth

Log in to Dongguan University of Technologies campus internet.

## Installation

```console
$ pip install -U dgut-inet-auth
```

## Usage

Create a config file with this structure

```
your user id
your password
```

Then run

```console
$ dgut-inet-auth <config file>
```

Return values:

- Exit code `0`, json output: successfully logged in.
- Exit code `0`, no output: already authenticated, skip.
- Exit code `1`: network is unreachable.

You can optionally configure the firewall mark this program uses with a `FWMARK` environment variable to work with policy routing.

## Use with systemd

Create service unit:

```ini
# /etc/systemd/system/dgut-inet-auth.service
[Unit]
After=network.target
Description=DGUT campus internet authentication

[Service]
ExecStart=dgut-inet-auth /path/to/dgut-inet-auth.conf
Type=oneshot
```

Create timer unit:

```ini
# /etc/systemd/system/dgut-inet-auth.timer
[Unit]
Description=Auto authentication for DGUT campus internet

[Timer]
OnCalendar=minutely

[Install]
WantedBy = timers.target
```

Enable systemd timer

```console
# systemctl daemon-reload
# systemctl enable --now dgut-inet-auth.timer
```

## Use with Nix flakes

```nix
{
  inputs.dgut-inet-auth.url = "github:chuangzhu/dgut-inet-auth";
  outputs = { self, nixpkgs, dgut-inet-auth }: {
    # Replace your-host-name to your machine
    nixosConfigurations.your-host-name = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        dgut-inet-auth.nixosModules.dgut-inet-auth
        {
          services.dgut-inet-auth.enable = true;
          # Specify your config file here
          services.dgut-inet-auth.configPath = ./dgut-inet-auth-config-file;
        }
      ];
    };
  };
}
```

- `services.dgut-inet-auth.enable`: enable systemd timer for auto authentication.
- `services.dgut-inet-auth.configPath`: config file location.
- `services.dgut-inet-auth.checkInterval`: `systemd.time(7)` expression for timer interval.
wordgeek 0.0.4
windows命令行查词

## 版本

0.0.4

## 使用方法

1. 将cmd终端添加到任务栏，挪到第一个位置，则可以使用快捷键win + 1 快速打开

   ![](wordgeek/img/1.png)

2. 将wk文件夹的路径添加到Windows的环境变量的Path中，使得全局可使用

   ```shell
   你安装的路径/wk
   ```

3. win + 1 快捷打开cmd，输入wk + [单词] 回车即可显示结果

   ![](wordgeek/img/2.png)

## 支持

- 目前仅支持查单词的释义

## 更新

0.0.3 完成基本功能

0.0.4 开启代理也能正常使用