See also: https://github.com/negbie/vaultwarden-rpi.
sudo apt-get update| # Raspberry PI OS config.toml | |
| # This file is used for the initial setup of the system on the first boot, if | |
| # it's s present in the boot partition of the installation. | |
| # | |
| # This file is loaded by firstboot, parsed by init_config and ends up | |
| # as several calls to imager_custom. | |
| # The example below has all current fields. | |
| # | |
| # References: | |
| # - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/firstboot |
| import sys | |
| import openai | |
| openai.api_key = "YOUR API KEY HERE" | |
| topic = str(sys.argv[1]) | |
| iterations = int(sys.argv[2]) | |
| response = openai.ChatCompletion.create( | |
| model="gpt-3.5-turbo-0301", |
See also: https://github.com/negbie/vaultwarden-rpi.
sudo apt-get updateThe Raspberry Pi can be used as a bridged wireless access point within an existing ethernet network. This will extend the network to wireless computers and devices.
If you wish to create a wireless network that could function stand-alone, consider instead setting up a routed access point.
+- RPi -------+
+---+ Bridge |
This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.6 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Other options for PDFSETTINGS:
| ---------------------------------------------------------------------------------------- | |
| -- HTTP Accept-Language header handler -- | |
| -- @originalAuthor: [email protected] -- | |
| -- @originalRepository: https://github.com/fghibellini/nginx-http-accept-lang -- | |
| -- @modifiedBy: [email protected] -- | |
| -- @modifiedBy: [email protected] -- | |
| -- @originalgist: https://gist.github.com/mauron85/47ed1075262d9e020fe2 -- | |
| -- @modifiedgist: https://gist.github.com/martignoni/4af22720842fa07320f4582084c9a872 -- | |
| -- @modifiedgist purpose: fix error in example configuration. -- | |
| -- @license: MIT -- |