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
config_host: If present the apache virtual host configuration files will be read from a remote server rather than a local path. | |
config_path: Specifies the path to the folder containing the apache virtual host configuration files. | |
dump_urls: Reads apache virtual host configuration files and outputs a list of browser compatible urls. | |
test_urls: Reads a list of browser compatible urls like produced by dump_urls from a file and tests them. | |
use_proxy: Flag indicating if we want to use a proxy server or not. | |
proxy_url: The URL for the proxy to use. | |
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
Specific tput sub-commands are discussed later. | |
Direct | |
Call tput as part of a sequence of commands: | |
tput setaf 1; echo "this is red text" | |
Use ; instead of && so if tput errors the text still shows. | |
Shell variables |
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
#!/bin/bash | |
#=============================================================================== | |
# HEADER | |
#============================================================================== | |
# IMPLEMENTATION | |
#% name bash_template | |
#% title Bash Shell Template | |
#% version 0.0.1 | |
#% checksum 5926ed74eb9baf0dc74b08e2e9be26a0 | |
#% author Matthew Myers |
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
#!/bin/bash | |
#================================================================ | |
#% SYNOPSIS | |
#+ ${SCRIPT_NAME} [-hv] [-o[file]] args ... | |
#% | |
#% DESCRIPTION | |
#% This is a script template | |
#% to start any good shell script. | |
#% | |
#% OPTIONS |
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
ssh -D 8123 -f -C -q -N [email protected] | |
Explanation of arguments | |
-D: Tells SSH that we want a SOCKS tunnel on the specified port number (you can choose a number between 1025-65536) | |
-f: Forks the process to the background | |
-C: Compresses the data before sending it | |
-T Disable pseudo-tty allocation | |
-q: Uses quiet mode | |
-N: Tells SSH that no command will be sent once the tunnel is up |
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
Launcher Shortcuts: | |
======= | |
Main Console: | |
ConEmu64 -Dir %USERPROFILE% -Config MainConsole -Icon .\Tools\msys2-64\msys2.ico -Title "Main Console" -Monitor 1 -Quake -NoSingle -run {MSYS2 Shell} | |
Target: | |
"C:\Program Files\ConEmu\ConEmu64.exe" -Config MainConsole -Icon .\Tools\msys2-64\msys2.ico -Title "Main Console" -Monitor 1 -Quake -NoSingle -run {MSYS2 Shell} | |
Start in: %USERPROFILE% | |
======= |
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
#!/bin/bash | |
#[[ "${HOME}/bin/shelldev.sh" ]] && source "${HOME}/bin/shelldev.sh" | |
declare -a vhosts | |
declare noclr=$'\e[39m' | |
declare runner="........................................"; | |
declare list_hosts="no" | |
declare hosts_list="no" | |
declare config_isremote="no" | |
declare config_host="" |
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
#!/bin/sh | |
# usage: no_scroll_line top|bottom 'non-scrolling line content' command to run with args | |
# | |
# Set up a non-scrolling line at the top (or the bottom) of the | |
# terminal, write the given text into it, then (in the scrolling | |
# region) run the given command with its arguments. When the | |
# command has finished, pause with a prompt and reset the | |
# scrolling region. |
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
" Doug Black | |
+-- 5 lines: " Colors ------------------------------------- | |
+-- 5 lines: " Misc --------------------------------------- | |
+-- 9 lines: " Spaces & Tabs ------------------------------ | |
+-- 8 lines: " UI Layout ---------------------------------- | |
+-- 5 lines: " Searching ---------------------------------- | |
+-- 8 lines: " Folding ------------------------------------ | |
+-- 9 lines: " Line Shortcuts ----------------------------- | |
+-- 21 lines: " Leader Shortcuts --------------------------- | |
+-- 7 lines: " Powerline ---------------------------------- |
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
# vim: set sw=5 ts=5 sts=5 et tw=100 foldmarker={{,}} foldlevel=0 foldmethod=marker nospell nohl: | |
# Global options {{ | |
Host * | |
ControlMaster auto | |
ControlPath ~/.tmp/control:%h:%p:%r | |
ServerAliveInterval 300 | |
ServerAliveCountMax 2 | |
StrictHostKeyChecking no | |
IdentitiesOnly yes |
NewerOlder