aws kms encrypt --key-id <kms-id> \
--profile default \
--plaintext fileb://input_file.txt \
--query CiphertextBlob \
--output text \
| base64 --decode > output.enc
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
/* | |
Open shading Language shader that will take an image on a quad (eg blender) and rotate the image in a spiral that | |
is centered on the quad. | |
INPUT: in_UVs In Blender the script tag receives a UV input from a texture coordinate node | |
angle: the angle to rotate, can be animated in blender | |
OUTPUT: out_UVs modified UVs | |
*/ |
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
/** | |
* note that in spring boot resource filtering must be turned OFF or file will be altered | |
* https://gist.github.com/jonashackt/aae3ba2cb5595bb0f56550e604522ea6 | |
* https://raymondhlee.wordpress.com/2016/01/09/setup-spring-resttemplate-to-accept-self-signed-cert/ | |
*/ | |
private HttpClient createHttpClient() { | |
SSLConnectionSocketFactory socketFactory = null; | |
try { | |
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
version: 0.2 | |
phases: | |
pre_build: | |
commands: | |
- echo Logging in to Amazon ECR... | |
- aws --version | |
- $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email) | |
- REPOSITORY_URI=<repository uri> |
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 { | |
environment { | |
registry = "my-registry:5000" | |
GIT_SSL_NO_VERIFY = 1 | |
NODE_TLS_REJECT_UNAUTHORIZED=0 | |
dockerImage = '' | |
} | |
agent { | |
docker { |
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
/* sample Jenkins file for angular4-snippets project | |
doesn't work completely as it chokes on webpack | |
illustrates using docker image for building | |
problem is most likely the node version | |
attempting angular 4/6 build environment | |
*/ | |
pipeline { | |
environment { | |
registry = "my-registry:5000" |
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
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'AWS CloudFormation Sample Template ELBStickinessSample: Create a load | |
balanced sample web site with ELB stickiness enabled. The AI is chosen based on | |
the region in which the stack is run. This example creates 2 EC2 instances behind | |
a load balancer with a simple health check. The ec2 instnces are untargeted and | |
may be deployed in one or more availaiblity zones. The web site is available on | |
port 80, however, the instances can be configured to listen on any port (8888 by | |
default). **WARNING** This template creates one or more Amazon EC2 instances and | |
an Application Load Balancer. You will be billed for the AWS resources used if you |
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
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity | |
easeInQuad: function (t) { return t*t }, | |
// decelerating to zero velocity |
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
var gulp = require('gulp'); | |
var targetLocation = './public_html/' | |
var appDependencies = require('./package.json').dependencies; | |
var SASS_FILES = ['./src/sass/*.scss', './src/sass/components/*.scss']; | |
var sourcemaps = require('gulp-sourcemaps'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var fs = require('fs'); | |
var del = require('del'); |
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
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
function compile(watch) { | |
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
NewerOlder