mysql -u root -p
# enter password
mysql > SET GLOBAL max_allowed_packet=1073741824;
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
private void captureScreen() { | |
View content = findViewById(R.id.content_frame); | |
Bitmap bitmap = content.getDrawingCache(); | |
File folder = new File(Environment.getExternalStorageDirectory()+ "/Device Info"); | |
boolean success = true; | |
if (!folder.exists()) { | |
success = folder.mkdir(); | |
} | |
if (success) { |
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
<style> | |
#accordion { | |
height:500px; | |
} | |
.ace_editor { | |
width:600px; | |
height:300px; | |
} | |
</style> |
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
import org.springframework.context.MessageSource; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.support.ReloadableResourceBundleMessageSource; | |
@Configuration | |
public class MessageConfig { | |
@Bean | |
public MessageSource messageSource() { |
A list of some commonly used Git commands to get you going with Git.
Table of Content
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
#!/bin/bash | |
# Move to master branch. Delete all other local branches except master, develop, release/* or project/* | |
# Move to master branch | |
git checkout master | |
# Collect branches | |
branches=() | |
eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/heads/)" |