Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
| [Desktop Entry] | |
| Categories=GNOME;GTK;Network;WebBrowser; | |
| Comment=Browser picker | |
| Exec=$HOME/.bin/browser_chooser %U | |
| GenericName=Web Browser | |
| Icon=firefox | |
| Keywords=Internet;WWW;Browser;Web;Explorer | |
| Name=Browser Chooser | |
| Type=Application | |
| Version=1.0 |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
| #!/bin/bash | |
| # Recommended steps: | |
| # | |
| # bootstrap before entering chroot | |
| # copy this script into INSTALL_DIR | |
| # rootinit after entering chroot | |
| # x (if installing graphics) | |
| # pkgs | |
| # xpkgs (if installing graphics) |
| <?PHP | |
| // Generates a strong password of N length containing at least one lower case letter, | |
| // one uppercase letter, one digit, and one special character. The remaining characters | |
| // in the password are chosen at random from those four sets. | |
| // | |
| // The available characters in each set are user friendly - there are no ambiguous | |
| // characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option, | |
| // makes it much easier for users to manually type or speak their passwords. | |
| // | |
| function generateStrongPassword($length = 9, $availableSets = 'luds'): string |
| #!/bin/sh | |
| SHORTCUT="[Desktop Entry] | |
| Name=Sublime Text 2 | |
| Comment=Edit text files | |
| Exec=sublime | |
| Icon=sublime_text.png | |
| Terminal=false | |
| Type=Application | |
| Encoding=UTF-8 | |
| Categories=Utility;TextEditor;" |