Skip to content

Instantly share code, notes, and snippets.

@yefim
yefim / Dockerrun.aws.json
Last active April 7, 2023 16:11
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "443"
}
@adrianratnapala
adrianratnapala / automon.sh
Created October 28, 2011 20:56
Automatic multi-monitor config via xrandr.
#!/bin/sh
# automon.sh -- automatically configures multiple monitors.
#
# I use this script on Arch Linux. This handles my personal monitor setup more
# correctly and robustly than either Ubuntu or Windows 7, however it is only
# designed to work on my laptop.
#
# On that laptop it always calls "xrandr" using the exactly the same arguments.
# The --auto option in xrandr is clever enough to do the rest. One day this
# script might become more flexible.