This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Start the first process | |
| nginx | |
| status=$? | |
| if [ $status -ne 0 ]; then | |
| echo "Failed to start my_first_process: $status" | |
| exit $status | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| #listen 80; | |
| index index.html index.php; | |
| ## Begin - Server Info | |
| root /home/grav/www/domain1; | |
| server_name domain1; | |
| ## End - Server Info | |
| ## Begin - Index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [grav] | |
| user = www-data | |
| group = www-data | |
| listen = /run/php/php7.0-fpm.sock | |
| listen.owner = www-data | |
| listen.group = www-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| MAINTAINER MEENACHISUNDARAM V <[email protected]> | |
| RUN apt-get update -y && \ | |
| apt-get install software-properties-common wget unzip curl ruby-full build-essential zlib1g-dev libz-dev libiconv-hook1 libiconv-hook-dev libcurl4-openssl-dev python-software-properties default-jre default-jdk -y | |
| RUN apt-get install texlive-full -y | |
| RUN add-apt-repository ppa:inkscape.dev/stable -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # change file name containing space to _ | |
| for file in * | |
| do | |
| mv "$file" `echo $file | tr ' ' '_'` | |
| done | |
| # lowerit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| knife cookbook bulk delete '.*' -p -y | |
| knife client list | grep -vE "*validator" | xargs -n 1 knife client delete -y | |
| knife node list | xargs -n 1 knife node delete -y | |
| knife role list | xargs -n 1 knife role delete -y | |
| knife environment list | grep -vE "_default" | xargs -n 1 knife environment delete -y | |
| knife data bag list | xargs -n 1 knife data bag delete -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eux | |
| cd /tmp | |
| wget https://gist.githubusercontent.com/MeenachiSundaram/697b7abacf332e331e7cc152017e601b/raw/1a732b1d934841fb240d84e013b5dc0b0d2af915/docker.sh | |
| chmod +x docker.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eux | |
| sudo apt-get update | |
| sudo apt-get install \ | |
| linux-image-extra-$(uname -r) \ | |
| linux-image-extra-virtual -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| networks: | |
| chef: | |
| driver: bridge | |
| ipam: | |
| driver: default | |
| config: | |
| - subnet: 172.0.101.0/24 | |
| services: | |
| ws: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eux | |
| mkdir /codespace | |
| cd /codespace && https://gist.githubusercontent.com/MeenachiSundaram/4daf6793b812d24aec2cfe86dc947df1/raw/4a78be1a5eae13980ed7e51adbd308302e786339/docker-rhel.sh | |
| cd /codespace && chmod +x docker-rhel.sh |