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
| Pillar | |
| file | |
| users/dev_accounts.sls | |
| company_dev_accounts: | |
| user.1: | |
| username: user.1 | |
| fullname: user 1 | |
| shell: /bin/bash | |
| home: /home/user.1 | |
| uid: 10000 |
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
| { | |
| "AlarmName": "breitling_Breitling-Daylight_UnHealthyHostCount Alarm", | |
| "AlarmDescription": "Breitling-Daylight_UnHealthyHostCount Alarm", | |
| "AWSAccountId": "271794010589", | |
| "NewStateValue": "ALARM", | |
| "NewStateReason": "Threshold Crossed: 1 datapoint (0.0) was not greater than the threshold (0.0).", | |
| "StateChangeTime": "2016-07-06T15:36:41.406+0000", | |
| "Region": "US East - N. Virginia", | |
| "OldStateValue": "OK", | |
| "Trigger": { |
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
| #FILE: hostname.list | |
| hostname.domain.com | |
| hostname2.domain.com | |
| hostname3.domain.com | |
| # shell script | |
| for a in `cat hostname hostname.list` do ssh user@$a "yum remove datadog"`; done |
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
| $users = ['david.gonzales', 'akhter.ali', 'sierah.nguon'] | |
| $users.each |String $users| { | |
| user { $users: | |
| ensure => 'present', | |
| gid => '500', | |
| password_hash => '!!', | |
| uid => '500', | |
| shell => '/bin/bash'} | |
| } |
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
| ``` | |
| project_root\ | |
| \packages | |
| \tests | |
| ``` |
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
| ``` | |
| project_root\ | |
| \packages | |
| \tests | |
| ``` |
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
| ``` | |
| project_root\ | |
| \packages | |
| __init__.py | |
| \tests | |
| __init__.py | |
| ``` |
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 random | |
| import time | |
| z = range(0, 99) | |
| while True: | |
| z1 = random.choice(z) | |
| i = random.sample(range(0,99), 4) | |
| q = i[0] | |
| w = i[1] | |
| e = i[2] | |
| time.sleep(1) |
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
| this is a gist :) |
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 python3 | |
| import requests | |
| import socket | |
| def get_page_code(): | |
| test = requests.get('http://www.google.com') | |
| return test.status_code |