Never forget to activate that virtualenv or set that environment variable ever again...
-
Install pyenv
brew install pyenv
DND | |
- | |
1 | |
1500 lines | |
(C) | |
1977 | |
- | |
2014 Richard Garriott | |
79/02/28. 19.27.34. |
#!/bin/bash | |
# --------------------------------------------------------- | |
# Customizable Settings | |
# --------------------------------------------------------- | |
MOUNT_POINT="${CASE_SAFE_MOUNT_POINT:-${HOME}/casesafe}" | |
VOLUME_PATH="${CASE_SAFE_VOLUME_PATH:-${HOME}/.casesafe.dmg.sparsebundle}" | |
VOLUME_NAME="${CASE_SAFE_VOLUME_NAME:-casesafe}" | |
VOLUME_SIZE="${CASE_SAFE_VOLUME_SIZE:-60g}" |
Due to the OSX limitations in ports below 1024, in order to use them without running as root the virtualbox headless you can do the following workaround, (remember the command ipfw is deprecated on El Capitan)
In the Vagrant file use ports over 1024, for instance change 80 and 443 to 8080 and 8043.
# Apache
config.vm.network "forwarded_port", guest: 80, host: 8080
1 Viewer | |
2 Recruit | |
4 Pilgrim | |
8 Apostle | |
16 Zealot | |
32 Trainee | |
64 Apprentice | |
80 Craftsman | |
96 Merchant | |
112 Clerk |
#!/bin/bash | |
# You need: curl, jq, and ipcalc to run this. | |
# You should already have cut, sort and uniq if you're on OS X or Linux. | |
RANGES=$(curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq .prefixes | jq '.[] | select(.region=="us-east-1")' | jq 'select(.service=="EC2")' | jq .ip_prefix | cut -d '"' -f 2 | sort | uniq) | |
for range in $RANGES | |
do | |
MIN=$(ipcalc -bn $range | grep "HostMin" | cut -d ':' -f 2) |
2016-10-04 18:31:34 +0000 [trace]: plugin/buffer.rb:165:add_metadata: adding metadata instance=9080200 metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=1475605380, tag=nil, variables=nil> | |
2016-10-04 18:31:34 +0000 [trace]: plugin/buffer.rb:188:write: writing events into buffer instance=9080200 metadata_size=1 | |
2016-10-04 18:31:34 +0000 [trace]: plugin/buffer.rb:165:add_metadata: adding metadata instance=9080200 metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=1475605380, tag=nil, variables=nil> | |
2016-10-04 18:31:34 +0000 [trace]: plugin/buffer.rb:188:write: writing events into buffer instance=9080200 metadata_size=1 | |
2016-10-04 18:31:34 +0000 [trace]: plugin/buffer.rb:165:add_metadata: adding metadata instance=9080200 metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=1475604360, tag=nil, variables=nil> | |
2016-10-04 18:31:34 +0000 [trace]: plugin/buffer.rb:165:add_metadata: adding metadata instance=9080200 metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=1475604360, tag=nil, v |
### Keybase proof | |
I hereby claim: | |
* I am shawnbutts on github. | |
* I am shawnbutts (https://keybase.io/shawnbutts) on keybase. | |
* I have a public key ASDHWHAHABRNm_6TytWGh2d_6FlZFV_zk8EbqqKfgZga7Ao | |
To claim this, I am signing this object: |
#!/bin/bash | |
# A quick & dirty backup script for Cassandra running inside Docker. | |
# Assumes /var/lib/cassandra is mounted in the container as /var/lib/cassandra because | |
# docker inspect {{ .Volumes }} is not shell-friendly. (doable, but meh) | |
# Also assumes Cassandra was started with 'docker run --name cassandra'. | |
export PATH=$PATH:/home/atobey/bin:/usr/local/bin | |
set -e |