Skip to content

Instantly share code, notes, and snippets.

View captainkovalsky's full-sized avatar
😃
I restored my old github WOW

Viktor Dzundza captainkovalsky

😃
I restored my old github WOW
View GitHub Profile
### Keybase proof
I hereby claim:
* I am captainkovalsky on github.
* I am viktordzundza (https://keybase.io/viktordzundza) on keybase.
* I have a public key ASAGm9kmSMzvB_K1YbVKC0uayRVPHe3NSK7jhWQXfEVDVwo
To claim this, I am signing this object:
@captainkovalsky
captainkovalsky / spring-boot-error trace
Created April 17, 2017 10:45
Spring boot error redirection
This file has been truncated, but you can view the full file.
t-embed-core-8.5.11.jar:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.springframework.web
@captainkovalsky
captainkovalsky / error-stack
Created April 17, 2017 10:43
Spring boot error stack
This file has been truncated, but you can view the full file.
.RELEASE]
na.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar:8.5.11]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OnceP
travis encrypt DOCKER_PASSWORD=<docker-hub password> --add
travis encrypt DOCKER_LOGIN=<docker-hub name> --add
sudo: required
services:
- docker
dist: trusty
language: node_js
node_js:
- '7'
git:
depth: 1
cache:
@captainkovalsky
captainkovalsky / Travis configuration
Created March 26, 2017 17:17
Travis configuration file
sudo: required
services:
- docker
dist: trusty
language: node_js
node_js:
- '7'
git:
depth: 1
cache:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
import { Observable } from '../../../../projects/demo-portal-angular/src/main/storefront-spa-webapp/node_modules/rxjs/Observable';
class CacheApi {
private cachedStream: Observable;
protected cached: boolean = false;
public setCache(stream: Observable<any>) {
this.cachedStream = stream.share();
this.cached = true;
}
var hasPermission = function hasPermission(permission) {
var mockUser = {
role: 'ADMIN'
};
var rolePermissions = {
'ADMIN': ['viewEmail'],
'ADMIN2': ['editEmail']
};