Skip to content

Instantly share code, notes, and snippets.

View mandeepbal's full-sized avatar
🔥
🔥

Mandeep Bal mandeepbal

🔥
🔥
View GitHub Profile
@ultrasonex
ultrasonex / AWSCronValidator.py
Last active January 23, 2024 09:25
AWS Cron Validator : Schedule expression
# Author : Niloy Chakraborty
# AWS Schedule Expression cron expression validator
import re
from voluptuous import Invalid
import datetime
minute_regex = r"^([*]|([0]?[0-5]?[0-9]?)|(([0]?[0-5]?[0-9]?)(\/|\-)([0]?[0-5]?[0-9]?))|" \
"(([0]?[0-5]?[0-9]?)((\,)([0]?[0-5]?[0-9]?))*))$"
@lrascao
lrascao / gist:f57312ff33b799c4c0db56b10e80fe26
Created March 31, 2016 16:19
Export/Import datadog dashboards
dash_id=xxxx
api_key=xxx
app_key=xxx
# 1. export
curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json
# 2. edit dash.json
move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "<USERNAME>"
client_key "#{current_dir}/user.pem"
chef_server_url "https://api.opscode.com/organizations/<ORGANIZATION>"
cache_type 'BasicFile'
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path ["#{current_dir}/../cookbooks"]
@mandeepbal
mandeepbal / gist:0e10413a66aeeb7a38ae
Last active August 29, 2015 14:09
manageiq install using ruby 2.0

Install ManageIQ from source

To get started developing ManageIQ, or to deploy on an OS other than CentOS or Red Hat Enterprise Linux (RHEL), there are a few steps to get started.

A lot of this has been automated in the ManageIQ kickstart file. Details on installing an image using a quickstart file are available from the Kickstart page on Fedora.

metadata.rb

name              'my_postgresql'
license           'Apache 2.0'
version           '1.0.0'
 
depends           'postgresql'