open-index/open-npm huggingface dataset:
npm package: @0x4447/hotpepper
Description: 🌶 A SystemD config generators for NodeJS projects
Author: 0x4447
Latest version: 2.0.0

# 🌶 Hot Pepper

We created Hot Pepper to quickly add a NodeJS server to SystemD by setting up a custom configuration file based on the content of the `package.json` file and the location in which the CLI was executed.

We prefer to use SystemD, because it's built into Debian, takes care of the lifetime of the process, and uses fewer resources than other solutions on today's market. Thus, you get more CPU and RAM for your app. Not to mention that the entire server will be set to Auto Start. This way, all the servers added to SystemD are always ready when you start your server/computer.

In addition, you'll save time because you won't be hand-creating a `.service` for the dozens of micro services within a given project.

# How to install

```
] sudo npm install -g @0x4447/hotpepper
```

# How to use

```
] sudo hotpepper -s .
```

# Where to get help

```
] hotpepper -h
```

# What to Expect

Run the command in the directory that contains your project. If all necessary data is present in the `package.json` file, the tool...

- Generates a `.service` file saved in the correct SystemD directory
- The app forces SystemD to reload the service files
- The app starts your server
- The app tells SystemD to start your server every time the system boots

# Sample of a .service file:

```
[Unit]
Description=example.com
Documentation=https://github.com/user/example.com
After=network.target

[Service]
EnvironmentFile=/home/admin/example.com/.env
Type=simple
User=admin
Group=admin
WorkingDirectory=/home/admin/example.com
ExecStart=/usr/bin/node bin/server
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=example.com
Restart=on-failure
RestartSec=3
KillMode=process
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
```

Once complete, the app lets you know whether the process was successful.

# Where are the logs?

Run this command to view the server logs: `sudo tail -f /var/log/syslog`. Each log entry has the name of the project attached.

# The End

If you enjoyed this project, please consider giving it a 🌟. And check out our [0x4447 GitHub account](https://github.com/0x4447), which contains additional resources you might find useful or interesting.

## Sponsor 🎊

This project is brought to you by 0x4447 LLC, a software company specializing in building custom solutions on top of AWS. Follow this link to learn more: https://0x4447.com. Alternatively, send an email to [hello@0x4447.email](mailto:hello@0x4447.email?Subject=Hello%20From%20Repo&Body=Hi%2C%0A%0AMy%20name%20is%20NAME%2C%20and%20I%27d%20like%20to%20get%20in%20touch%20with%20someone%20at%200x4447.%0A%0AI%27d%20like%20to%20discuss%20the%20following%20topics%3A%0A%0A-%20LIST_OF_TOPICS_TO_DISCUSS%0A%0ASome%20useful%20information%3A%0A%0A-%20My%20full%20name%20is%3A%20FIRST_NAME%20LAST_NAME%0A-%20My%20time%20zone%20is%3A%20TIME_ZONE%0A-%20My%20working%20hours%20are%20from%3A%20TIME%20till%20TIME%0A-%20My%20company%20name%20is%3A%20COMPANY%20NAME%0A-%20My%20company%20website%20is%3A%20https%3A%2F%2F%0A%0ABest%20regards.).
npm package: @0x4d/locationar
Description: Location based Argumented Reality for three.js
Author: 0x4d
Latest version: 1.0.2

# LOCATIONAR

Simple Location based Argumented Reality library, based on the [WebRTC](https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API), [Geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [DeviceOrientation](https://developer.mozilla.org/en-US/docs/Web/API/Detecting_device_orientation) and [AmbientLightSensor](https://developer.mozilla.org/en-US/docs/Web/API/AmbientLightSensor)

## Online Samples:

1. Use Chrome
2. goto the [Compass](https://0b01001101.github.io/locationar/examples/compass.html) example and see if it's working [camera is working, north in the right direction]
3. goto the [Location](https://0b01001101.github.io/locationar/examples/location.html) example and you should see a red cube 10 m in the direction of North
4. If you don't see the cube or want to change the position click "InfoPanel" and then you can press the button GetPosition to set the position of the cube to your current position and offset it with the +10N, +10W,... buttons
   Here you can also see the raw sensor data

## Problems/Limentations

- **missing compass accurcy**[can't find exact numbers, but up to +/- 10° on good devices, on some devices completely unuseable]
- camera fov[different phones have different fov's and if the difference between the camera fov and the set fov is to big, the mapping for non-centered, far away objects will be distorted]
- gps accurcy[can be a problem if the object is nearer than 20 meters]
- to use the light ambient light sensor, you need to set the chrome flag #enable-generic-sensor-extra-classes to enabled

## Documentation and Examples

- [Docs](https://0b01001101.github.io/locationar/docs)
- [Examples (Source)](https://github.com/0b01001101/locationar)
- [Examples (Live)](https://0b01001101.github.io/locationar/)

## Browser compability

✔️Chrome
❌Samsung Internet[Scaling doesn't work]
❌Firefox [no absolute compass]
❌UC[Source doesn't work]
❌Opera
❔Safari[can't test on apple devices]

## Usage

The lib is small, only 20KB

LOCATIONAR is provided as an npm module:

```
npm i @0x4d/locationar
```

You can also download this repository and import the dist/LOCATIONAR.js file

## Development and Contribution

Please see the [development guide](./DEVELOPMENT.md). If you are interested in contributing, it may be a good starting point to see the list of open issues on our [GitHub issues page](https://github.com/JamesMilnerUK/THREEAR/issues).

## Acknowledgements

- [three.js](https://github.com/mrdoob/three.js/) awesome 3d rendering library
- [THREEAR](https://github.com/JamesMilnerUK/THREEAR) marker based AR libary, with was used as a template for this project