Skip to content

Instantly share code, notes, and snippets.

View johnfitzpatrick's full-sized avatar

John Fitzpatrick johnfitzpatrick

  • Kong
  • Belfast, Northern Ireland
View GitHub Profile
[css]
background_color = 'green'
pkg_name=nodejs_demo
pkg_origin=myorigin
pkg_version="0.2.0"
pkg_scaffolding="core/scaffolding-node"
pkg_exports=(
[port]=app.port
)
pkg_exposes=(port)
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash
mongodb_database = "demo"
[server]
port = "8080"
shutdown-port = "8005"
redirect-port = "8443"
version: '3'
services:
mongodb:
image: core/mongodb
command: --peer ${HOSTIP}
environment:
HAB_MONGODB: "[mongod.net]\nbind_ip = '0.0.0.0'\n[mongod.security]\ncluster_auth_mode = ''"
national-parks01:
image: MYORIGIN/national-parks:latest
command: --peer mongodb --strategy at-once --bind database:mongodb.default
@johnfitzpatrick
johnfitzpatrick / gist:7b8dff6831de1cd24a2ee8dc639a004d
Created December 14, 2017 08:27
Intermediate_Slide11.14.rb
directory '/srv/httpd/admins/html' do
recursive true
mode '0755'
end
template '/etc/httpd/conf.d/admins.conf' do
source 'conf.erb'
mode '0644'
variables(document_root: '/srv/httpd/admins/html',port: 8080)
notifies :restart, 'service[httpd]'
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
system_policies = 'HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System'
registry_key system_policies do
values [{
:name => 'EnableLUA',
:type => :dword,
:data => 0
}]
end
We couldn’t find that file to show.