Skip to content

Instantly share code, notes, and snippets.

@maverick1974
maverick1974 / enterprise_token.rb
Created February 17, 2023 21:04 — forked from markasoftware/enterprise_token.rb
OpenProject Enterprise mode
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
@maverick1974
maverick1974 / RASPBERRY_PI_4.md
Created January 5, 2022 23:18 — forked from lucaguada/RASPBERRY_PI_4.md
Steps to fully install Ubuntu Server and MiniKube on Raspberry Pi 4 (wip)

How to install Ubuntu Server and Minikube on Raspberry Pi 4 4GB+ (recommended)

Disclaimer: this step-by-step GIST has been created with no guarantees, I may have missed some steps because of distraction or chiptune improvised on-chair-dancing, so be patient and let me know if I must add or fix something.

This is the way for living long and prospering!

Download Raspberry Pi Imager

Download and install Raspberry Imager: https://www.raspberrypi.org/software/

@maverick1974
maverick1974 / puppet-proxy-config.md
Created June 21, 2021 11:29 — forked from jessereynolds/puppet-proxy-config.md
Puppet Proxy Configuration

Puppet and Puppet Enterprise Proxy Configuration

There are a few places you can configure proxies with Puppet. This doc will try and list each of the places that they can be configured, and which components will use it.

This is a work in progress and will no doubt change over time. Please add comments if you've got additional info, or found something incorrect.

Methods of Configuring Proxies

/etc/puppetlabs/puppet/puppet.conf

@maverick1974
maverick1974 / handler.js
Created December 2, 2019 16:19 — forked from eddmann/handler.js
Scheduled Start/Stop of EC2 Instances using Lambda and Serverless (Extra)
'use strict';
const AWS = require('aws-sdk');
module.exports.stateChange = (event, context, callback) => {
const { state, id, region } = event;
const ec2 = new AWS.EC2({ region });
ec2[`${state}Instances`]({ InstanceIds: [id] }).promise()
@maverick1974
maverick1974 / handler.js
Created December 2, 2019 16:19 — forked from eddmann/handler.js
Scheduled Start/Stop of EC2 Instances using Lambda and Serverless
'use strict';
const AWS = require('aws-sdk');
module.exports.start = (event, context, callback) => {
const ec2 = new AWS.EC2({ region: event.region });
ec2.startInstances({ InstanceIds: [event.id] }).promise()
.then(() => callback(null, `Successfully started ${event.id}`))
.catch(err => callback(err));
@maverick1974
maverick1974 / modify-ec2-instance-type.js
Created December 2, 2019 16:19 — forked from eddmann/modify-ec2-instance-type.js
Scheduled EC2 Instance Type Modification using Lambda and CloudWatch Events
// Demonstration video can be found at: https://youtu.be/_gJyK1-NGq8
// ModifyEC2InstanceType
const AWS = require('aws-sdk');
exports.handler = (event, context, callback) => {
const { instanceId, instanceRegion, instanceType } = event;
const ec2 = new AWS.EC2({ region: instanceRegion });
@maverick1974
maverick1974 / start-stop-ec2-instances.js
Created December 2, 2019 16:19 — forked from eddmann/start-stop-ec2-instances.js
Scheduled Start/Stop of EC2 Instances using Lambda and CloudWatch Events
// Demonstration video can be found at: https://youtu.be/roAerKVfq-Y
// StopEC2Instance
const AWS = require('aws-sdk');
exports.handler = (event, context, callback) => {
const ec2 = new AWS.EC2({ region: event.instanceRegion });
ec2.stopInstances({ InstanceIds: [event.instanceId] }).promise()