Skip to content

Instantly share code, notes, and snippets.

user threatconnect;
worker_processes auto;
events {
worker_connections 1024;
}
stream {
upstream https {
server 127.0.0.1:8443;
}
upstream smtp {
#!/usr/bin/python
# TODO: wrap boto3.client.create_db_instance in try for various errors
# TODO: implement wait_for_resource
# TODO: determine output result
# WARN: This module is very untested and will likely fail miserably
EXAMPLES = '''
'''
[root@devops-1 mturner]# tree --dirsfirst test/v2/
test/v2/
├── batch
│   ├── errors
│   │   ├── _auto.md
│   │   ├── _data.md
│   │   ├── _examples.md
│   │   ├── _main.md
│   │   └── _title.md
│   ├── _auto.md
@tc-turner
tc-turner / ApiResources.java
Last active October 31, 2017 13:03
List all available API endpoints in a JBoss/RestEasy application.
/**
* Created by mturner on 3/18/16.
*/
package com.cyber2.tc.api.v2.service;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonMethod;
import org.codehaus.jackson.map.ObjectMapper;
import org.jboss.resteasy.core.Dispatcher;
import org.jboss.resteasy.core.ResourceInvoker;
import org.jboss.resteasy.core.ResourceMethod;