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
@Grab(group='com.rabbitmq', module='amqp-client', version='3.3.4') | |
import com.rabbitmq.client.* | |
connectionParams = [ | |
username: 'guest', | |
password: 'guest', | |
virtualHost: '/', | |
requestedHeartbeat: 0 | |
] |
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
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' |
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
# 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 |
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
[user] | |
name = Brian Stewart | |
email = brian@... | |
[push] | |
default = simple | |
[alias] | |
co = checkout | |
ci = commit |
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
# Put this in /etc/inputrc | |
set completion-ignore-case on |
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
# 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' |
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 javax.sql.DataSource | |
import groovy.sql.Sql | |
class BeanImpl { | |
// Setter injection | |
Sql sql | |
// Constructor injection | |
BeanImpl(DataSource dataSource) { |
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
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: |
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
#!/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 |
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
# 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 |
OlderNewer