Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Time for some Actions! :D

Michael managedkaos

💭
Time for some Actions! :D
View GitHub Profile
View gist:7aa53ff3eac250e2cfcf3558ff4019e6
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
Chef code to use AWS Secrets Manager in a Chef Recipe
View default.rb
# 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 Aug 1, 2017
Scrape lyrics from azlyrics.com
View azlyrics.py
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 Feb 15, 2017
An example Declarative Pipeline Jenkinsfile for Feb 15 2017 demo
View Jenkinsfile
// 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',
View local_chef_dev_setup.md

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
View knife cheat
# 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
View fizzbuzz.py
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 Aug 19, 2011
Fenced code in bullet lists with GitHub-flavoured MarkDown??
View gist:1155906

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
    
View github_oauth_busy_developer_guide.md

GitHub OAuth Busy Developer's Guide

This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.

OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.

Web Application Flow

  • Redirect to this link to request GitHub access: