If you run a command like this from host1
:
$ ssh -N user@host2 -R 12201:localhost:22 \
-o ServerAliveInterval=10 -o ServerAliveCountMax=2
you can then, from host2
, run:
$ ssh -p 12201 user@localhost
to connect back to host1
.
If you run a command like this from host1
:
$ ssh -N user@host2 -R 12201:localhost:22 \
-o ServerAliveInterval=10 -o ServerAliveCountMax=2
you can then, from host2
, run:
$ ssh -p 12201 user@localhost
to connect back to host1
.
Here is an example shared configuration for knife. You can drop this off in your chef-repo/.chef/ directory, and multiple developers can use the same knife configuration to interact with more than one Chef server, or the Opscode platform.
By using Bash functions and environment variables we can change the chef server, which knife is configured to use, on the fly.
NOTE: knife will probably ignore your ~/.chef/knife.rb once you begin using a shared knife.rb in your chef-repo directory.
Preparation
PayPal blocks copy/paste actions in their "change password" form, | |
citing some irrelevant security issues as the reason. That's a | |
load of crap, and they know it -- disabling copy/paste makes it a | |
lot harder to use a decent password generator and a lot easier to | |
screw up your pwd when retyping, especially if it's a long one | |
(as it should be!). | |
So, here's the quick'n'dirty way to use an externally generated | |
password in your PayPal account: |
import os | |
import os.path | |
import sys | |
from graphite.render.hashing import ConsistentHashRing | |
instances = [] | |
unwelcome_instances = [] | |
for arg in sys.argv[1:]: | |
unwelcome = False |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
<table width="100%" cellspacing="1" cellpadding="0" border="1"> | |
<thead> | |
<th class="qty">Qty.</th> | |
<th class="image">Image</th> | |
<th class="product">Product Description</th> | |
<th class="unitPrice">Unit Price</th> | |
<th class="savings">Savings </th> | |
<th class="totalPrice">Total Price</th> | |
</thead> | |
#!/bin/bash | |
# Check out the blog post at: | |
# | |
# http://www.philipotoole.com/influxdb-and-grafana-howto | |
# | |
# for full details on how to use this script. | |
AWS_EC2_HOSTNAME_URL=http://169.254.169.254/latest/meta-data/public-hostname | |
INFLUXDB_DATABASE=test1 |
Find it here: https://github.com/bitemyapp/learnhaskell
# knife cheat | |
## Search Examples | |
knife search "name:ip*" | |
knife search "platform:ubuntu*" | |
knife search "platform:*" -a macaddress | |
knife search "platform:ubuntu*" -a uptime | |
knife search "platform:ubuntu*" -a virtualization.system | |
knife search "platform:ubuntu*" -a network.default_gateway |