On Mac OS X:
- Install puppet 3.0.2, facter 1.6.17 and hiera 1.1.2
- create /etc/puppet/puppet.conf
- configure launchd puppet daemon
- initial puppet run
| #!/usr/bin/env python | |
| # Decorator Function | |
| def log(f): | |
| def _inner(*a, **kw): | |
| print 'Calling your function' | |
| return f(*a, **kw) | |
| return _inner |
| >>> def init(headers={}): | |
| ... print "headers before: %r" % headers | |
| ... headers['foo'] = 'bar' | |
| ... print "headers after: %r" % headers | |
| ... | |
| ... | |
| >>> init() | |
| headers before: {} | |
| headers after: {'foo': 'bar'} | |
| >>> init() |
On Mac OS X:
| # Tell system when Xcode utilities live: | |
| sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
| # Set "opendiff" as the default mergetool globally: | |
| git config --global merge.tool opendiff |
| You actually may have an option. It's dirty, and here be dragons. I | |
| know this from working on RPM on AIX, so again, it's hacky. I did this | |
| on a CentOS 6.3 box for my example, should work on Fedora. | |
| You can do something like: | |
| ls zip-3.0-1.el6.x86_64.rpm | |
| mkdir $HOME/.myrpm | |
| cp -pr /var/lib/rpm/* $HOME/.myrpm/ | |
| chown -R $USER $HOME/.myrpm/ |
| Copyright (c) 2015, Shahar Evron | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, | |
| are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, this | |
| list of conditions and the following disclaimer. | |
| 2. Redistributions in binary form must reproduce the above copyright notice, |
| VENV_DIR=`md5sum requirements/* | md5sum 2>&1 | awk '{print $1}'` | |
| if [ -e $VENV_DIR ]; then | |
| . /tmp/$VENV_DIR/bin/activate | |
| else | |
| virtualenv --no-site-packages /tmp/$VENV_DIR | |
| . /tmp/$VENV_DIR/bin/activate | |
| pip install --download-cache /var/lib/jenkins/.pip_download_cache -r requirements/ci.txt | |
| fi |
| You appear to be advocating a new: | |
| [ ] cloud-hosted [ ] locally installable [ ] web-based [ ] browser-based [ ] language-agnostic | |
| [ ] language-specific IDE. Your IDE will not succeed. Here is why it will not succeed. | |
| You appear to believe that: | |
| [ ] Syntax highlighting is what makes programming difficult | |
| [ ] Garbage collection is free | |
| [ ] Computers have infinite memory | |
| [ ] Nobody really needs: |
An IAM user policy document to give minimal rights for deploying an Elastic Beanstalk application.
Where:
REGION: AWS region.ACCOUNT_ID: AWS account ID.APPLICATION_NAME: Desired target Elastic Beanstalk application name(space).IAM_INSTANCE_PROFILE_ROLE: The instance profile (IAM role) Elastic Beanstalk EC2 instaces will run under.| <powershell> | |
| write-output "Running User Data Script" | |
| write-host "(host) Running User Data Script" | |
| Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force -ErrorAction Ignore | |
| # Don't set this before Set-ExecutionPolicy as it throws an error | |
| $ErrorActionPreference = "stop" | |
| # Remove HTTP listener |