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
echo " ========== Install Java 8 ========== " | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections | |
sudo apt-get -f install -y oracle-java8-installer | |
echo 'JAVA_HOME="/usr/lib/jvm/java-8-oracle"' >> ~/.bash_profile | |
echo 'JAVA_HOME="/usr/lib/jvm/java-8-oracle"' >> ~/.bash | |
echo " ========== Install MYSQL 5.5 ========== " | |
export DEBIAN_FRONTEND=noninteractive |
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
echo 'UPDATE YUM' | |
yum update -y | |
yum upgrade -y | |
yum install -y wget | |
echo 'DISABLE FIREWALL' | |
service iptables stop | |
chkconfig iptables off | |
echo 'INSTALL JAVA' |
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
select MAX(Salary) from Employee WHERE Salary NOT IN (select MAX(Salary) from Employee); |
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
public class User implements java.io.Serializable{ | |
public String username; | |
public String email; | |
public String getUsername() { | |
return username; | |
} | |
public void setUsername(String username) { |
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 lombok.Getter; | |
import lombok.Setter; | |
public class User implements java.io.Serializable{ | |
@Setter @Getter | |
public String username; | |
@Setter @Getter | |
public String email; |
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
------------------ CREATE SAMPLE DATABASE ------------------ | |
CREATE TABLE depts( | |
dept_id INT PRIMARY KEY, | |
dept_name VARCHAR(50) NOT NULL | |
); | |
CREATE TABLE Employees( | |
employee_id INT PRIMARY KEY, | |
dept_id INT NOT NULL, |
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
FROM ruby:2.4.1-alpine3.6 | |
RUN apk add --update build-base libffi-dev libxml2-dev libxslt-dev postgresql-dev nodejs tzdata bash | |
ENV RAILS_ENV=production \ | |
APP_HOME=/app \ | |
ENV BUNDLE_PATH /bundle | |
RUN mkdir -p $APP_HOME |
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
FROM ruby:2.4.1-alpine3.6 | |
RUN apk add --update build-base libffi-dev libxml2-dev libxslt-dev postgresql-dev nodejs tzdata bash | |
ENV RAILS_ENV=production \ | |
APP_HOME=/app | |
ENV BUNDLE_PATH /box | |
RUN mkdir -p $APP_HOME |
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
curl -X POST -H "Content-Type: multipart/form-data" -F cloud_storages[]["bookmark_data"]=@arch_screenshot.png -F cloud_storages[]["real_filename"]=test_1 -F cloud_storages[]["ext"]=jpg -F cloud_storages[]["bookmark_data"]=@arch_screenshot.png -F cloud_storages[]["real_filename"]=test_2 -F cloud_storages[]["ext"]=png localhost:3000/api/v2/cloud_storages?keyapi=03da0b83c3dab8e2a48d28d1944b08dd |
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
cd /var/lib/jenkins/workspace/rails_ci_1 | |
ruby -v | |
gem install bundler | |
bundle install |
OlderNewer