AWS have released a new featue called CloudWatch Events, which lets you configure events fired by cloudwatch and direct them to SNS, Lambda functions, etc. Here's the blog post
Here's the motivational image:
#!/usr/bin/env bash | |
# This script assumes 'deploy' user already exists | |
RUBY_19_RELEASE='ruby-1.9.2-p290' # if this changes, change the /etc/puppet/puppet.conf below | |
PUPPET_VERSION='2.7.3' | |
apt-get update | |
apt-get install -y linux-headers-`uname -r` | |
apt-get install -y ntp openssh-server |
AWS have released a new featue called CloudWatch Events, which lets you configure events fired by cloudwatch and direct them to SNS, Lambda functions, etc. Here's the blog post
Here's the motivational image:
-- | |
-- Read only | |
-- | |
-- Create a group | |
CREATE ROLE postgres_ro_group; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO postgres_ro_group; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group; |
git filter-branch --tree-filter 'rm -rf node_modules' HEAD | |
echo node_modules/ >> .gitignore | |
git add .gitignore | |
git commit -m 'Removing node_modules from git history' |
{ | |
"window.zoomLevel": 2, | |
"workbench.startupEditor": "newUntitledFile", | |
"gitlens.advanced.messages": { | |
"suppressCommitHasNoPreviousCommitWarning": false, | |
"suppressCommitNotFoundWarning": false, | |
"suppressFileNotUnderSourceControlWarning": false, | |
"suppressGitVersionWarning": false, | |
"suppressLineUncommittedWarning": true, | |
"suppressNoRepositoryWarning": false, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Iframe</title> | |
</head> | |
<body> | |
<button>iframe</button> | |
<script type="text/javascript"> |
def sanitize(str) | |
# https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_reserved_characters | |
escaped_characters = Regexp.escape('\\+-&|!(){}[]^~*?:') | |
str = str.gsub(/([#{escaped_characters}])/, '\\\\\1') | |
# AND, OR and NOT are used by lucene as logical operators. | |
['AND', 'OR', 'NOT'].each do |word| | |
escaped_word = word.split('').map {|char| "\\#{char}" }.join('') | |
str = str.gsub(/\s*\b(#{word.upcase})\b\s*/, " #{escaped_word} ") |
javascript:(function() {var e = document.getElementsByName("pull_request[body]")[0];if (e) {e.value += '#### What\'s this PR do?\n\n#### Where should the reviewer start?\n\n#### How should this be manually tested?\n\n#### Any background context you want to provide?\n\n#### What are the relevant tickets?\n\n#### Screenshots (if appropriate)\n\n#### Definition of Done:\n\n- [ ] Documentation updated as needed.\n- [ ] Unit tests added for new code.\n- [ ] Integration tests added for new functionality.\n';}})(); |
@mixin vertical-align { | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} | |
@mixin vertical-align-flex { | |
display: flex; |
This guide is a fork from this gist.
Since Mavericks stopped using the deprecated ipfw
(as of Mountain Lion), we'll be using pf
to allow port forwarding.
Create an anchor file under /etc/pf.anchors/com.vagrant
with your redirection rule like:
rdr pass on lo0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080