ubuntu@ip-172-31-37-13:~$ sudo adduser foouser
Adding user `foouser' ...
Adding new group `foouser' (1006) ...
Adding new user `foouser' (1006) with group `foouser' ...
Creating home directory `/home/foouser' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
This file contains 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
## | |
# Example Ansible playbook that uses the PostgreSQL module. | |
# | |
# This installs PostgreSQL on an Ubuntu system, creates a database called | |
# "app" and a user called "app" with password "secret" | |
# with access to the "app" database. | |
# | |
--- | |
- hosts: appBackend | |
become: yes |
This file contains 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
--- | |
- name: install PHP 7, Nginx and PHP-FPM | |
hosts: appBackend | |
become: yes | |
vars: | |
- redis_bind: 127.0.0.1 | |
roles: | |
- bas-ansible-roles-collection.nginx | |
- bas-ansible-roles-collection.php7 |
This file contains 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
<?php | |
/** | |
* Example .phpcs file for Laravel app | |
* | |
* Usage: | |
* - install php-cs-fixer to your project using composer | |
* `composer require friendsofphp/php-cs-fixer --dev` | |
* - create file name `.phpcs` in ROOT directory of your project | |
* and copy contents of this file into it. |
This file contains 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
-- Before running below script make sure you | |
-- are connected to the correct database | |
-- you want to grant readonly access to | |
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; |
This file contains 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
import { ObjectType, Field } from "@nestjs/graphql"; | |
@ObjectType() | |
export class PageInfo { | |
@Field({ nullable: true }) | |
startCursor: string; | |
@Field({ nullable: true }) | |
endCursor: string; |
This file contains 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
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
# We are using chybie/node-aws-cli image which contains npm and aws-cli tools | |
# | |
# Also you need to specify AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in | |
# pipeline environment variables for push to s3 to work | |
# | |
# Pipeline is configured to run only on master branch, but you can configure | |
# additional branches if required | |
# This is the stages / task to perfom in jobs |
This file contains 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
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
# We are using chybie/node-aws-cli image which contains npm and aws-cli tools | |
# | |
# Also you need to specify AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in | |
# pipeline environment variables for push to s3 to work | |
# | |
# Pipeline is configured to run only on master branch, but you can configure | |
# additional branches if required | |
# Node Image for docker on which code will execute |
This file contains 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
# App port. Specifies port for appserver | |
PORT=8000 |