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
FROM centos:7 | |
LABEL maintainer="[email protected]" | |
ENV NODE_VERSION 4.7.0 | |
ENV METEOR_VERSION 1.4.2.3 | |
ENV MONGO_URL=mongodb://mongodb:3002/meteor | |
ENV ROOT_URL=http://localhost | |
ENV PORT=3000 |
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
--- | |
version: '2.2' | |
services: | |
mongodb: | |
build: mongodb/ | |
restart: always | |
command: /usr/bin/mongod --smallfiles --config /etc/mongod.conf | |
volumes: | |
- mongodb:/var/lib/mongo | |
ports: |
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
magnet:?xt=urn:btih:7ffbcd8cee06aba2ce6561688cf68ce2addca0a3&dn=BreachCompilation&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fglotorrents.pw%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337 |
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
#build mozdefUI | |
#rm all previous docker containers/images | |
docker ps -a | |
<list> | |
docker rm <imageid> | |
docker images | |
<list> | |
docker rmi $(docker images -qf "dangling=true") | |
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 re | |
import json | |
import requests | |
from datetime import datetime | |
from dateutil.parser import parse | |
def apachetime(s): | |
""" |
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
Input: A json file with iocs of IP address, category and score like: | |
{ | |
"2.3.4.5" : { | |
"P2P" : "55" | |
}, | |
"1.2.3.4" : { | |
"Brute_Forcer" : "117", | |
"Scanner" : "117" | |
} | |
} |
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 requests | |
import json | |
r=requests.get(url="http://elasticsearchservernamegoeshere:9200/_nodes/stats?pretty=true") | |
nodestats=r.json() | |
for node in nodestats['nodes']: | |
nodename=nodestats['nodes'][node]['name'] | |
threadpool=nodestats['nodes'][node]['thread_pool'] | |
for pool in threadpool: | |
threads=threadpool[pool]['threads'] | |
rejected=threadpool[pool]['rejected'] |
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
def to_unicode_or_bust(obj, encoding='utf-8'): | |
if isinstance(obj, basestring): | |
if not isinstance(obj, unicode): | |
obj = unicode(obj, encoding) | |
return obj |
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
def genMeteorID(): | |
return('%024x' % random.randrange(16**24)) |
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/osascript | |
set inputVolume to input volume of (get volume settings) | |
if inputVolume = 0 then | |
set inputVolume to 20 | |
else | |
set inputVolume to 0 | |
end if | |
set volume input volume inputVolume |