This file contains hidden or 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 pdb | |
pdb.set_trace() | |
flav = flavor or srv_args.get("flavorRef") | |
dconf = disk_config if disk_config is not None else srv_args.get("OS-DCF:diskConfig", "AUTO") | |
pers = personality if personality is not None else srv_args.get("personality", []) | |
body = {"type": "launch_server", | |
"args": { | |
"server": { | |
"name": server_name or srv_args.get("name"), | |
"imageRef": image or srv_args.get("imageRef"), |
This file contains hidden or 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
def main(args): | |
parser = argparse.ArgumentParser() | |
subparsers = parser.add_subparsers() | |
parser_add_device = subparsers.add_parser( | |
'add-device', help="Add host sub-command") | |
parser_add_device.add_argument( | |
'--host', action='store', dest='host', | |
help="Hostname of Zenoss Server") | |
parser_add_device.add_argument( | |
'--username', action='store', dest='username') |
This file contains hidden or 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
27 | |
28 mpg_combined_average = data_set.ix[ | |
29 (data_set['DRIVE_DESCR'] == 'All Wheel Drive') & | |
30 (data_set['VOLUME'] > 3) & | |
31 (data_set['GEARS'] % 2 == 0)].MPG_COMBINED.mean() | |
32 | |
33 print "MPG Combined is {mpg}".format(mpg=mpg_combined_average) |
This file contains hidden or 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
27 Cart.prototype.findTicket = function(ticket){ | |
28 return db.query(findTicketQuery, [this.sessionid, ticket.id]) | |
29 .then(function(results)){ | |
30 return new Ticket(results.rows[0]) | |
31 }) | |
32 } |
This file contains hidden or 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
Monitoring as byproduct of application | |
CM - Ansible, Chef, Puppet, Salt, Electric Commander | |
Public vs. Private Cloud | |
Vagrant - pipeline/process vs Docker | |
Key Management | |
APM - FogLight, New Relic, Appneta | |
How to deploy application? separate repo | |
How much testing and how to test? | |
Rundeck tool | |
Consul, Serf (Service Discovery) |
This file contains hidden or 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
diff --git a/Lib/tokenize.py b/Lib/tokenize.py | |
index 8bc83fd..96edf6c 100644 | |
--- a/Lib/tokenize.py | |
+++ b/Lib/tokenize.py | |
@@ -434,12 +434,16 @@ def open(filename): | |
"""Open a file in read only mode using the encoding detected by | |
detect_encoding(). | |
""" | |
- buffer = _builtin_open(filename, 'rb') | |
- encoding, lines = detect_encoding(buffer.readline) |
This file contains hidden or 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
1064 class TestTokenize(TestCase): | |
1065 | |
1066 def test_tokenize(self): | |
1067 import tokenize as tokenize_module | |
1068 encoding = object() | |
1069 encoding_used = None | |
1070 def mock_detect_encoding(readline): | |
1071 return encoding, [b'first', b'second'] | |
1072 |
This file contains hidden or 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
openstack output will be in this color. | |
==> openstack: Creating temporary keypair for this instance... | |
==> openstack: Waiting for server (f8fc5320-019b-44f7-91da-98104571fc60) to become ready... | |
==> openstack: Waiting for SSH to become available... | |
==> openstack: Connected to SSH! | |
==> openstack: Provisioning with Ansible... | |
openstack: Creating Ansible staging directory... | |
openstack: Creating directory: /tmp/packer-provisioner-ansible-local | |
openstack: |
This file contains hidden or 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
(github3)Matts-MacBook-Air:github3.py mattchung$ make tests >> /tmp/github3_errors.txt | |
no previously-included directories found matching '*.pyc' | |
no previously-included directories found matching 'docs/_build' | |
make: *** [travis] Error 1 | |
(github3)Matts-MacBook-Air:github3.py mattchung$ view /tmp/github3_errors.txt | |
Processing /Users/mattchung/Development/github3.py | |
Requirement already satisfied (use --upgrade to upgrade): github3.py==1.0.0a2 from file:///Users/mattchung/Development/github3.py in /Users/mattchung/.virtualenvs/github3/lib/python2.7/site-packages (from -r dev-requirements.txt (line 1)) | |
Requirement already satisfied (use --upgrade to upgrade): mock==1.0.1 in /Users/mattchung/.virtualenvs/github3/lib/python2.7/site-packages (from -r dev-requirements.txt (line 2)) | |
Requirement already satisfied (use --upgrade to upgrade): pytest>=2.3.5 in /Users/mattchung/.virtualenvs/github3/lib/python2.7/site-packages (from -r dev-requirements.txt (line 3)) |
This file contains hidden or 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
/** | |
* Sumologic module | |
* @module lib/sumologic | |
*/ | |
var rsvp = require('rsvp'); | |
var fs = require('fs'); | |
var request = require('request') | |
var util = require('util'); | |
OlderNewer