Skip to content

Instantly share code, notes, and snippets.

View ngtuna's full-sized avatar

Tuna ngtuna

View GitHub Profile
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open ofbiz-2017.11.08 TR2DT6r5Sl-T6ivR4FsXjQ 5 1 450786 0 391.6mb 391.6mb
yellow open ofbiz-2017.11.13 2fsWQ7NkRbW5laXqwvvaeQ 5 1 1113388 0 1007.4mb 1007.4mb
yellow open test-ofbiz-2017.11.23 V8XiH8PhQny3GkNUpp9bAQ 5 1 17061811 0 11.3gb 11.3gb
yellow open nginx-2017.11.10 -LYSoW9jTSSUrvBYk8-21g 5 1 260719 0 152.2mb 152.2mb
yellow open ofbiz-2017.11.02 oWNnqASSTgGhexMXsEgKIQ 5 1 438497 0 322.4mb 322.4mb
yellow open ofbiz-2017.11.24 rJVu2hOfSnqkZMzxYYoe7A 5 1 1174561 0 862.5mb 862.5mb
yellow open ofbiz-2017.11.16 8GwvCEd3S-CTuwBUWDMfxA 5 1 915274 0 801.7mb 801.7mb
yellow open ofbiz-2017.11.23 UoY3bAXoS5uZ-zauJfpRiQ 5 1
$ kubectl -n tuna logs -f redis-3369877259-m5v6z
1:C 25 Nov 16:26:39.148 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 25 Nov 16:26:39.148 # Redis version=4.0.2, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 25 Nov 16:26:39.148 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 25 Nov 16:26:39.167 * Running mode=standalone, port=6379.
1:M 25 Nov 16:26:39.167 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 25 Nov 16:26:39.167 # Server initialized
1:M 25 Nov 16:26:39.168 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after
$ kubectl -n tuna logs -f sapa-2294492657-p99g6
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.7.RELEASE)
@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
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 / 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"
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
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 | |
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
$ kubectl -n sapa logs -f sapa-745c4859b4-nnkcc
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.7.RELEASE)