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
| # https://www.liberiangeek.net/2014/09/install-virtualbox-headless-ubuntu-14-04-server-manage-phpvirtualbox/ | |
| # http://www.olindata.com/blog/2014/07/installing-vagrant-and-virtual-box-ubuntu-1404-lts | |
| # https://www.godaddy.com/garage/tech/config/install-vagrant-ubuntu-14-04/ | |
| # http://superuser.com/questions/845987/how-do-i-upgrade-vagrant-to-last-version-in-ubuntu | |
| sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove | |
| sudo apt-get install build-essential dkms | |
| sudo vi /etc/apt/sources.list.d/virtualbox.list | |
| deb http://download.virtualbox.org/virtualbox/debian trusty contrib | |
| wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - | |
| sudo apt-get update && sudo apt-get install VirtualBox5.0 |
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
| #http://stackoverflow.com/questions/15337409/updating-property-value-in-properties-file-without-deleting-other-values | |
| FileInputStream in = new FileInputStream("First.properties"); | |
| Properties props = new Properties(); | |
| props.load(in); | |
| in.close(); | |
| FileOutputStream out = new FileOutputStream("First.properties"); | |
| props.setProperty("country", "america"); | |
| props.store(out, null); | |
| out.close(); |
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
| # reference : https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-nginx-on-ubuntu-14-04 | |
| cd ~ && apt-get update -y && apt-get install -y wget lsb-release nginx php-fpm rsync vim \ | |
| && debconf-set-selections <<< 'mysql-server mysql-server/root_password password 1234' \ | |
| && debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password 1234' \ | |
| && echo "[client] | |
| user=root | |
| password=1234 | |
| host=localhost" > ~/.my.cnf \ | |
| && apt-get update && apt-get install -y mysql-server && service mysql start \ | |
| && echo "create database wordpress" | mysql -u root \ |
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' | |
| services: | |
| db-mysql-test: | |
| image: mysql | |
| container_name: db-mysql-test | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=1234 | |
| command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci | |
| wordpress: | |
| image: wordpress |
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
| sourceSets { | |
| generated { | |
| java { | |
| srcDirs = ['src/main/generated'] | |
| } | |
| } | |
| } | |
| configurations { | |
| querydslapt |
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
| // apply plugin: 'idea' | |
| sourceSets { | |
| generated.java | |
| main.java.srcDirs += generated.java.srcDirs | |
| } | |
| idea { | |
| module { | |
| sourceDirs += file('src/main/generated') |
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
| #http://superuser.com/questions/665274/how-to-make-ls-color-its-output-by-default-without-setting-up-an-alias | |
| ## Colorize the ls output ## | |
| alias ls='ls --color=auto' | |
| ## Use a long listing format ## | |
| alias ll=ls -la --color=auto | |
| ## Show hidden files ## | |
| alias l.='ls -d .* --color=auto' |
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
| <?xml version="1.0" encoding="ISO-8859-1"?> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one or more | |
| contributor license agreements. See the NOTICE file distributed with | |
| this work for additional information regarding copyright ownership. | |
| The ASF licenses this file to You under the Apache License, Version 2.0 | |
| (the "License"); you may not use this file except in compliance with |
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
| 1. use docker | |
| # ambassador | |
| docker run -d \ | |
| --name ambassador \ | |
| --restart always \ | |
| --volume /var/run/docker.sock:/var/run/docker.sock \ | |
| cpuguy83/docker-grand-ambassador -name jenkins -name gitlab | |
| #jenkins | |
| docker run -d \ |
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
| /* | |
| * This build file was auto generated by running the Gradle 'init' task | |
| * by 'mars' at '2016/4/18 下午 1:27' with Gradle 2.12 | |
| * | |
| * This generated file contains a sample Java project to get you started. | |
| * For more details take a look at the Java Quickstart chapter in the Gradle | |
| * user guide available at https://docs.gradle.org/2.12/userguide/tutorial_java_projects.html | |
| */ | |
| // Apply the java plugin to add support for Java |