I hereby claim:
- I am henhan on github.
- I am henhan (https://keybase.io/henhan) on keybase.
- I have a public key ASAXnzRSeeDfTJ89adHhn2J-Z35OhV0Qv7NmpJoTNSQWCgo
To claim this, I am signing this object:
| import java.util.Calendar; | |
| public class SwedishIdUtils { | |
| public static boolean validateId(String id) { | |
| // Only allow digits, whitespace + and - (+ is sometimes used to indicate age greater than 100 years) | |
| if (id == null || !id.matches("^[\\-\\s\\+\\d]+$")) { | |
| return false; | |
| } | |
| // Remove all non digits |
| 'use strict'; | |
| function isValid(id) { | |
| // Make sure we have a string | |
| id = '' + id; | |
| if (id.match(/^[\-\s+\d]+$/) === null) { | |
| return false; | |
| } | |
| // Remove all non digits | |
| id = id.replace(/\D/g, '') |
| 'use strict'; | |
| function historyEnable(reducer) { | |
| var initObject = { | |
| past: [], | |
| present: reducer(undefined, {}), | |
| future: [] | |
| }; |
I hereby claim:
To claim this, I am signing this object:
Documentation on how to override or extend the default nginx config on Elastic Beanstalk running om Amazon Linux 2. Correct as of 2021-08-01. Also see the general documentation on how to extend linux servers.
All references to placing files refer to putting a file at this location in your application bundle. You should never modify a file directly at your Elastic Beanstalk server by ssh:ing to the server, since such a change will be wiped whenever your servers autoscale or if you rebuild your application completely.
The easiest extension is to add a new location block to the main server block. This can be done by placing a .conf file with a server block in the folder .platform/nginx/conf.d/elasticbeanstalk. Any such file is automatically included in the main server block.