Skip to content

Instantly share code, notes, and snippets.

SNORTVER=2.9.15
DAQVER=2.0.6
LUAJITVER=2.0.5
OINKCODE=$1
sudo apt-get update
sudo apt-get install -y ethtool g++
sudo apt-get install -y build-essential
sudo apt-get install -y libpcap-dev libpcre3-dev libdumbnet-dev zlib1g-dev
sudo apt-get install -y bison flex
# Default setup for vim
git clone https://gist.github.com/861462c928b1a0bcdeea8dcb5f75ffed.git ~/maka-env/vimrc
mv ~/maka-env/vimrc/.vimrc ~/.vimrc
rm -rf ~/maka-env/vimrc
rm -rf ~/.vim/autoload
rm -rf ~/.vim/bundle
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
@maka-io
maka-io / install-silk.sh
Last active July 20, 2024 07:50
Install and configure SiLK on a generic Ubuntu (flavor) environment
#!/bin/bash
# These version are in lock-step together. If you update one, be sure to go to the SiLK site and
# get the required versions for the others.
SILK_VER=3.18.3
YAF_VER=2.11.0
LIBFXBUF_VER=2.4.0
AFTERGLOW_VER=1.6.5
# The SNIF_CIDR subnet is the where you want to monitor traffic.
# The NAT_CIDR is for general internet related work, or to SSH into it.
@maka-io
maka-io / mime.types
Last active July 31, 2019 14:05
OSX MIME types for java development
#--Oracle Corporation MIME Information
# Do not delete the above line. It is used to identify the file type.
#
# Copyright (c) 2006, 2010 Oracle Corporation. All rights reserved.
# Use is subject to license terms.
#
type=application/octet-stream exts=bin
type=application/astound exts=asd,asn
type=application/fastman exts=lcc
#!/bin/bash
if [ "$*" == "" ]; then
echo "No arguments provided"
exit 1
fi
if [[ $# -eq 0 ]] ; then
echo 'Provide a bssid'
exit 1
fi
#!/bin/bash
echo "Install netcdf"
brew reinstall netcdf
echo "Stop postgres if installed"
pg_ctl -D /usr/local/var/postgres stop -s -m fast
echo "Remove previous verion of postgis"
brew uninstall --force postgis
@maka-io
maka-io / env-linux.sh
Last active September 19, 2019 14:33
#!/bin/bash
sudo yum install git tree -y
sudo apt install git tree -y
# Setup tmux mouse
echo "set-option -g mouse on" > ~/.tmux.conf
git clone https://gist.github.com/49460dca13796b8c654b7639436c8f48.git ~/maka-env/bash_profile
mv ~/maka-env/bash_profile/.bash_profile ~/.bash_profile
#!/bin/bash
# Install xcode
xcode-select --install
sudo xcode-select --switch /Library/Developer/CommandLineTools
#Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew update
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
Ljg3NSAwLjg1Nzk4MzY1IDAuNzY1NjI1IDAuODEyNzI1Nzk0OAAQAoAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
" 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
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'puremourning/vimspector'
Plugin 'rustushki/JavaImp.vim'