(draft; work in progress)
See also:
- Compilers
- Program analysis:
- Dynamic analysis - instrumentation, translation, sanitizers
| import sys | |
| defaults = { | |
| 'PR': {'H': 'High (H)', 'L': 'Low (L)', 'N': 'None (N)'}, | |
| 'A': {'H': 'High (H)', 'L': 'Low (L)', 'N': 'None (N)'}, | |
| 'C': {'H': 'High (H)', 'L': 'Low (L)', 'N': 'None (N)'}, | |
| 'I': {'H': 'High (H)', 'L': 'Low (L)', 'N': 'None (N)'}, | |
| 'AC': {'H': 'High (H)', 'L': 'Low (L)'}, | |
| 'S': {'C': 'Changed (C)', 'U': 'Unchanged (U)'}, | |
| 'UI': {'R': 'Required (R)', 'N': 'None (N)'}, |
| # change to whatever location to where homebrew is installed | |
| if [ -z "$HOMEBREW_HOME" ]; then | |
| export HOMEBREW_HOME=$HOME/homebrew | |
| echo "HOMEBREW_HOME=$HOME/homebrew" >> ~/.profile | |
| fi | |
| # install homebrew for single user | |
| if [ ! -d "$HOMEBREW_HOME" ]; then | |
| mkdir -p $HOMEBREW_HOME && curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C $HOMEBREW_HOME | |
| fi |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "bufio" | |
| "strings" | |
| ) | |
| func main() { |
| /* @(#) converts datasploit text dumps to CSV, consumable by other tools | |
| * @(#) copyright 2018 Stefan Edwards, released under ISC license | |
| */ | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdint.h> | |
| #include <regex.h> | |
| int etlfile(FILE *, regex_t *, regex_t *); |
(draft; work in progress)
See also: