Get boot2docker working with nfs instead of vboxsf.
Tested on:
- Boot2Docker-cli version: v1.6.0
Git commit: 9894ae9
- Boot2Docker-cli version: v1.6.2
Git commit: cb2c3bc
#!/bin/bash | |
# Default Variable Declarations | |
DEFAULT="Default.txt" | |
FILEEXT=".ovpn" | |
CRT=".crt" | |
KEY=".3des.key" | |
CA="ca.crt" | |
TA="ta.key" | |
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
#!/bin/bash | |
echo "Before scan:" | |
dmesg | awk '/scsi/ && /Direct-Access/' | |
for i in $(ls -d /sys/class/scsi_host/*); do echo "- - -" > $i/scan; done | |
echo "After scan:" | |
dmesg | awk '/scsi/ && /Direct-Access/' |
Get boot2docker working with nfs instead of vboxsf.
Tested on:
- Boot2Docker-cli version: v1.6.0
Git commit: 9894ae9
- Boot2Docker-cli version: v1.6.2
Git commit: cb2c3bc
Find GNU grep results quicker with a bit of colour! | |
http://www.arwin.net/tech/bash.php | |
https://linuxaria.com/pills/coloring-grep-to-easier-research | |
Add this to your shell customisations file with your choice of colours: | |
export GREP_OPTIONS='--color=auto' | |
export GREP_COLOR='1;31;44' |
Find all files between a start-date, and an end-date: | |
( touch -t $(date --date='6 months ago' +%Y%m%d"0000") /tmp/start && touch -t $(date --date='5 months ago' +%Y%m%d"0000") /tmp/stop ) && find . -newer /tmp/start \! -newer /tmp/stop -exec ls -l {} \; | less | |
Some Bash variables tricks: | |
$ set quick brown fox jumps | |
$ echo ${*: -1:1} # last argument | |
jumps |
---------- mailtalk.txt ---------- | |
helo myhost | |
mail from: [email protected] | |
rcpt to: [email protected] | |
data | |
FROM: [email protected] | |
TO: [email protected] | |
SUBJECT: This is a Test mail | |
blah blah | |
. |