This file contains 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
{ | |
"type": "bundle", | |
"id": "bundle--cf20f99b-3ed2-4a9f-b4f1-d660a7fc8241", | |
"spec_version": "2.0", | |
"objects": [ | |
{ | |
"type": "intrusion-set", | |
"id": "intrusion-set--da1065ce-972c-4605-8755-9cd1074e3b5a", | |
"created": "2015-05-15T09:00:00.000Z", | |
"modified": "2015-05-15T09:00:00.000Z", |
This file contains 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 | |
# vi: ts=4:sw=4:et | |
# | |
# twotwo.sh | |
# This script allows you to install/update Enlightenment 22 git version on | |
# Ubuntu 18.04 LTS or Debian testing (buster), or remove E22 git from your system. | |
# Originally from: http://ubuntuforums.org/showthread.php?t=2203190 | |
# By: Philippe J. Guillaumie (batden AT sfr DOT fr). | |
# Additional updates by: Bryan Hundven (bryanhundven AT gmail DOT com). | |
# |
This file contains 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 os | |
def get_size(start_path = '.'): | |
total_size = 0 | |
for dirpath, dirnames, filenames in os.walk(start_path): | |
for f in filenames: | |
fp = os.path.join(dirpath, f) | |
total_size += os.path.getsize(fp) | |
return total_size | |
print get_size() |
This file contains 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
# Criando um script .sh para executar todos os comandos | |
#user@servidor:~$ wget https://gist.githubusercontent.com/SteveClement/26d9c9035c635fb7bff05ff8eacd1a94/raw/d3a82be86039f72f25f8d2b8cbc6d5299be75cac/install_ffmpeg_libfdkaac.sh | |
#user@servidor:~$ chmod +x install_ffmpeg_libfdkaac.sh | |
#user@servidor:~$ ./install_ffmpeg_libfdkaac.sh | |
YOLO="true" # Living on the bleeding edge | |
x265="true" # Include libx265 | |
mkdir -p ~/bin |
This file contains 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 bash | |
INPUT_FILE="${1}" | |
if [[ ! -f "${1}" ]]; then | |
echo "File "${1}" does not exist" | |
exit -1 | |
fi | |
if [[ ${INPUT_FILE} == *"/"* ]]; then | |
echo "Slash exists" |
This file contains 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 bash | |
# | |
# convert a mysql database to sqlite3 | |
# | |
#see https://stackoverflow.com/questions/5164033/ | |
# export-a-mysql-database-to-sqlite-database | |
mysql_host=localhost | |
mysql_user=george | |
#mysql_passwd=**************** |
This file contains 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 bash | |
BASE="2.4" | |
CURRENT_BRANCH=$(git branch | grep ^\* |cut -f 2 -d\ ) | |
git checkout $BASE && git fetch upstream | |
git merge upstream/$BASE && git push | |
# gh-pages (not needed, will be done during doc regen) |
This file contains 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 | |
## This script is obsolete and only for historical reasons still present. | |
import xml.etree.ElementTree as etree | |
from optparse import OptionParser, OptionGroup | |
from datetime import timedelta, date | |
import calendar | |
import urllib.request | |
import os, re, sys |
This file contains 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/python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
from jsonschema.cli import main | |
if __name__ == '__main__': | |
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) |
This file contains 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
########### Checking Requirements ########### | |
[OK] Docker is Installed. Output: Docker version 18.06.1-ce, build e68fc7a | |
[OK] Git is Installed. Output: git version 2.19.1 | |
[OK] Check: https://misp.dcso.de | |
Result: * Connected to misp.dcso.de (185.183.127.100) port 443 (#0). | |
[OK] Check: https://dockerhub.dcso.de/v2/ | |
Result: * Connected to dockerhub.dcso.de (217.110.69.251) port 443 (#0). | |
[OK] Check: https://github.com/DCSO/misp-dockerized | |
Result: * Connected to github.com (192.30.255.113) port 443 (#0). |