Skip to content

Instantly share code, notes, and snippets.

View jungopro's full-sized avatar
:octocat:
terraform decoupling

Omer Barel jungopro

:octocat:
terraform decoupling
View GitHub Profile
@jungopro
jungopro / python-csv-parser.py
Created January 4, 2018 08:55
Python Script to extract specific rows from a .csv file based on a lookup string in a given column
"""Python Script to extract specific rows from a .csv file based on a lookup string in a given column.
Information:
maintained by: Omer Barel
mail: barelomer@gmail.com
website: http://jungopro.com
Example:
python3 CSV_Report.py -o /Users/User/Desktop/Original.csv -t /Users/User/Desktop/output.csv -l 123456789 -c 2
"""
import csv
import argparse
@jungopro
jungopro / Readme.md
Last active January 11, 2018 16:26
Configure HP Bios Settings

SetBiosConfiguration.ps1 Usage and Description

Description

This script will take parameters from .CSV file and configure various BIOS options on HP DL360 / DL380 Server (Gen9)

Prerequisites

  • Windows Workstation with Powershell 5.1 installed
  • HP Powershell cmdlets for BIOS & iLO installed
@jungopro
jungopro / AddtoPath.ps1
Created January 14, 2018 16:16
Add a folder to the Environment PATH
<#
.SYNOPSIS
Add a folder to the Environment PATH
.DESCRIPTION
This script will take a folder as parameter and edit the system PATH variable for all users, appending the specified folder to the existing PATH
.PARAMETER AddedLocation
Full path of location to add. Spcify with " " around it please
@jungopro
jungopro / PSTemplate.ps1
Created January 14, 2018 16:21
Basic Template for writing a PS script
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
@jungopro
jungopro / modified-dashboard.json
Created September 8, 2018 20:39
Modified Grafana Dashboard Example
{
"dashboard": {
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
@jungopro
jungopro / requirements.yaml
Created September 10, 2018 07:01
Modified requirements.yaml
dependencies:
...
- name: grafana
version: 0.0.37
## uncomment the below line to enable
e2e-repository: file://../grafana
## comment out the below line to disable
# repository: https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/
condition: deployGrafana
@jungopro
jungopro / customized-dashboard.json
Created September 10, 2018 07:06
Sample Customised Grafana Dashboard
{
"__inputs": [
{
"name": "DS_DEV-PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@jungopro
jungopro / values.yaml
Created September 10, 2018 07:14
Grafana modified values.yaml
...
## A list of additional configmaps that contain -dashboard.json and/or -datasource.json files
## that should be imported into grafana.
serverDashboardConfigmaps:
- custom-dashboards
...
@jungopro
jungopro / custom-dashboards.yaml
Created September 10, 2018 07:15
custom-dashboards.yaml configMap
apiVersion: v1
kind: ConfigMap
metadata:
name: custom-dashboards
data:
{{ (.Files.Glob "custom-dashboards/*.json").AsConfig | indent 2 }}
@jungopro
jungopro / main.tf
Created October 5, 2018 15:46
Basic provider with hardcoded credentials
provider "azurerm" {
subscription_id = "xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx"
client_id ="xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx"
client_secret ="xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx"
tenant_id ="xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx"
}