Skip to content

Instantly share code, notes, and snippets.

@alex-samborskiy
alex-samborskiy / remove.attribute.js
Last active June 5, 2019 16:05 — forked from organizm/remove.attribute.js
[Remove nested attribute in DynamoDB]#DynamoDB
const docClient = new AWS.DynamoDB.DocumentClient();
const params = {
TableName : "customer",
Key : {
"customerId": "customer_001"
},
UpdateExpression : "REMOVE address.street3",
ReturnValues : "UPDATED_NEW"
};
FROM php:7.0.4-fpm
RUN apt-get update && apt-get install -y libmcrypt-dev \
mysql-client libmagickwand-dev --no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& docker-php-ext-install mcrypt pdo_mysql
@alex-samborskiy
alex-samborskiy / install_lamp_16.sh
Last active April 3, 2020 22:50 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 16.04 - PHP development (php 7.1, MySQL 5.7, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 16.04 Dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding language pack \e[39m"
sudo apt-get install language-pack-en
export LC_ALL=en_GB.UTF-8
@alex-samborskiy
alex-samborskiy / gist:dd8083f55d1ed548f0c79bd4405cf987
Created September 4, 2017 20:11 — forked from molivier/gist:271bba5d67de1583a8e3
Set $GOPATH on Mac OSX : bash_profile
# Edit ~/.bash_profile
export GOPATH=/Users/username/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile