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 all of Scapy's code so we can use it as a library (rather than the runtime environment it also supports) | |
# I don't like this "import *" and would much rather import Scapy functionality under a namespace but I'm fairly | |
# new to the library and my initial efforts seemed to throw some errors so I just copied this from other sources. | |
# Don't judge me. | |
from scapy.all import * | |
# For non python people, this is just python's, somewhat strange, way of saying | |
# "If this file is being executed and not just imported into another file" | |
if __name__ == '__main__': |
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 all of Scapy's code so we can use it as a library (rather than the runtime environment it also supports) | |
# I don't like this "import *" and would much rather import Scapy functionality under a namespace but I'm fairly | |
# new to the library and my initial efforts seemed to throw some errors so I just copied this from other sources. | |
# Don't judge me. | |
from scapy.all import * | |
# For non python people, this is just python's, somewhat strange, way of saying | |
# "If this file is being executed and not just imported into another file" | |
if __name__ == '__main__': |
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
/* Copyright (c) 2017, Qrator Labs */ | |
/* All rights reserved. */ | |
/* Redistribution and use in source and binary forms, with or without */ | |
/* modification, are permitted provided that the following conditions are met: */ | |
/* 1. Redistributions of source code must retain the above copyright notice, this */ | |
/* list of conditions and the following disclaimer. */ | |
/* 2. Redistributions in binary form must reproduce the above copyright notice, */ | |
/* this list of conditions and the following disclaimer in the documentation */ |
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 | |
import socket | |
import struct | |
# These constants map to constants in the Linux kernel. This is a crappy | |
# way to get at them, but it'll do for now. | |
RTMGRP_LINK = 1 | |
NLMSG_NOOP = 1 | |
NLMSG_ERROR = 2 |
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
" When started as "evim", evim.vim will already have done these settings. | |
if v:progname =~? "evim" | |
finish | |
endif | |
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
filetype off |
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
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
- Stores data elements based on an sequential, most commonly 0 based, index.
- Based on tuples from set theory.
NewerOlder