Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
| heat_template_version: 2013-05-23 | |
| description: > | |
| This template sets up a 2 node wordpress installation | |
| parameters: | |
| key_name: | |
| type: string | |
| description: Name of keypair to assign to servers | |
| default: edmo-admin-lisa # TODO to be filled |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| - Tune /etc/ssh/sshd_config | |
| UseDNS no # Disable DNS lookups | |
| GSSAPIAuthentication no # Disable negotation of slow GSSAPI | |
| don't forget to restart it, use a script provider to set it , or create it with veewee or snapshot it | |
| - Tune Vagrantfile | |
| vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] |
| vagrant box add smartos http://cuddletech.com/tmp/smartos-latest.box | |
| mkdir smartos && cd smartos | |
| vagrant init smartos | |
| vagrant up | |
| vagrant ssh |
| file_to_disk = './tmp/large_disk.vdi' | |
| Vagrant::Config.run do |config| | |
| config.vm.box = 'base' | |
| config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] | |
| config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] | |
| end |
| #!/usr/bin/env python | |
| """ | |
| How to use it: | |
| 1. Just `kill -2 PROCESS_ID` or `kill -15 PROCESS_ID` , The Tornado Web Server Will shutdown after process all the request. | |
| 2. When you run it behind Nginx, it can graceful reboot your production server. | |
| 3. Nice Print in http://weibo.com/1682780325/zgkb7g8k7 | |
| """ |
| The Cloud Standards Interoperability Plugfest Series (or "Cloud Plugfests" | |
| for short) was originated by the OGF and SNIA in 2011 as a method to exchange | |
| information and to encourage interoperability on implementations of cloud | |
| standards. It has since expanded to include a variety of tools provided by | |
| these organizations and by ETSI to support the community, and is open to | |
| participation by other organizations. | |
| This tool set hosted on the ogf.org site supports those community activities | |
| and features that are in public view according to the terms of the Open Grid | |
| Forum IPR. The community is welcome to make use of the tools and features |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/bin/bash | |
| # This script is intended to be used with the install action | |
| # of puppet-cloudpack | |
| set -u | |
| set -e | |
| function fedora_repo() { | |
| cat >/etc/yum.repos.d/puppet.repo <<'EOFYUMREPO' | |
| [puppetlabs] |