Skip to content

Instantly share code, notes, and snippets.

#!/usr/local/bin/python
# Yannick Guillerm - Scality
# yannick.guillerm@scality.com
# 04/04/18
import requests
import sys, getopt
import argparse
import os
#!/usr/local/bin/python
# SquareBox CatDV Scality HTTP REST (Sproxyd) plugin
# Yannick Guillerm - Sales Engineer Scality
# yannick.guillerm@scality.com
# V1 - 04/09/14
#
# Description: use this plugin to archive assets from CatDV tier 1 storage to the Scality RING
# via the Scality RING Sproxyd (HTTP REST) connector. Two opcodes:
# - "upload" - HTTP PUT CatDV asset to the Scality RING via the S3 connector. If upload
@obiyann
obiyann / zenkocheck.py
Created June 26, 2018 04:37
Zenko Machinebox.io tagbox integration - check
#!/usr/local/bin/python
# Yannick Guillerm - Sales Engineer Scality
# yannick.guillerm@scality.com
# Zenko MachineBox.ai TagBox integration CHECK
# Description: uploads a file to Zenko S3. Run Machinebox.io TagBox CHECK. Populates the S3 object metadata with Machinebox.io metadata tags.
# 05/25/18
import requests
import sys, getopt
@obiyann
obiyann / zenkoteach.py
Created June 26, 2018 04:36
Zenko Machinebox.io tagbox integration - teach
#!/usr/local/bin/python
# Yannick Guillerm - Sales Engineer Scality
# yannick.guillerm@scality.com
# Zenko MachineBox.ai TagBox integration TEACH
# Description: uoloads several set of files to Zenko S3. Runs Machinebox.io TagBox TEACH to tag images with specific tag.
# 05/25/18
import requests
@obiyann
obiyann / Datadog-Minimum-Agent-Install-Procedure
Last active April 18, 2024 21:15
Minimum Datadog agent configuration: enable all Datadog agent configuration: logs, live processes and network traffic
##########
# 1- Install the Datadog agent
##########
# Install the agent with the command found on the Datadog instance agent page:
# https://app.datadoghq.com/account/settings/agent/latest
# HIGHLY RECOMMENDED: enable Single Step APM instrumentation so you won't have to do it later.
# For Ubuntu:
% DD_API_KEY=<API_KEY> DD_SITE="datadoghq.com" DD_APM_INSTRUMENTATION_ENABLED=host bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script_agent7.sh)"
##########