Skip to content

Instantly share code, notes, and snippets.

Tran Minh Phuong phuongtailtranminh

View GitHub Profile
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="" xmlns:xsi=""
<relativePath/> <!-- lookup parent from repository -->
View logback-spring.xml
<!DOCTYPE configuration>
<appender name="gelf" class="biz.paluch.logging.gelf.logback.GelfLogbackAppender">
View gist:b7a8be59680c13823943643ec3c56351
package com.viettel.integration.hub.echoserver.controller;
import java.util.Base64;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
phuongtailtranminh / Che Build
Last active Jan 15, 2019
Useful Eclipse Che build command
View Che Build
First time build: 40m
Second time build: 6m
docker run -it --rm --name build-che \
-v "$HOME/.m2:/home/user/.m2" \
-v "$PWD":/home/user/che-build \
-w /home/user/che-build \
eclipse/che-dev \
View gist:a8517e3fb11da81e5d9aeeb0c2ff19ba
import 'package:flutter/material.dart';
void main() => runApp(new MaterialApp(
home: new HomePage('Dismissible Example'),
class HomePage extends StatelessWidget {
String title;
final items = new List<String>.generate(10000, (i) => "Item $i");
phuongtailtranminh / latency.txt
Created Mar 10, 2018 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
View latency.txt
Latency Comparison Numbers
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
View Open command window here registry
Copy the following lines to Notepad, and save it with a .REG extension, say cmdhere.reg. Double-click the file to apply the registry settings.
Windows Registry Editor Version 5.00
phuongtailtranminh / KeyCloak and Spring Security Get Custom Claims Info
Created May 17, 2017
KeyCloak and Spring Security Get Custom Claims Info
View KeyCloak and Spring Security Get Custom Claims Info
public String method(KeycloakAuthenticationToken token) {
OidcKeycloakAccount account = token.getAccount();
IDToken idToken = account.getKeycloakSecurityContext().getIdToken();
return idToken.getOtherClaims().get("CUSTOM_FIELD")
View Cloud Drive Service Price Comparation
[Google Drive] - Ref:
100 GB - $1.99 / month
1TB - $9.99 / month
10 TB - $99.99 / month
15 GB - FREE
[DropBox] - Ref:
2TB - $12.50 / month
As much space as you - $20 / month
[OneDrive] - Ref:
View Run VLC from Command Line OSX
alias vlc="/Applications/"
You can’t perform that action at this time.