Skip to content

Instantly share code, notes, and snippets.

View shamal's full-sized avatar

Shamal Karunarathne shamal

View GitHub Profile
@shamal
shamal / bootstrap_efsmount.sh
Last active November 9, 2022 03:12
AWS EC2 Userdata: httpd, mount EFS, write index.html
#!/bin/bash
yum update -y
yum install httpd -y
chkconfig httpd on
sudo yum install -y amazon-efs-utils
sudo mount -t efs YOUR_EFS_ENDPOINT:/ /var/www/html
echo '<html><h1>Hello World!</h1><html>' > /var/www/html/index.html
service httpd start
@shamal
shamal / malaysia_postcode_list.json
Created February 21, 2018 12:15 — forked from zulhfreelancer/malaysia_postcode_list.json
Malaysia Postcode List By State (JSON)
{
"prepared_by": "Zulhilmi Zainudin",
"last_update": "21 June 2016",
"data": [
{
"state": "Selangor",
"codes": [
"40000",
"40100",
ERROR 18238 --- [nio-8443-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'id' cannot be found on object of type 'java.lang.String' - maybe not public?] with root cause
org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'id' cannot be found on object of type 'java.lang.String' - maybe not public?
at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:226) ~[spring-expression-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:94) ~[spring-expression-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.expression.spel.ast.PropertyOrFieldReference.access$000(PropertyOrFieldReference.java:46