Skip to content

Instantly share code, notes, and snippets.

nginx_site "default" do
enable false
end
mercurial:
pkg:
- installed
bitbucket.org:
ssh_known_hosts:
- present
- user: somebody
- fingerprint: 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
[INFO ] AES payload received with command _pillar
Process MWorker-5:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/pymodules/python2.7/salt/master.py", line 515, in run
self.__bind()
File "/usr/lib/pymodules/python2.7/salt/master.py", line 453, in __bind
ret = self.serial.dumps(self._handle_payload(payload))
File "/usr/lib/pymodules/python2.7/salt/master.py", line 476, in _handle_payload
@richleland
richleland / common.py.diff
Created October 5, 2012 13:54
diff of common.py for Mr. Lewin
diff --git a/site/settings/common.py b/site/settings/common.py
index 265794c..29c6d0b 100644
--- a/site/settings/common.py
+++ b/site/settings/common.py
@@ -18,6 +18,8 @@ EMAIL_PORT = int(os.environ.get('SMTP_PORT', 25))
EMAIL_HOST_USER = os.environ.get('SMTP_HOST_USER', '')
EMAIL_HOST_PASSWORD = os.environ.get('SMTP_HOST_PASSWORD', '')
EMAIL_USE_TLS = os.environ.get('SMTP_USE_TLS', False) in [True, 'True', 'TRUE', 'true']
+NETWORK_NAME = os.environ.get('NETWORK_NAME', 'Discovery Channel')
+NETWORK_ABBR = os.environ.get('NETWORK_ABBR', 'DSC')
<?xml version="1.0" encoding="iso-8859-1"?>
<ScheduleDetailedOutput>
<message>Web Service Execution Successful.</message>
<scheduleDetailedArray>
<ScheduleDetail>
<netPropEpisode>
<programLength>6000</programLength>
<networkId>15</networkId>
<title>Wild-Eyed Stallion</title>
<episodeNumber>23</episodeNumber>
@richleland
richleland / knife.rb
Created August 29, 2012 02:42 — forked from zzondlo/knife.rb
My Generic knife.rb
### Chef Solo
#
#
### Opscode Hosted Chef Server
#
# export KNIFE_USER="jdoe"
# export KNIFE_ORGNAME="acmeco"
#
# * Your Opscode client key should be at `~/.chef.d/opscode-jdoe.pem`.
# * Your Opscode validation key should be at `~/.chef.d/opscode-acmeco-validator.pem`.
@richleland
richleland / comments.js
Created May 17, 2012 16:53
discovery specific comments config
$(function() {
// set up some references
var commentsDiv = $("#comments");
var commentsToggle = $("#comments-toggle");
if(commentsDiv.length && typeof commentsCategoryID !== "undefined" && typeof commentsStreamID !== "undefined") {
// comment counter
// docs at http://developers.gigya.com/020_Client_API/020_Methods/z_020_Comments/comments.getComments
gigya.comments.getComments({
categoryID: commentsCategoryID,
def format_sidebar(self, node):
"""
Formast the Sidebar type for web clients.
"""
payload = node['payload']
node['formatted'] = {}
for key, value in payload.items():
item_list = []
for item in value:
@richleland
richleland / chunk.json
Created May 1, 2012 18:27
full json repsonse
{
"links": {
"self": {
"href": "http:\/\/api.staging.media.int2.atl.howstuffworks.com\/contents\/dsc.discovery.com\/tv-shows%252Famerican-chopper%252Fvideos\/pages\/0\/modules\/Banner",
"schemas": ["http:\/\/api.staging.media.int2.atl.howstuffworks.com\/schemas\/contents\/page\/module\/1"]
}
},
"id": 7935827,
"position": "Banner",
"title": "American Chopper Banner Module",
" reloads chrome's active tab from vim by pressing ,r
function! ChromeReload()
if has("gui_macvim")
:silent !osascript ~/.vim/reloadchrome.scpt > /dev/null 2>&1
endif
endfunction
nmap <leader>r :call ChromeReload()<cr>