openssl genrsa -out MyRootCA.key 2048
Generating RSA private key, 2048 bit long modulus
................+++
...............................+++
e is 65537 (0x10001)
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 test organization gist. | |
Second message to the test gist. |
In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:
Documentation
-
Accurate / up-to-date systems architecture diagram
-
Accurate / up-to-date network diagram
-
Out-of-hours support plan
-
Incident management plan
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: Zero out Log files | |
copy: dest=/var/log/{{ item }} content='' force=yes | |
with_items: | |
- audit/audit.log | |
- awslogs.log | |
- boot.log | |
- btmp | |
- cloud-init.log | |
- cloud-init-output.log | |
- cron |
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
# Compiled Python files | |
*.pyc | |
# Folder view configuration files | |
.DS_Store | |
Desktop.ini | |
# Thumbnail cache files | |
._* | |
Thumbs.db |
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 python | |
import requests, json | |
SUBDOMAIN='SUBDOMAIN' | |
API_ACCESS_KEY='YOURAPIACCESSKEY' | |
AUTH_CODE='APIAUTHCODE' | |
def get_oncall_name(): | |
url = 'https://{0}.pagerduty.com/api/v1/escalation_policies/on_call'.format(SUBDOMAIN) | |
headers = { |
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/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- mechanize (LoadError) | |
from /usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from grabcharset.rb:3:in `<main>' |
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 ruby | |
#Usage: "ruby mechtest.rb http://testsite.com" | |
require 'mechanize' | |
input_url = ARGV.first | |
mechanize = Mechanize.new | |
page = mechanize.get(input_url) | |
puts page.title |
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 | |
# rotates webserver log files | |
# Version 1.0 | |
# Andy Dyrcz | |
# Files to rotate are in the format: | |
# | |
# FILEPREFIX.ENVIRONMENT.DATE | |
# Get PATHS and SITENAME from control script name |
NewerOlder