This file contains 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/python | |
''' | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains 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
{ | |
"shapes": { | |
"input_token=NextToken;limit_key=MaxResults;output_token=NextToken": 725, | |
"input_token=nextToken;limit_key=maxResults;output_token=nextToken": 305, | |
"input_token=Marker;limit_key=MaxRecords;output_token=Marker": 141, | |
"input_token=NextToken;limit_key=Limit;output_token=NextToken": 72, | |
"input_token=NextToken;output_token=NextToken": 68, | |
"input_token=nextToken;output_token=nextToken": 41, | |
"input_token=Marker;limit_key=MaxItems;more_results=IsTruncated;output_token=Marker": 27, | |
"input_token=nextToken;limit_key=limit;output_token=nextToken": 22, |
This file contains 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
{ | |
"pipeline": { | |
"name": "sher2-pipeline", | |
"roleArn": "arn:aws:iam::00000000:role/sher2-us-west-2-pipeline", | |
"artifactStore": { | |
"type": "S3", | |
"location": "sher2-00000000-us-west-2-pipeline" | |
}, | |
"stages": [ | |
{ |
This file contains 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
alias REGIONS_NAMES='aws ec2 describe-regions | jq ".Regions[].RegionName" -r' | |
alias TERMINATE='aws ec2 terminate-instances --instance-ids' | |
alias STOP='aws ec2 stop-instances --instance-ids' | |
alias START='aws ec2 start-instances --instance-ids' | |
alias MON_ENA='aws ec2 monitor-instances --instance-ids' | |
alias MON_DIS='aws ec2 unmonitor-instances --instance-ids' | |
RESIZE() { | |
aws ec2 modify-instance-attribute --instance-id "$1" --instance-type "{\"Value\": \"$2\"}" | |
} | |
DESC() { |
This file contains 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
tar -h -C /usr/lib/python2.7/dist-packages -czf netaddr.tgz netaddr netaddr-0.7.10.egg-info | |
tar -C $VIRTUAL_ENV/lib/python2.7/site-packages/ -xzf netaddr.tgz |
This file contains 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
knife exec -E 'nodes.all.sort_by(&:name).each do |node| puts "#{printf "%-16s",node.ipaddress} #{node.name}" end' | |
# or | |
knife exec -E 'nodes.all.sort_by(&:ipaddress).each do |node| puts "#{printf "%-16s",node.ipaddress} #{node.name}" end' |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<title>Webkit background image wrapping bug</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
</head> | |
<body> | |
<br/> | |
50x40px div. background-image - 40x1 px, 37 top pixels transparent, 3 bottom pixes are red, green and blue from top to bottom. Followed by 50x40px div with background-color #888:<br/><br/> |
This file contains 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
" --- Global settings | |
set nocompatible | |
syntax on | |
set ts=4 sw=4 noet hls ai | |
set bs=indent,eol,start | |
set hi=100 | |
set laststatus=2 | |
set incsearch | |
" --- netrw settings |
This file contains 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
; Keys | |
(global-set-key [M-left] 'windmove-left) | |
(global-set-key [M-right] 'windmove-right) | |
(global-set-key [M-up] 'windmove-up) | |
(global-set-key [M-down] 'windmove-down) | |
(global-set-key [f2] 'save-buffer) | |
; Settings | |
(global-hi-lock-mode 1) | |
(ido-mode 1) |
This file contains 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
# In new virtualenv: | |
PACKAGES="cloudify-dsl-parser cloudify-rest-client cloudify-cli cloudify-openstack-provider" | |
for pkg in $PACKAGES;do | |
pip install --upgrade https://github.com/Cloudify-Cosmo/$pkg/archive/master.zip | |
done |
NewerOlder