Skip to content

Instantly share code, notes, and snippets.

@opt9
opt9 / wpscan_batch.sh
Last active May 9, 2018 02:55 — forked from pyguerder/wpscan_batch.sh
A script to run WPScan periodically on a list of websites
#!/bin/bash
source ~/.rvm/gems/ruby-2.5.1@wpscan/environment
WPSCAN_DIR="${HOME}/Projects/wpscan"
DATABASE_PATH="${WPSCAN_DIR}/data/plugins.json"
SYMBOL="[!]"
TMPFILE="${WPSCAN_DIR}/output.tmp"
declare -A WEBSITES
@opt9
opt9 / centos7-nginx.conf
Created April 13, 2018 02:33
CentOS7 default nginx.conf
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
@opt9
opt9 / gist:7bdc5eaab8eb7626dcffae6f90e5e130
Created March 28, 2018 05:17
CentOS 7 Bash + Git + VirtualEnv + Jobs Shell Prompt Tip
# User specific aliases, functions and config
# Git prompt config
if [ -f ~/.local/share/git/git-prompt.sh ]; then
. ~/.local/share/git/git-prompt.sh
fi
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWSTASHSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
GIT_PS1_SHOWUPSTREAM='auto'
if [ -t 1 ]; then
bind 'set show-all-if-ambiguous on'
bind 'TAB:menu-complete'
fi
@opt9
opt9 / .vimrc
Last active March 28, 2018 04:15
Some Linux .vimrc config
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
" the call to :runtime you can find below. If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
@opt9
opt9 / .profile
Created April 5, 2017 04:04
Linux Color Man Page config
export LESS_TERMCAP_mb=$'\e[1;34m' # begin bold
export LESS_TERMCAP_md=$'\e[1;32m' # begin blink
export LESS_TERMCAP_so=$'\e[01;44;37m' # begin reverse video
export LESS_TERMCAP_us=$'\e[01;36m' # begin underline
export LESS_TERMCAP_me=$'\e[0m' # reset bold/blink
export LESS_TERMCAP_se=$'\e[0m' # reset reverse video
export LESS_TERMCAP_ue=$'\e[0m' # reset underline
export GROFF_NO_SGR=1 # for konsole and gnome-terminal
export MANPAGER='less -s -M +Gg'
@opt9
opt9 / .bashrc
Last active March 7, 2017 04:32 — forked from marioBonales/.bashrc
Default .bashrc for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace