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
class something { | |
package { [ "unzip", "python-paramiko", "python-jinja2", "PyYAML", "zlib", " | |
zlib-devel" ]: | |
ensure => "latest" | |
} | |
} | |
# Converted to: | |
class something { |
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
class play { | |
class { "apt": | |
always_apt_update => true, | |
before => Class["mysql"], | |
} | |
class { "mysql": | |
require => Class["apt"], | |
} |
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
class play { | |
stage { 'first': | |
before => Stage["main"], | |
} | |
class { "apt": | |
stage => first, | |
} |
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
So, github is a site dedicated to allowing people to | |
share code amoungst others and collaborate on projects. | |
This includes both simple scripts to complicated | |
applications. It's based around using an application | |
called git which does version control with programs. | |
It's kewl stuff. My attempts at programing | |
things: http://github.com/jtslear | |
I work with a group of developers who make | |
this application: |
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
scp oo.pp username@<PUBLICIPADDRESS>: | |
ssh username@<PUBLICIPADDRESS> | |
vi /etc/selinux/config | |
# set SELINUX=enforcing | |
# save and quit the file | |
touch /.autorelabel | |
reboot | |
ssh username@<PUBLICIPADDRESS> | |
yum install git vim puppet |
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
description "Starts the tmate service" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
console log |
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
dev_mode = node[:dev_mode] | |
if dev_mode | |
chef_gem 'sinatra' | |
cookbook_file '/etc/init.d/test-web-app' do | |
mode '0755' | |
source 'test-web-app' | |
end |
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
require 'sinatra' | |
set :port, ARGV[1] | |
get '/something1/something2/get' do | |
"reached via something1/something2/get" | |
end | |
get '/replaced/get' do | |
"reached via replaced/get" |
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
serverless-freezing-demonstration % serverless invoke -f test -s dev -l | |
null | |
-------------------------------------------------------------------- | |
START RequestId: 778bcf95-a285-11e6-aa5a Version: $LATEST | |
2016-11-04 07:54:40.248 778bcf95-a285-11e6-aa5a Array A: [ 'A' ] | |
2016-11-04 07:54:40.284 778bcf95-a285-11e6-aa5a Array B: [ 'B' ] | |
2016-11-04 07:54:40.284 778bcf95-a285-11e6-aa5a Array C: [ 'C' ] | |
2016-11-04 07:54:40.284 778bcf95-a285-11e6-aa5a Array D: [ 'D' ] | |
END RequestId: 778bcf95-a285-11e6-aa5a | |
REPORT RequestId: 778bcf95-a285-11e6-aa5a Duration: 37.54 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 14 MB |
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
'use strict'; | |
var arrayA = []; | |
var arrayB = []; | |
module.exports.test = (event, context, callback) => { | |
var arrayC = []; | |
var arrayD = []; | |
arrayA.push("A"); |
OlderNewer