One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
-server | |
-Xms2048m | |
-Xmx2048m | |
-XX:NewSize=512m | |
-XX:MaxNewSize=512m | |
-XX:PermSize=512m | |
-XX:MaxPermSize=512m | |
-XX:+UseParNewGC | |
-XX:ParallelGCThreads=4 | |
-XX:MaxTenuringThreshold=1 |
@Autowired | |
RestTemplate restTemplate; | |
@Bean | |
public RestTemplate restTemplate() { | |
return new RestTemplate(clientHttpRequestFactory()); | |
} | |
private ClientHttpRequestFactory clientHttpRequestFactory() { |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.databind.DeserializationFeature; | |
import com.fasterxml.jackson.databind.JavaType; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.type.TypeFactory; | |
import java.io.IOException; | |
import java.util.List; | |
/** |
build app: | |
image: node:6 | |
stage: build | |
artifacts: | |
paths: | |
- public | |
script: | |
- npm install | |
- npm run build | |
# Your next stage won't have access to these files again, so copy it to a public directory |
success=false | |
if [ "$(date +'%d')" = "12" ]; then | |
# Intellij | |
ijKeyPath=$HOME/.IntelliJIdea*/config/eval/*.key | |
ijConfigPath=$HOME/.IntelliJIdea*/config/options/other.xml | |
if test -f "$ijKeyPath"; then | |
echo "Resetting Intellij" | |
rm $ijKeyPath | |
rm $ijConfigPath |
# linux | |
rm -rf ~/.config/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/.config/JetBrains/IntelliJIdea*/options/other.xml ~/.java/.userPrefs/jetbrains/idea | |
# mac os | |
rm ~/Library/Application\ Support/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/Library/Application\ Support/JetBrains/IntelliJIdea*/options/other.xml ~/Library/Preferences/jetbrains.idea.* ~/Library/Preferences/com.apple.java.util.prefs.plist |
================================================================================ | |
find ~/.IntelliJIdea* -type d -exec touch -t $(date +"%Y%m%d%H%M") {} ; | |
#!/bin/bash | |
echo "removeing evaluation key" | |
rm -rf ~/.IntelliJIdea*/config/eval | |
rm -rf ~/.GoLand*/config/eval | |
rm -rf ~/.WebStorm*/config/eval |
#!/bin/bash | |
# Intellij 2020.* | |
echo "Removing evaluation key for Intellij" | |
rm $HOME/.config/JetBrains/IntelliJIdea*/eval/*.key | |
rm $HOME/.config/JetBrains/IntelliJIdea*/options/other.xml | |
# PHPStorm 2020.* | |
echo "Removing evaluation key for PHPStorm" | |
rm $HOME/.config/JetBrains/PhpStorm*/eval/*.key |