• Short script to create and attach an EBS Volume in AWS

    Short script to create and attach an EBS Volume in AWS

    Short script for creating and attaching an EBS Volume to an EC2 instance. This is useful in cases where you want to dynamically create your EBS volumes outside of the cloud formation auto provisioning…

  • Get Volume ID of a Volume, if it exists

    Get Volume ID of a Volume, if it exists

    volume_name=”Name of your volume” volume_id=`aws ec2 describe-volumes –filters Name=tag-key,Values=diskuse,Name=tag-value,Values=${volume_name} |jq -r –arg zone “$zone” ‘[.Volumes[] | select( (.State==”available”) and (.AvailabilityZone==$zone))][0] | .VolumeId’`

  • Generate Certificates using openssl One Liner

    Generate Certificates using openssl One Liner

    This is useful for scripting the generation of certificates for web servers. openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \ -subj “/C=${node.ssl.country}/ST=${node.ssl.state}/L=${node.ssl.city}/O=${node.ssl.ou}/CN=${node.ssl.cn}” \ -keyout /etc/ssl/private/node-selfsigned.key -out /etc/ssl/certs/node-selfsigned.crt

  • Set Message Attribute on SQS Message

    Set Message Attribute on SQS Message

    Example on setting message attribute on SQS Message. Subscribers can perform actions based on the attributes. queue.send_message(MessageBody=json.dumps(instance), MessageAttributes={ ‘instance_id’: { ‘DataType’: ‘String’, ‘StringValue’: instance[‘InstanceId’] } } )

  • Monitor an SQS Queue based on your instance id

    Monitor an SQS Queue based on your instance id

    Example of monitoring an SQS queue for messages that an attribute instance_id, which is set to your EC2 instance. The python subscriber can be used to monitor a shared SQS and act upon messages…

  • Alfresco ADF 2.3 the TL;DR version.

    Alfresco ADF 2.3 the TL;DR version.

    Install NPM https://www.npmjs.com/get-npm Start Alfresco Content Services, and Alfresco Process Services. Locally via SDK with default user/pass (admin:admin) #Fill in prompt to generate your project mvn archetype:generate -Dfilter=org.alfresco.maven.archetype: #After Project Generation, navigate into the project…

  • How to convert SVG to PNG on a MAC?

    How to convert SVG to PNG on a MAC?

    This simple command will allow you to generate a PNG of a Font Awesome SVG icon, in the color that you want.   sed -i ” ‘s/path /path fill=”#2E74B5″ /’ fontawesome.svg ; qlmanage -t…

  • Alfresco Default Administrators

    Alfresco Default Administrators

    Issue: Default Administrators identified in Alfresco does not give the user Administrative privileges Troubleshooting: Check that there isn’t any space in your comma delimited list of names. Recommendations: If you are using LDAP sync to synchronize…

  • Overriding Solr Configurations in Alfresco SDK 3.0

    Overriding Solr Configurations in Alfresco SDK 3.0

    This post allows the user to override the Alfresco Solr configurations in the Alfresco SDK 3.0 TL;DR Override Tomcat’s Solr context configuration to point to custom Solr4 config dir. Copy default Solr configurations into…