Skip to content

Instantly share code, notes, and snippets.

View zeddee's full-sized avatar

Zed zeddee

View GitHub Profile

Hyper-V internal networking

writing this down before i forget.

main takeaways:

  • restart Windows when in doubt.
  • Don't use Hyper-V's "External" virtual switches.
  • Instead:

When using the official MISP ova, the baseurl is set to https://localhost:8443. This makes using the web interface difficult on any other machine than the VM (which is the default, because the OVA doesn't come with Xwin/Xorg) because every link on the web interface will attempt to redirect you to `https://localhost:8443' instead of the actual URL you're using.

The solution is to modify the baseurl in MISP's config.php file:

sudo -u www-data vim /var/www/MISP/app/Config/config.php
git config --global --add protocol.keybase.allow always
@zeddee
zeddee / bash-cheatsheet.md
Last active August 23, 2020 01:42
Zed's bash cheatsheet

Bash cheatsheet

Reading: Oswald Campesato, Bash Command Line and Shell Scripts: Pocket Primer, (Dulles, VA: Mercury Learning and Information, 2020)

Basics

  • history
  • cat
  • echo
from pandas import json_normalize
with open(os.path.join(os.path.curdir, "samples/joesand-24004.json")) as f:
data = json.load(f)
output = json_normalize(data)
transposed_output = output.transpose()
transposed_output.to_excel("output.xlsx")
@zeddee
zeddee / git-allow-keybase.md
Created April 12, 2020 10:27
add keybase to list of allowed protocols in git

add keybase to list of allowed protocols in git

git config --global --add protocol.keybase.allow always
@zeddee
zeddee / basic-azure-rest-client.py
Last active February 10, 2020 08:37
Me trying to grok how to make a basic REST client in Python for Azure Blob Storage services
#!/usr/bin/env python3
import requests
import os
from dotenv import load_dotenv
from datetime import datetime
from azure.storage.common import CloudStorageAccount
load_dotenv('.env')