Skip to content

Instantly share code, notes, and snippets.

View afiune's full-sized avatar
🏠
Working from home

Salim Afiune Maya afiune

🏠
Working from home
View GitHub Profile
@afiune
afiune / aws.tf
Last active October 29, 2023 23:38
Lacework Single Role Deployment via Terraform
terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.15"
}
}
}
# Required inputs
@afiune
afiune / chef_analyze_help.txt
Last active February 19, 2020 00:46
Chef CLI Catalog
$ chef analyze help
Analyze your Chef Infra Server artifacts to understand the effort to upgrade
your infrastructure by generating reports, automatically fixing violations
and/or deprecations, and generating Effortless packages.
Usage:
chef analyze [command]
Available Commands:
help Help about any command
{
"ClientProduct": "Chef Infra Client",
"ServerProduct": "Chef Infra Server",
"AutomateProduct": "Chef Automate",
"SoloProduct": "Chef Infra Solo",
"ClientExec": "chef-client",
"ZeroExec": "chef-zero",
"SoloExec": "chef-solo",
"ShellExec": "chef-shell",
"MainWebsite": "https://chef.io"

Keybase proof

I hereby claim:

  • I am afiune on github.
  • I am afiune (https://keybase.io/afiune) on keybase.
  • I have a public key ASDkfZ1LPWg9iYTrFgd1d6h8tifVkJCldY0N_Bf-aBHaYgo

To claim this, I am signing this object:

@afiune
afiune / BeforeBenchmarksExisted.md
Last active June 5, 2019 14:54
Applications Service Benchmark History
@afiune
afiune / butterfly.json
Created March 6, 2019 07:07
hab-sup-endpoints
[40][default:/src:0]# curl 0.0.0.0:9631/butterfly | jq .
{
"member": {
"members": {
"f6703feb917e4500aded7bc0cbbd052e": {
"id": "f6703feb917e4500aded7bc0cbbd052e",
"incarnation": 4,
"address": "172.17.0.3",
"swim_port": 9638,
"gossip_port": 9638,
@afiune
afiune / list_nodes_with_updated_resources.sh
Last active February 8, 2019 16:08
Automate 2 Tricks
#!/bin/bash
#
# Author:: Salim Afiune <afiune@chef.io>
# Purpose:: List all nodes from an Automate 2 server that their last chef-client run updated one or more resources
#
# Requirements:
# * curl - https://curl.haxx.se/download.html
# * jq - https://stedolan.github.io/jq/
# * API token - https://automate.chef.io/docs/api-tokens/#creating-an-admin-api-token
#
@afiune
afiune / Config Mgmt Request
Last active March 28, 2018 06:04
guitarstrings/multiple-events
{
"strings": [
{
"collection": [
{
},
{
"eventsCount": [
{
@afiune
afiune / .travis.yml
Last active July 20, 2017 15:42
Enable habitat in Travis CI
install:
- curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash
- hab origin key generate $HAB_ORIGIN
branches:
only:
- master
script:
- hab pkg build .
@afiune
afiune / go-relay-testing.out
Last active July 10, 2017 14:14
habitat-go-scaffolding-test
➜ mkdir -p go-relay/habitat
➜ cd go-relay
➜ vi habitat/plan.sh
pkg_name=go-relay
pkg_origin=afiune
pkg_version="0.1.0"
pkg_scaffolding=afiune/scaffolding-go
pkg_source="http://github.com/operable/go-relay"
scaffolding_go_build_deps=(
github.com/kardianos/govendor