Install command line tools:
then run this:
git config --global diff.tool bc3
git config --global difftool.bc3 trustExitCode true
git config --global merge.tool bc3
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; | |
} |
# Install tmux 2.8 on Centos | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# cd src | |
cd /usr/local/src | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz |
function jc_remote { | |
jmx_host=$1 | |
jmx_port=${2:-5000} | |
proxy_port=${3:-8123} | |
echo "Connecting jconsole to $jmx_host:$jmx_port via SOCKS proxy using local port $proxy_port" | |
ssh -ND $proxy_port $jmx_host & | |
jconsole -J-DsocksProxyHost=localhost -J-DsocksProxyPort=${proxy_port} \ | |
service:jmx:rmi:///jndi/rmi://localhost:${jmx_port}/jmxrmi | |
kill %1 |