Don't use collections (for large collections) Instead of using GORM collections:
class Library {
String name
static hasMany = [visits: Visit]
# Get DNS server names | |
nm-tool | grep DNS | |
# Add one or more of the above IPs to the docker config: | |
# DOCKER_OPTS="--dns 8.8.8.8 ... --dns <local DNS server IP>" | |
vi /etc/default/docker |
#!/usr/bin/env bash | |
# Run this command first to allow downloading of bootstrap script: | |
# sudo apt-get install curl | |
# curl https://gist.githubusercontent.com/thecodesmith/256c0bca7ad7e88f509a/raw/163665eefb90f986fb47fb4cec0006105577ee69/bootstrap.sh -o bootstrap.sh | |
sudo apt-get update | |
sudo apt-get -y install xsel | |
sudo apt-get -y install git |
Creating a Grails app and calling run-app yields this error: | |
ERROR grails.boot.GrailsApp - Application startup failed | |
java.lang.VerifyError: Bad <init> method call from inside of a branch | |
Exception Details: | |
Location: | |
grails/web/mime/MimeType.<init>(Ljava/lang/String;)V @119: invokespecial | |
Reason: | |
Error exists in the bytecode | |
Bytecode: |
import javax.sql.DataSource | |
import groovy.sql.Sql | |
class BeanImpl { | |
// Setter injection | |
Sql sql | |
// Constructor injection | |
BeanImpl(DataSource dataSource) { |
# Generate new ssh key | |
ssh-keygen -t rsa | |
# Copy public key to remote server | |
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys' |
# Put this in /etc/inputrc | |
set completion-ignore-case on |
[user] | |
name = Brian Stewart | |
email = brian@... | |
[push] | |
default = simple | |
[alias] | |
co = checkout | |
ci = commit |
# Notes: | |
# Port field not required, defaults to 22 | |
# IdentityFile field not required, defaults to ~/.ssh/id_rsa | |
Host github | |
User git | |
HostName github.com | |
IdentityFile ~/.ssh/id_rsa | |
Host laptop |
Download RabbitMQ Server: | |
https://www.rabbitmq.com/download.html | |
Install RabbitMQ Server. The server will start automatically with default settings. | |
Default settings for publishing/consuming: | |
username: 'guest' | |
password: 'guest' |