Skip to content

Instantly share code, notes, and snippets.

@msheiny
msheiny / Vagrant-ansible.md
Created September 28, 2013 20:30
Vagrant and ansible notes

ansible-playbook -u vagrant -i provisioning/ansible_hosts provisioning/playbook.yml --private-key=~/.vagrant.d/insecure_private_key

@msheiny
msheiny / salt-primer.md
Last active August 29, 2015 13:56
Salt primer documentation

Salt Primer

##Concepts

  • Salt-master - salt server that clients communicate to
  • salt-minion - name for the salt client
    • by default:
      • looks for master with dns 'salt'
      • tries to specify its own hostname through fqdn, /etc/hostname, /etc/hosts
@msheiny
msheiny / maven-notes.md
Last active August 29, 2015 13:58
Notes from brief encounter with maven

High-level

Maven is a build automation tool for java (though it can also be used for other languages). It has the ability to pull in java libraries and maven plugins from a network repository.

All build files will go in ./target and it is a good idea to ignore that in your version control.

High-level file directory looks like this:

├── pom.xml - define project parameters here
@msheiny
msheiny / django-notes.md
Last active August 29, 2015 13:59
Django Notes

Accessing ORM from outside django

import os
# first set your django settings (might need to append sys path for this to work)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_root.settings.local")
# then you can import models and access ORM functions
from django_root.myapp import models
models.MyTable.objects.all()
@msheiny
msheiny / SANS560.md
Last active August 29, 2015 13:59
security classes

Reconnaissance, Scoping

Scoping

  • Metadata parsing - office files, images,
  • tools: exiftool
layout title date comments categories
post
Chef Recipes Expanded
2014-05-19 18:19:18 -0400
true
chef

More chef notes. Watched some videos and read some documentation - and then I wrote some notes. Why? Seemed like a good thing to do at the time.

#main-table {
// background-image: url(/userContent/jeffgoldblum.jpg) !important;
background-image: url(http://i.imgur.com/vPzDej0.jpg) !important;
}
#top-panel {
background-image: none;
// background-image: url(http://i.imgur.com/q0zY2hJ.jpg);
background-image: url(/userContent/red-bar.jpg);
}
@msheiny
msheiny / fedora-nvidia-steam
Created October 19, 2014 04:33
NVIDIA Steam
Install the following:
* EPEL repository
* kmod-nvidia
* xorg-x11-drv-nvidia-libs.i686
You'll need to disable the SELinux boolean settings "selinuxuser_execheap" in order to run certain games (like Counter-strike GO):
Here's temporarily:
```bash
@msheiny
msheiny / netflow_asa.yaml
Created November 6, 2014 22:07
Logstash netflow codec description for Cisco ASA
---
148:
- 4
- :conn_id
8:
- :ip4_addr
- :ipv4_src_addr
7:
- 2
- :src_port
@msheiny
msheiny / gist:5b735391d45f5b90aab6
Created October 12, 2015 15:07
Signing VirtualBox kernel module under UEFI Secure Boot
# Ripped from this fine internet helper -- http://gorka.eguileor.com/vbox-vmware-in-secureboot-linux/
# Create key
$ openssl req -new -x509 -newkey rsa:2048 -keyout msheiny.priv -outform DER -out msheiny.der -nodes -days 36500 -subj "/CN=msheiny/"
# Sign vboxdrv
$ sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./msheiny.priv ./msheiny.der $(modinfo -n vboxdrv)
# import key
$ sudo mokutil --import msheiny.der