Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| @Configuration | |
| public class ExecuteServiceConfiguration { | |
| @Bean | |
| public ExecutorService executorService() { | |
| return new ThreadPoolExecutor( | |
| 20, | |
| 50, | |
| 60, TimeUnit.SECONDS, | |
| new ArrayBlockingQueue<>(2000), r -> { | |
| Thread thread = new Thread(r); |
| import java.net.NetworkInterface; | |
| import java.security.SecureRandom; | |
| import java.time.Instant; | |
| import java.util.Enumeration; | |
| /** | |
| * Distributed Sequence Generator. | |
| * Inspired by Twitter snowflake: https://github.com/twitter/snowflake/tree/snowflake-2010 | |
| * |
| version: '3' | |
| services: | |
| zookeeper: | |
| image: zookeeper | |
| ports: | |
| - 2181:2181 | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure(2) do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
| # replace old_string with new_string in the path recursively | |
| sed -i '' 's/old_string/new_string/g' $( find /path -name file_name ) |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java8-installer |
| ruby -run -e httpd . -p 5000 |
| # Required for windows: | |
| # Download wget utlity for windows | |
| require 'nokogiri' | |
| require 'open-uri' | |
| # Get a Nokogiri::HTML::Document for the page we’re interested in... | |
| doc = Nokogiri::HTML(open('http://download.orfjackal.net/lets-code/')) |
| URLClassLoader classLoader = null; | |
| try { | |
| // create url class loader to load the servlet class | |
| URL[] urls = new URL[1]; | |
| URLStreamHandler urlStreamHandler = null; | |
| File classPath = new File(Constents.WEB_ROOT); | |
| String repository = (new URL("file", null, classPath.getCanonicalPath() + File.separator)).toString(); |