sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="/home/mahbod/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
| public class Animal { | |
| private int code; | |
| private String name; | |
| private int age; | |
| private Animal(AnimalBuilder builder) { | |
| this.code = builder.code; | |
| this.name = builder.name; | |
| this.age = builder.age; |
| # Operating System Files | |
| *.DS_Store | |
| Thumbs.db | |
| *~ | |
| .#* | |
| #* | |
| *# | |
| # Build Files # |
| // create file: | |
| sudo vim /usr/share/applications/intellij.desktop | |
| // add the following | |
| [Desktop Entry] | |
| Version=13.0 | |
| Type=Application | |
| Terminal=false | |
| Icon[en_US]=/home/rob/.intellij-13/bin/idea.png | |
| Name[en_US]=IntelliJ |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| import org.springframework.context.ConfigurableApplicationContext; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.stereotype.Component; | |
| import javax.annotation.PostConstruct; | |
| import java.time.LocalDateTime; |
| package thread; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| class Producer extends Thread { | |
| private final List<Integer> list; | |
| Producer(List<Integer> list) { |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> | |
| </head> | |
| <body> | |
| <form> | |
| <input id="textMessage" type="text"> | |
| <input onclick="sendMessage();" value="send message" type="button"> | |
| </form> |
| [ | |
| {riak_kv, [ | |
| {add_paths, ["/usr/lib/riak-cs/lib/riak_cs-2.1.0/ebin"]}, | |
| {storage_backend, riak_cs_kv_multi_backend}, | |
| {multi_backend_prefix_list, [{<<"0b:">>, be_blocks}]}, | |
| {multi_backend_default, be_default}, | |
| {multi_backend, [ | |
| {be_default, riak_kv_eleveldb_backend, [ | |
| {total_leveldb_mem_percent, 30}, | |
| {data_root, "/var/lib/riak/leveldb"} |
| log4j.rootLogger=INFO, stdout | |
| # Direct log messages to stdout | |
| log4j.appender.stdout=org.apache.log4j.ConsoleAppender | |
| log4j.appender.stdout.Target=System.out | |
| log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | |
| #log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | |
| log4j.appender.stdout.layout.ConversionPattern=[%-5p] :: %d {%c} - (%F:%L) - %m%n | |
| ############################################# |