Skip to content

Instantly share code, notes, and snippets.

View ngtuna's full-sized avatar

Tuna ngtuna

View GitHub Profile
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.7.RELEASE)
2018-01-24 16:48:16.466 INFO 13 --- [ main] com.sapa.SapaApplication : Starting SapaApplication v0.0.1-SNAPSHOT on sapa-77dd47f68d-zs5x8 with PID 13 (/app/sapa-0.0.1-SNAPSHOT-20.jar started by root in /app)
2018-01-24 16:48:16.479 DEBUG 13 --- [ main] com.sapa.SapaApplication : Running with Spring Boot v1.5.7.RELEASE, Spring v4.3.11.RELEASE
$ kubectl -n sapa logs -f sapa-77dd47f68d-dl9rv
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.7.RELEASE)
$ kubectl -n sapa logs -f sapa-745c4859b4-nnkcc
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.7.RELEASE)
org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [vehicle_cnt_type]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:278)
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:244)
at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:521)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:504)
at org.springframework.transaction.interceptor.Tra
select * from public.trip;
trip_id | dept_location | dest_location | request_time | departure_time |
arrive_time | estimated_distance | distance | estimated_price | price | driver_party_id | customer_party_id
| vehicle_id | status_id | last_updated_stamp | created_stamp | vehicle_type
----------------------------------+--------------------------+--------------------------+----------------------------+----------------------------+-----
-----------------------+--------------------+----------+-----------------+----------+----------------------------------+--------------------------------
--+----------------------------------+----------------+--------------------+---------------+--------------
8ab48c87606ff49d01608c8193700017 | 21.03480160,105.81212237 | 21.02252120,105.80989130 | 2017-12-25 07:09:50.314+00 | |
SELECT * FROM user_login;
user_login_id | current_password | otp_secret |
client_token | password_hint | is_system | en
abled | has_logged_out | require_password_change | disabled_date_time | successive_failed_logins | last_updated_stamp | created_
stamp | party_id
---------------+--------------------------------------------------------------+------------------+--------------------------------------------
--------------------------------------------------------------------------------------------------------------+---------------+-----------+---
------+----------------+-------------------------+--------------------+--------------------------+----------------------------+---------------
-------------+----------------------------------
admin | $2a$06$hRP2sieYwSOoZBrhK
@ngtuna
ngtuna / go build -x
Last active December 13, 2017 06:22
root@instance-1:~/kubeapps/src/github.com/kubeapps/kubeapps# go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="darwin"
GOPATH="/root/kubeapps/"
GORACE=""
GOROOT="/usr/local/go"
tuna@instance-1:~/kubeapps/src/github.com/kubeapps/kubeapps$ env CGO_ENABLED=1 CC=o64-clang CXX=o64-clang GOOS=darwin GOARCH=amd64 go build -o kubeapps .
# github.com/kubeapps/kubeapps/vendor/github.com/strickyak/jsonnet_cgo
In file included from desugarer.cpp:19:
vendor/github.com/strickyak/jsonnet_cgo/ast.h:766:29: error: no member named 'forward' in namespace 'std'
vendor/github.com/strickyak/jsonnet_cgo/ast.h:766:37: error: 'Args' does not refer to a value
vendor/github.com/strickyak/jsonnet_cgo/ast.h:764:33: note: declared here
desugarer.cpp:41:35: error: no matching constructor for initialization of 'std::vector<UString>' (aka 'vector<basic_string<char32_t> >')
/home/tuna/kubeapps/src/github.com/tpoechtrager/osxcross/target/bin/../SDK/MacOSX10.11.sdk/usr/include/c++/4.2.1/bits/stl_vector.h:201:7: note: candidate constructor not viable: no known conversion from 'const char32_t [2]' to 'const allocator_type' (aka 'const std::allocator<std::basic_string<char32_t, std::char_traits<char32_t>, std::allocator<
@ngtuna
ngtuna / xgo
Created December 11, 2017 15:22
tuna@instance-1:~/kubeapps/src/github.com/kubeapps/kubeapps$ xgo --targets=darwin/amd64 .
Checking docker installation...
Client:
Version: 17.09.1-ce
API version: 1.32
Go version: go1.8.3
Git commit: 19e2cf6
Built: Thu Dec 7 22:24:16 2017
OS/Arch: linux/amd64
$ kubectl -n tuna logs -f sapa-2294492657-p99g6
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.7.RELEASE)