Skip to content

Instantly share code, notes, and snippets.

@ilyash
ilyash / aws-paginators.json
Created Aug 27, 2021
AWS pagination - naming of fields used for pagination
View aws-paginators.json
{
"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,
@ilyash
ilyash / pipeline.censored.json
Created Jun 7, 2021
aws codepipeline get-pipeline --name XXX
View pipeline.censored.json
{
"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": [
{
View .bashrc_aws
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() {
View sanitized-vimrc
" --- 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
View dot.emacs
; 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)
View CFY-871.yaml
# WARNING:
# /etc/sudoers must not have "Default requiretty" for Puppet plugin to work
imports:
- http://www.getcloudify.org/spec/cloudify/3.1/types.yaml
plugins:
puppet_plugin:
derived_from: cloudify.plugins.agent_plugin
@ilyash
ilyash / install-cloudify-master.sh
Created Aug 19, 2014
Install Cloudify from master
View install-cloudify-master.sh
# 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
View CFY-989.yaml
# WARNING:
# /etc/sudoers must not have "Default requiretty" for Puppet plugin to work
imports:
- http://www.getcloudify.org/spec/cloudify/3.0/types.yaml
plugins:
puppet_plugin:
derived_from: cloudify.plugins.agent_plugin
@ilyash
ilyash / cloudify-chef-plugin-related-solo-nodes.yaml
Created May 12, 2014
Cloudify Chef Plugin - related solo nodes
View cloudify-chef-plugin-related-solo-nodes.yaml
@ilyash
ilyash / cloudify-chef-plugin-client-node-example.yaml
Created May 12, 2014
Cloudify Chef Plugin - client node example
View cloudify-chef-plugin-client-node-example.yaml
- name: chef_node_one
type: cloudify.types.chef.db_server
properties:
chef_config:
version: 11.10.4-1
chef_server_url: https://chef.example.com:443
validation_client_name: chef-validator
validation_key: "-----BEGIN RSA PRIVATE KEY-----\n.......\n-----END RSA PRIVATE KEY-----\n"
node_name_prefix: chef-node-
node_name_suffix: .chef.example.com