Month: April 2018
-
Evasive Errors
Very Evasive Proxy Error from Nginx and Apache when uploading files that take more than 1 second to upload. However, the problem was not with Proxy Servers, nor the backend application server. The problem came from the router. TL;DR Proxy Error from Nginx, and Apache on large uploads Large file upload breaks; Large file uploads […]
-
Clean up that full ubuntu /boot drive
Without any kind of monitoring or alerting enabled, you may run into your /boot drive becoming full, and resulting in errors such as:
-
YouTube cast surround sound
Apparently the default YouTube app does not cast surround sound. However, YT Music app does. * Cast To Device: Vizio SmartCast * Cast From Device: Samsung S8
-
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 process.
-
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
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
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’] } } )
-
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 folder. chmod 755 run.sh ./run.sh Clone ADF project from github: git clone https://github.com/Alfresco/alfresco-ng2-components Navigate into the project’s demo-shell sub folder: cd alfresco-ng2-components/demo-shell […]