(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
import smtplib | |
gmail_account = '[email protected]' | |
gmail_pass = 'misuperpass' | |
to_emails = ['[email protected]'] | |
message = """From: %s | |
To: %s | |
Subject: python rulz! |
from geventwebsocket.handler import WebSocketHandler | |
from gevent.pywsgi import WSGIServer | |
from flask import Flask, request, render_template | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return render_template('index.html') |
from starcluster.clustersetup import ClusterSetup | |
from starcluster.logger import log | |
class addRepository(ClusterSetup): | |
def __init__(self, repositories=None): | |
self.repositories=repositories | |
if self.repositories: | |
self.repositories= [repo.strip() for repo in repositories.split(',')] | |
bucketname="yourbucketname" | |
cd /home/hadoop | |
wget http://www.netlib.org/lapack/lapack-3.4.1.tgz | |
wget http://downloads.sourceforge.net/project/math-atlas/Developer%20%28unstable%29/3.9.76/atlas3.9.76.tar.bz2 | |
tar -vxf atlas3.9.76.tar.bz2 | |
cd ATLAS | |
mkdir build | |
cd build | |
################################## -t 2 means 2 threads. depending on the ec2 instance you can choose more threads 14 | |
### V 448 means SSE1/2/3 support. A14 means x86SSE364SSE2 architecture. check the documentation for more information |
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09) | |
Subsystem: Apple Inc. Device 00f7 | |
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- | |
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx- | |
Latency: 0 | |
Capabilities: [e0] Vendor Specific Information: Len=0c <?> | |
Kernel driver in use: agpgart-intel | |
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09) (prog-if 00 [Normal decode]) | |
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ |
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 = [email protected]: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:
# Notes: | |
# ----------------------------------------------------------------- | |
# Ubuntu 12.04 | |
# Sep 27, 2012 | |
# ----------------------------------------------------------------- | |
# I followed the instructions located on their website. | |
# https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide | |
# | |
# I ran into the following errors. | |
# ----------------------------------------------------------------- |
For some reason, starting a PXE boot installation of RHEL6.4 on UEFI systems is poorly documented. Simultaneously, the process is not terribly verbose when it fails. Here's what I had to do to get this to work.
We going to use Cobbler to take care of a lot of the gruntwork (TFTP, DHCP, etc). It's entirely possible to do it without Cobbler, but even accounting for its warts it will make you more
--- | |
# This has been tested with ansible 1.3 with these commands: | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
# NB: The type of the variable is crucial! | |
- name: Ansible Conditionals Examples | |
hosts: $hosts | |
vars_files: |