# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
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 | |
jobs: | |
build: | |
working_directory: ~/circleci-demo-ruby-rails | |
docker: | |
- image: circleci/ruby:2.4.1-node | |
environment: | |
RAILS_ENV: test | |
PGHOST: 127.0.0.1 | |
PGUSER: root |
go test -v -failfast -count=1 -race -cover ./... | tee test.log
go run -v ./cmd/api/main.go
To check
reflect.ValueOf(Interface).IsNil()
curl -X POST "http://localhost:5000/api/v1/tokens" -d '{"auth": {"email": "editor", "password": "123"}}' -H "Content-Type: application/json"
-------------------------------------------------------------------------------------------
curl -H "Authorization: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0OTQ3ODQ1NzAsInN1YiI6Mn0.8QlJbibo2nosDSVnlYtcadJ8VFQFiaBzNueLQDDwCmU" http://localhost:5000/api/v1/pages
-------------------------------------------------------------------------------------------
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
// all available commands in makefile | |
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {print $1}' | sort -u | |
sudo su - ec2-user | |
find . -name "*.test.ts" -type f -delete | |
AWS_PROFILE={PROFILE} aws ecs execute-command --cluster cloudos-cluster-sdlc \ | |
--task {TASK_ID} \ | |
--container {CONTAINER_NAME} \ |
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
======= Prolbem ================================================================================================================= | |
I have installed : ruby-2.0.0,postgres-9.2 , now in rails app when I execute: | |
rake db:create , command I get: | |
PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) | |
HINT: Use the same encoding as in the template database, or use template0 as template. | |
: CREATE DATABASE "my_db_name" ENCODING = 'unicode'....... | |
bin/rake:16:in `load' |
mifrill@mifrill-desktop:~/Documents$ ls
comments.xls
mifrill@mifrill-desktop:~/Documents$ ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
mifrill@mifrill-desktop:~/Documents$ gem install roo
Fetching: rubyzip-1.2.1.gem (100%)
Successfully installed rubyzip-1.2.1
Fetching: roo-2.7.1.gem (100%)
Successfully installed roo-2.7.1
git describe --tags --abbrev=0
git tag -a v0.0.10 -m "Release v0.0.10"
git push origin v0.0.10
git log -G'getNextByName' --name-only
git log -1 --pretty=format:"%h - %an, %ar : %s"
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.0.1
sudo docker build -t {image_name} . sudo docker run -i -t -v {project_local_path}:/railgun -p {outPort}:{inside port} {image_name}
sudo docker run -i -t -v ~/Desktop/Ruby/railgun/:/railgun -p 5000:3000 railgun-browser
sudo docker ps
OlderNewer