Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| -Dcom.sun.management.jmxremote | |
| -Dcom.sun.management.jmxremote.port=8086 | |
| -Dcom.sun.management.jmxremote.ssl=false | |
| -Dcom.sun.management.jmxremote.authenticate=false |
| # Location: /srv/salt/raidarray/ | |
| ## notice namespacing at top-level of each block, followed by the module.function | |
| raid-create-array: | |
| cmd.script: | |
| - source: salt://raidarray/create_raid.sh | |
| - cwd: / | |
| - user: root | |
| # here I am calling the pkg module and installed function but it requires first that cmd module ran previously on namespaced |
| import sys | |
| from boto.ec2 import connect_to_region | |
| from datetime import datetime, timedelta | |
| try: | |
| days = int(sys.argv[1]) | |
| except IndexError: | |
| days = 7 |
##Install AWS CLI Tools##
cd ~/.aws edit or create new file named config paste the following contents inside.
Save the file as "config"
| #!/usr/bin/env bash | |
| # file: ~/.virtualenvs/postmkvirtualenv | |
| # This hook is run after a new virtualenv is activated. | |
| # setup python interpretor and sitepackages | |
| # for Sublime Text's SublimeCodeIntel plugin. | |
| # codeintel looks in the root of any folder opened via `subl foldername` | |
| # for foldername/.codeintel/config | |
| # it also looks in ~/.codeintel/config |
| import uuid | |
| import wtforms_json | |
| from sqlalchemy import not_ | |
| from sqlalchemy.dialects.postgresql import UUID | |
| from wtforms import Form | |
| from wtforms.fields import FormField, FieldList | |
| from wtforms.validators import Length | |
| from flask import current_app as app | |
| from flask import request, json, jsonify, abort |
| #!/usr/bin/env python | |
| try: | |
| import json | |
| except ImportError: | |
| import simplejson as json | |
| import sys | |
| from pagerduty import PagerDuty | |
| def parse(txt): |
| from flask import Flask | |
| from flask.ext.sqlalchemy import SQLAlchemy | |
| from flask.ext.wtf import Form | |
| from flask.ext.babel import gettext | |
| from wtforms import SelectField, TelField, TextField, FormField, Fieldlist, SubmitField | |
| from wtforms.validators import Optional, Required | |
| app = Flask(__name__) | |
| db = SQLAlchemy(app) |