Skip to content

Instantly share code, notes, and snippets.

Dreampie Dreampie

Block or report user

Report or block Dreampie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View App.vue
<template>
<!--body-->
<div class="bodyer">
<v-loading :show="false"></v-loading>
<!--head-->
<header class="header">
<v-menu :session="session"></v-menu>
</header>
<router-view class="main"></router-view>
<!--foot-->
View gist:d85b8ddd7e978df8802b98680df0baa0
public class HystrixContextFilter extends OncePerRequestFilter {
public HystrixContextFilter() {
}
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {
HystrixRequestContext context = HystrixRequestContext.initializeContext();
//HystrixPlugins.getInstance().registerConcurrencyStrategy(new SubjectService.SessionConcurrencyStrategy());
try {
chain.doFilter(request, response);
@Dreampie
Dreampie / rm_mysql.md
Created Jun 28, 2016 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX
View rm_mysql.md

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
View session timeout
Implement the HandshakeInter as below.
```java
public class HttpSessionIdHandshakeInterceptor implements HandshakeInterceptor {
public boolean beforeHandshake(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler wsHandler,
Map<String, Object> attributes)
throws Exception {
if (request instanceof ServletServerHttpRequest) {
View gradle dependencies
Parallel execution is an incubating feature.
:message-api:message-api-provider:dependencies
------------------------------------------------------------
Project :message-api:message-api-provider
------------------------------------------------------------
archives - Configuration for archive artifacts.
No dependencies
@Dreampie
Dreampie / error
Last active Apr 22, 2016
angular2+webpack build error
View error
npm run build
> angular2-demo@0.0.1 build /Users/Dreampie/Projects/DreampieProjects/angular2-demo
> webpack --config build/webpack.build.config.js --progress --colors
10% 0/1 build modulests-loader: Using typescript@1.8.10 and /Users/Dreampie/Projects/DreampieProjects/angular2-demo/tsconfig.json Hash: 96ae4cbb31fa9aeb69ee
Version: webpack 1.13.0
Child
Hash: 96ae4cbb31fa9aeb69ee
Version: webpack 1.13.0
Time: 3170ms
You can’t perform that action at this time.