1 . goto beyond compare
folder
cd "/Applications/Beyond Compare.app/Contents/MacOS/"
2 . rename BCompare
to BCompare.real
mv BCompare BCompare.real
#!/usr/bin/env bash | |
# https://www.getopenerp.com/install-odoo-10-on-ubuntu-16-04/ | |
# Update & upgrade distro status | |
sudo apt-get update -s | |
sudo apt-get upgrade -s | |
# Install dev deps | |
sudo apt-get install -s git make gcc curl poppler-utils mc bzr lptools antiword | |
sudo apt-get install -s postgresql-client postgresql-client-common |
1 . goto beyond compare
folder
cd "/Applications/Beyond Compare.app/Contents/MacOS/"
2 . rename BCompare
to BCompare.real
mv BCompare BCompare.real
http://www.devopsschool.com/tutorial/aws/ | |
https://www.youtube.com/watch?v=uJssXPyMf0s&list=PLxzKY3wu0_FKasqIn1MdmhbT1y4aLqNUO | |
https://hortonworks.com/blog/5-ways-make-hive-queries-run-faster/ | |
https://www.youtube.com/watch?v=wTK2CKth3DE (HTTP WebServer Setup) | |
https://linuxacademy.com/howtoguides/posts/show/topic/14209-automating-aws-with-python-and-boto3 |
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/jenkins-setup.sh)
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/jenkins-update.sh)
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/elk-setup.sh)
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/elk-update.sh)
'use strict'; | |
exports.handler = (event, context, callback) => { | |
function getFileExtension(filename) { | |
return filename.slice((filename.lastIndexOf(".") - 1 >>> 0) + 2); | |
} | |
// Extract the request from the CloudFront event that is sent to Lambda@Edge | |
var request = event.Records[0].cf.request; | |
var extension = getFileExtension(request.uri.substr(request.uri.lastIndexOf('/') + 1)); | |
console.log(extension); |
#!/bin/bash | |
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin | |
EC2_HOME=/opt/aws/apitools/ec2-1.7.3.0/ | |
JAVA_HOME=/usr/lib/jvm/jre | |
export EC2_HOME JAVA_HOME | |
instanceID=`curl http://169.254.169.254/latest/meta-data/instance-id` | |
echo "$instanceID" | |
region=`curl http://169.254.169.254/latest/dynamic/instance-identity/document | grep region | awk -F\" '{print $4}'` | |
echo "$region" |
https://www.bountysource.com/issues/35584735-narrowing-the-serverless-iam-deployment-policy | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudformation:Describe*", | |
"cloudformation:List*", |
SELECT SchemaName , | |
TableName , | |
IndexName , | |
( CASE PK | |
WHEN 'PK' | |
THEN 'ALTER ' + 'TABLE ' + SchemaName + '.' + TableName | |
+ ' ADD CONSTRAINT ' + IndexName + ' PRIMARY KEY' | |
+ ( CASE SUBSTRING(Type, 3, 1) | |
WHEN 'C' THEN ' CLUSTERED' | |
ELSE '' |
function preserveAspect() { | |
var scaled = $("#scaled"); | |
scaled.height("100%"); | |
scaled.width("100%"); | |
scaled.css("box-sizing", "border-box"); | |
var ratio = 16/9; | |
var w = scaled.outerWidth(); | |
var h = scaled.outerHeight(); | |
if (w > ratio*h) { |