I hereby claim:
- I am shortstack on github.
- I am shortstack (https://keybase.io/shortstack) on keybase.
- I have a public key whose fingerprint is D02E 8221 6BFD BD73 4F72 CD78 2B4D 49BF 46E0 59DB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
""" | |
whitney champion | |
advent of code | |
""" | |
import sys | |
import re | |
import hashlib | |
# day 1: not quite lisp |
#!/bin/sh | |
nodes=`curl --silent -G 'http://localhost:8080/v4/nodes' --data-urlencode "query=[\"<\", \"report-timestamp\", \"$(date -d '-1 day' -Isec)\"]" | jq '.[].certname'` | |
for node in $nodes; do | |
puppet cert clean $node | |
puppet node deactivate $node | |
done |
cmd.exe /c winrm quickconfig -q | |
cmd.exe /c winrm quickconfig -transport:http | |
cmd.exe /c winrm set winrm/config @{MaxTimeoutms="1800000"} | |
cmd.exe /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="800"} | |
cmd.exe /c winrm set winrm/config/service @{AllowUnencrypted="true"} | |
cmd.exe /c winrm set winrm/config/service/auth @{Basic="true"} | |
cmd.exe /c winrm set winrm/config/client/auth @{Basic="true"} | |
cmd.exe /c winrm set winrm/config/listener?Address=*+Transport=HTTP @{Port="5985"} | |
cmd.exe /c net stop winrm | |
cmd.exe /c sc config winrm start= auto |
############################################# | |
# USAGE: ansible-playbook create-users.yml # | |
############################################# | |
--- | |
- name: Set up Cognito test users | |
hosts: localhost | |
vars: | |
user_pool_id: | |
client_id: |
--- | |
- hosts: localhost | |
vars: | |
kolide_url_cmd: "{{ kolide_url }}" | |
kolide_user_cmd: "{{ kolide_user }}" | |
kolide_pw_cmd: "{{ kolide_pw }}" | |
tasks: | |
- name: Login and get bearer token | |
uri: |
import os | |
import sys | |
import requests | |
import time | |
import json | |
from multiprocessing import Process | |
def follow(thefile): | |
thefile.seek(0,2) |
#!/usr/bin/env python3 | |
import socket | |
import sys | |
import json | |
import zlib | |
import copy | |
import base64 | |
import re | |
import ssl | |
import logging |
import os | |
import sys | |
import boto3 | |
import pytz | |
from datetime import datetime,timedelta | |
from os import path | |
s3 = boto3.resource('s3') | |
s3_client = boto3.client('s3') |
import json | |
import yaml | |
import requests | |
url = "https://sigma.limacharlie.io/convert/rule" | |
files = {'rule': open('sigma_rule.yml', 'rb').read()} | |
headers = { | |
"Content-Type": "application/x-www-form-urlencoded" |