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
| @Grab('org.codehaus.groovy.modules.http-builder:http-builder:0.7') | |
| @Grab('oauth.signpost:signpost-core:1.2.1.2') | |
| @Grab('oauth.signpost:signpost-commonshttp4:1.2.1.2') | |
| import groovyx.net.http.RESTClient | |
| println "hello" | |
| def restClient = new RESTClient( 'http://dummy.restapiexample.com/' ) | |
| def res = restClient.get(path: "api/v1/employees") | |
| print res.data |
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 boto3 | |
| import os | |
| def lambda_handler(event, context): | |
| client = boto3.client('rds') | |
| db_name = os.environ['db_name'] | |
| print(db_name) |
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
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: Fargate and ALB Create | |
| Metadata: | |
| "AWS::CloudFormation::Interface": | |
| ParameterGroups: | |
| - | |
| Label: | |
| default: "Project Name Prefix" | |
| Parameters: |
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 urllib.request | |
| import json | |
| import sys | |
| import os | |
| data = {"text": sys.argv[1]} | |
| header = {"Content-type": "application/json"} | |
| req = urllib.request.Request( | |
| os.environ["WEBHOOK_URL"], json.dumps(data).encode(), header | |
| ) |
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
| - name: Ansible sample 1 | |
| hosts: localhost | |
| connection: local | |
| handlers: | |
| - name: handler sample | |
| command: touch handler.log | |
| tasks: | |
| - name: install nkf | |
| yum: name=nkf | |
| - name: directory creation sample |
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
| <style> | |
| #container { | |
| display: grid; | |
| grid-template-rows: 1fr 1fr; | |
| grid-template-columns: 1fr 1fr 1fr; | |
| } | |
| @media (max-width:980px) { | |
| #container { | |
| display: grid; |