Skip to content

Instantly share code, notes, and snippets.

View hakobyansen's full-sized avatar

Senik Hakobyan hakobyansen

View GitHub Profile
@ljonesfl
ljonesfl / d-s.sh
Last active February 9, 2020 18:52
Shell into a docker container ./d-s.sh image-name
#!/bin/bash
echo "Looking for $1"
OUT="$(docker ps | awk '{if( $2==container ) print $1}'-v container=$1)"
if [ ${#OUT} -eq 0 ]
then
echo "Unable to locate a container running the image $1"
exit 1
fi
@iworkforthem
iworkforthem / gist:9089b7a20bd0ed99c59d0235e09fd0f7
Created January 24, 2018 02:47
install node.js amazon linux 2
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum -y install nodejs
@hoandang
hoandang / php-docker-ext
Created May 20, 2017 01:12
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/