This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Colors and styles | |
BOLD='\033[1m' | |
DIM='\033[2m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
RED='\033[0;31m' | |
BLUE='\033[0;34m' | |
CYAN='\033[0;36m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
def get_instance_metadata(): | |
metadata_url = "http://169.254.169.254/latest/meta-data/tags/instance" | |
res = requests.get(metadata_url) | |
data_list = res.text.split() | |
data_dict = {} | |
for item in data_list: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
This script generate custom editors for specific categories, editors just list, view and publish to specific categories | |
*/ | |
function create_custom_editor_roles($editor_categories) { | |
foreach ($editor_categories as $editor => $category) { | |
$role_slug = sanitize_title($editor) . '_editor'; | |
$role_name = ucwords($editor) . ' Editor'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#Oguzhan Coskun <[email protected]> | |
display_usage() { | |
echo "connect <connection name> Open the given connection" | |
echo "connect all Open all the connections" | |
echo "disconnect <connection name> Close the given connection" | |
echo "disconnect all Close all the connections" | |
echo "ls List all the configured connections" | |
echo "connections Display ongoing connections" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extractors": [ | |
{ | |
"condition_type": "none", | |
"condition_value": "", | |
"converters": [ | |
{ | |
"config": {}, | |
"type": "numeric" | |
}, |