This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.viettel.integration.hub.echoserver.controller; | |
import java.io.IOException; | |
import java.util.Base64; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.servlet.http.HttpServletRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First time build: 40m | |
Second time build: 6m | |
[BUILD FROM SOURCE USING DOCKER] | |
cd YOUR_CHE_REPOSITORY | |
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Concepts: | |
System Integrity Protection (SIP) | |
"Apple has enabled a new default security oriented featured called System Integrity Protection, often called rootless, | |
in Mac OS from versions 10.11 onward. The rootless feature is aimed at preventing Mac OS X compromise by malicious code, | |
whether intentionally or accidentally, and essentially what SIP does is lock down specific system level locations in the file | |
system while simultaneously preventing certain processes from attaching to system-level processes." | |
- OSXDaily [http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem: http://www.winhelponline.com/blog/cmd-here-windows-10-context-menu-add/ | |
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 | |
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt] | |
@="@shell32.dll,-8506" | |
"Extended"="" | |
"NoWorkingDirectory"="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String method(KeycloakAuthenticationToken token) { | |
OidcKeycloakAccount account = token.getAccount(); | |
IDToken idToken = account.getKeycloakSecurityContext().getIdToken(); | |
return idToken.getOtherClaims().get("CUSTOM_FIELD") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Google Drive] - Ref: https://www.google.com/drive/pricing/ | |
100 GB - $1.99 / month | |
1TB - $9.99 / month | |
10 TB - $99.99 / month | |
15 GB - FREE | |
[DropBox] - Ref: https://www.dropbox.com/business/pricing | |
2TB - $12.50 / month | |
As much space as you - $20 / month | |
4GB - FREE | |
[OneDrive] - Ref: https://onedrive.live.com/about/en-US/plans/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias vlc="/Applications/VLC.app/Contents/MacOS/VLC" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The issues: MPC-HC is hang when playing mp4 files on Windows 10 Creator | |
Quick-fix: Go to Options (O) -> Playback -> Output -> Change 'Directshow Video' to 'Video Mixing Renderer 9 (renderless)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Basic | |
@Column(name = "created_date", nullable = true) | |
@Type(type="org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime") | |
public DateTime getCreatedDate() { | |
return createdDate; | |
} | |
public void setCreatedDate(DateTime createdDate) { | |
this.createdDate = createdDate; | |
} |