Skip to content

Instantly share code, notes, and snippets.

View managedkaos's full-sized avatar
💭
Time for some Actions! :D

Michael managedkaos

💭
Time for some Actions! :D
View GitHub Profile
@toricls
toricls / app-runner-template.yml
Created May 19, 2021 06:57
AWS App Runner CloudFormation Template generated using AWS Copilot
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
AWSTemplateFormatVersion: 2010-09-09
Description: CloudFormation template that represents a request driven web service on AWS App Runner.
Parameters:
AppName:
Type: String
EnvName:
Type: String
WorkloadName:
Username (card) Instance FQDN
aceofclubs ec2-54-144-249-81.compute-1.amazonaws.com
aceofdiamonds ec2-18-207-139-146.compute-1.amazonaws.com
aceofhearts ec2-18-206-198-157.compute-1.amazonaws.com
aceofspades ec2-18-207-112-130.compute-1.amazonaws.com
jackofclubs ec2-18-207-207-147.compute-1.amazonaws.com
jackofdiamonds ec2-54-172-59-2.compute-1.amazonaws.com
jackofhearts ec2-54-82-213-231.compute-1.amazonaws.com
jackofspades ec2-107-22-144-212.compute-1.amazonaws.com
kingofclubs ec2-18-206-198-177.compute-1.amazonaws.com
@rayterrill
rayterrill / default.rb
Created May 22, 2018 15:18
Chef code to use AWS Secrets Manager in a Chef Recipe
# Chef code to use AWS Secrets Manager in a Chef Recipe
include_recipe "chef-vault"
vault = chef_vault_item(:chefsecrets, "awschefsecretsmanager")
aws_access_key = vault["access_key_id"]
aws_secret_key = vault["secret_access_key"]
require 'aws-sdk'
require 'json'
@managedkaos
managedkaos / azlyrics.py
Created August 1, 2017 04:29
Scrape lyrics from azlyrics.com
import requests
from bs4 import BeautifulSoup
url = "http://www.azlyrics.com/lyrics/onyx/bacdafucup.html"
print "Default request (it will fail)..."
# make the default request
try:
r = requests.get(url)
@abayer
abayer / Jenkinsfile
Created February 15, 2017 15:17
An example Declarative Pipeline Jenkinsfile for Feb 15 2017 demo
// A Declarative Pipeline is defined within a 'pipeline' block.
pipeline {
// agent defines where the pipeline will run.
agent {
// This also could have been 'agent any' - that has the same meaning.
label ""
// Other possible built-in agent types are 'agent none', for not running the
// top-level on any agent (which results in you needing to specify agents on
// each stage and do explicit checkouts of scm in those stages), 'docker',

Local Development Setup for Chef

Install git

Linux: sudo yum install git Mac: Download Windows: Download

  • posh-git: A set of PowerShell scripts that provide Git/PowerShell integration
  • Download posh-git
@ipedrazas
ipedrazas / knife cheat
Last active December 13, 2021 11:50
Hello!
# knife cheat
## Search Examples
knife search "name:ip*"
knife search "platform:ubuntu*"
knife search "platform:*" -a macaddress
knife search "platform:ubuntu*" -a uptime
knife search "platform:ubuntu*" -a virtualization.system
knife search "platform:ubuntu*" -a network.default_gateway
@tetra5
tetra5 / fizzbuzz.py
Last active August 8, 2017 03:16
FizzBuzz
for i in range(1, 101):
print "Fizz" * (not i % 3) + "Buzz" * (not i % 5) or i
print " ".join("Herp" * (not i % 3) + "Derp" * (not i % 5) or str(i) for i in range(1, 101))
@clintel
clintel / gist:1155906
Created August 19, 2011 02:40
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code