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
# salt-minion.conf | |
description "salt-minion upstart daemon" | |
author "Jeff Bauer <[email protected]>" | |
# copy this file to /etc/init | |
start on (net-device-up and local-filesystems) | |
stop on shutdown | |
expect fork |
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
Traceback (most recent call last): | |
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap | |
self.run() | |
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 295, in run | |
self.__bind() | |
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 251, in __bind | |
payload = salt.payload.unpackage(package) | |
File "/usr/local/lib/python2.7/dist-packages/salt/payload.py", line 21, in unpackage | |
return pickle.loads(package_) | |
ValueError: unregistered extension code 164 |
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
#!/usr/bin/env python | |
import os, subprocess | |
uid, gid = 5, 60 | |
def preexec_fn(): | |
os.setgid(uid) | |
os.setuid(gid) | |
cmd = ['uname', '-a'] |
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
############################################################################ | |
# My current salt configuration for the master daemon as an unprivileged | |
# non-root user. | |
# https://gist.github.com/1652306 | |
############################################################################ | |
##### Primary configuration settings ##### | |
########################################## | |
# The address of the interface to bind to | |
#interface: 0.0.0.0 |
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
# Magic imports for working interactively (ipython) | |
# ipython -i ec2connection.py | |
import re | |
import boto.ec2 | |
RegionRegex = re.compile("^us-") # all regions starting with 'us-' | |
class EC2(object): | |
def __init__(self): |
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
apt-get -y install python-pip python-dev python-setuptools git-core | |
apt-get -y install libzmq1 libzmq-dev python-m2crypto | |
pip install PyYAML pycrypto pyzmq msgpack-python salt |
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
cloud-init: ############################################################## | |
#cloud-config | |
apt_upgrade: true | |
apt_sources: | |
- source: "ppa:sun-java-community-team/sun-java6" | |
user-script: ############################################################# | |
#!/bin/sh |
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
(setq inhibit-startup-message t) ; disables splash screen | |
(setq initial-scratch-message nil) ; suppress initial *scratch* buffer msg | |
(setq transient-mark-mode t) ; highlights the selected region | |
(tool-bar-mode -1) ; remove the toolbar | |
(setq default-major-mode 'text-mode) ; make text-mode default | |
(setq-default fill-column 66) ; set the fill column for word wrap | |
(setq-default indent-tabs-mode nil) ; spaces instead of tabs by default | |
(mouse-wheel-mode t) ; enable mouse wheel | |
(setq scroll-step 1) ; scroll up by a single line | |
(add-to-list 'load-path "~/.emacs.d") ; load path |
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
#!/bin/bash | |
SALSA_VIRTENV="salsa" | |
cd $HOME/.virtualenvs/$SALSA_VIRTENV | |
source ./bin/activate | |
export PYTHONPATH="$HOME/Projects" | |
cd $HOME/Projects/salsa | |
python manage.py runserver 8080 | |
stty sane |
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
(define-key evil-normal-state-map "\C-e" 'evil-end-of-line) | |
(define-key evil-motion-state-map "\C-e" 'evil-end-of-line) | |
(define-key evil-insert-state-map "\C-e" 'end-of-line) | |
(define-key evil-normal-state-map "\C-n" 'evil-next-line) | |
(define-key evil-insert-state-map "\C-n" 'evil-next-line) | |
(define-key evil-visual-state-map "\C-n" 'evil-next-line) | |
(define-key evil-normal-state-map "\C-p" 'evil-previous-line) | |
(define-key evil-insert-state-map "\C-p" 'evil-previous-line) | |
(define-key evil-visual-state-map "\C-p" 'evil-previous-line) | |
(define-key evil-normal-state-map "\C-y" 'yank) |
OlderNewer