Ensure xdebug is installed on remote and local 🤪.
xdebug.remote_enable=1
#xdebug.remote_autostart=0
#xdebug.remote_connect_back=0| #cloud-config | |
| packages: | |
| - yum-cron | |
| runcmd: | |
| - yum clean all | |
| - sed -ie 's/update_cmd = default/update_cmd = security/' /etc/yum/yum-cron.conf | |
| - sed -ie 's/update_cmd = default/update_cmd = security/' /etc/yum/yum-cron-hourly.conf |
| openssl pkey -in ~/.ssh/id_rsa -pubout -outform DER | openssl md5 -c |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: bitbucket | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Initscript for Atlassian Bitbucket Server | |
| # Description: Automatically start Atlassian Bitbucket Server when the system starts up. |
| const assert = require('assert'); | |
| function offer(x, y, itemsInBasket) { | |
| return Math.ceil((itemsInBasket / x) * y); | |
| } | |
| assert.equal(offer(2, 1, 1), 1); | |
| assert.equal(offer(2, 1, 3), 2); | |
| assert.equal(offer(2, 1, 4), 2); | |
| assert.equal(offer(2, 1, 5), 3); |
| allow_url_fopen="On" | |
| date.timezone="Europe/London" | |
| detect_unicode="Off" | |
| display_errors="On" | |
| display_startup_errors="On" | |
| error_reporting="32767" | |
| html_errors="On" | |
| ignore_repeated_errors="On" | |
| max_execution_time="300" | |
| memory_limit="2G" |
| #!/bin/sh | |
| # https://aws.amazon.com/premiumsupport/knowledge-center/rds-out-of-storage/ | |
| aws rds modify-db-instance --db-instance-identifier meatballs-mysql-rds-prod --allocated-storage 120 --apply-immediately |
| const AWS = require('aws-sdk'); | |
| const s3 = new AWS.S3(); | |
| const mailParser = require('mailparser').simpleParser; | |
| const dateFormat = require('dateformat'); | |
| const path = require('path'); | |
| const config = { | |
| incomingBucket: process.env.INCOMING_BUCKET || 'ldsc-webcam', | |
| incomingPrefix: process.env.INCOMING_PREFIX || 'incoming/', | |
| outgoingBucket: process.env.OUTGOING_BUCKET || 'ldsc-webcam', |
| #!/usr/bin/env bash | |
| for file in *.MOV | |
| do | |
| date=$(date -r $file '+%Y-%m-%d %H.%M.%S') | |
| mv "$file" "${date}.mov" | |
| done |