eb init
eb config save my-env-name --cfg my-config-name # save the environment config
eb terminate # terminate the environment
eb create my-new-env-name --cfg my-config-name # Create a new cloned environment with a new name| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
| const convertContent = content => { | |
| const blockMap = content.getBlockMap(); | |
| let newBlockMap = Map(); | |
| blockMap.valueSeq().forEach(block => { | |
| if (block.getType() === 'code') { | |
| const data = block.getData().merge({ language: 'javascript' }); | |
| const newBlock = block.merge({ type: 'code-block', data }); | |
| newBlockMap = newBlockMap.set(block.key, newBlock); | |
| } |
eb init
eb config save my-env-name --cfg my-config-name # save the environment config
eb terminate # terminate the environment
eb create my-new-env-name --cfg my-config-name # Create a new cloned environment with a new name| public class EntityManagerHelper { | |
| private static final EntityManagerFactory emf; | |
| private static final ThreadLocal<EntityManager> threadLocal; | |
| static { | |
| emf = Persistence.createEntityManagerFactory("BookStoreUnit"); | |
| threadLocal = new ThreadLocal<EntityManager>(); | |
| } |
| PROMPT='%{%f%b%k%}$(build_prompt)%{$reset_color%} | |
| ➜ ' |