sudo apt-get install figletsudo touch /etc/update-motd.d/10-my-bannersudo chmod +x /etc/update-motd.d/10-my-banner
10-my-banner.sh:
#!/bin/sh| provider "aws" { | |
| version = "~> 2.0" | |
| region = "eu-west-2" | |
| } | |
| # Providing a reference to our default VPC | |
| resource "aws_default_vpc" "default_vpc" { | |
| } | |
| # Providing a reference to our default subnets |
| ############################################## | |
| # Add this to your .zshrc | |
| # | |
| # And then: | |
| # $ docker ps | |
| # => find your container ID or name and | |
| # $ docker-ssh <containerID or containerName> | |
| # | |
| ############################################## |
| import React from 'react'; | |
| import { shallow } from 'enzyme'; | |
| const Item = text => <p>Item {text}</p>; | |
| const Composition = ({ showB }) => ( | |
| <p> | |
| <Item text="A" /> | |
| {showB && <Item text="B" />} | |
| </p>); |
| <?php | |
| /** | |
| * Laravel Passport - Customize Token response. | |
| * | |
| * @author Messi89 OVERGEN <@messi89minou> | |
| * @link https://github.com/messi89 | |
| */ | |
| namespace App\Http\Controllers\Api; | |
| use App\Models\User; |
| [ | |
| { | |
| "date": "Mon Jan 23 13:03:00 2017 -0800", | |
| "message": "Recommended by Django https://docs.djangoproject.com/en/1.10/ref/databases/#setting-sql-mode", | |
| "title": "SET sql_mode='STRICT_TRANS_TABLES';", | |
| "hash": "a395f401c9a6d3e8602b80ecc729d736da871f46", | |
| "author": "Simon Willison <simonw@example.com>" | |
| }, | |
| { | |
| "date": "Mon Jan 23 11:37:38 2017 -0800", |
After installing Docker, follow three steps:
Step 1:
Run: docker network create mynet
Step 2:
Run: docker run --name sonar-postgres -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -d -p 5432:5432 --net mynet postgres
Step 3:
Run: docker run --name sonarqube -p 9000:9000 -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD=sonar -e SONARQUBE_JDBC_URL=jdbc:postgresql://sonar-postgres:5432/sonar -d --net mynet sonarqube:5.6
| # wp-secure.conf | |
| # | |
| # | |
| # This file includes common security considerations for wordpress using nginx. | |
| # | |
| # The goal is to block actions which are usually dangerous to wordpress. | |
| # Additionally, we block direct access to PHP files and folders which should not | |
| # be accessed directly from a browser. | |
| # | |
| # Also have included exceptions for plugins that are known to require this access. |
| #!/bin/bash | |
| # See https://github.com/docker-library/mongo/pull/63 | |
| docker run --rm --volumes-from my-mongo-server mongo unlink "/data/db/mongod.lock" | |
| docker run --rm --volumes-from my-mongo-server mongo --repair |
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |