Git Product home page Git Product logo

another_omt's Introduction

Another Oh-My-Tmux script, for HackTheBox or TryHackMe

Setup THM tmux steps (with the ip addr checker script)

cd /opt
sudo git clone https://github.com/OreoByte/another_omt.git
cd another_omt/
sudo chmod +x thm_vpn
cp /opt/another_omt/tmux.conf-byte ~/.tmux.conf

Changing to the curl connection checker script (after first setup)

Comment out the ip addr checker line
	#set -ag status-right " #[fg="#34ebe1"]#(/opt/another_omt/thm_vpn)"

Uncomment the curl connection checker line
	set -ag status-right " #[fg="#ab2fad"]#(/opt/another_omt/curl_thm_vpn)"

don't forget to chmod the curl-thm-vpn script
	chmod +x /opt/another_omt/curl_thm_vpn

testing the tmux script on the next launch of tmux

tmux

update tmux script
	tmux source-file ~/.tmux.conf
update tmux script within tmux session
	:source-file ~/.tmux.conf

If borked remote or rename the .tmux.conf file

rm ~/.tmux.conf
mv ~/.tmux.conf ~/.tmux.conf.broken

Loading vpn check script with tmux if .tmux.conf doesn't load them (OLD)

tmux set -ag status-right " #[fg="#dd99ff"]#(~/another_omt/curl_thm_vpn)"
OR
tmux set -ag status-right " #[fg="#34ebe1"]#(~/another_omt/thm_vpn)"

OR "Older version of tmux doesn't auto load hex-color codes, use color names"
set -ag status-right " #[fg="red"]#(~/another_omt/curl_thm_vpn) "
set -ag status-right " #[fg="cyan"]#(~/another_omt/thm_vpn) "
	# Make sure to comment out the other lines with hex-color codes

Use the Updated VPN lines instead that don't break Reloading the .tmux.conf config file

set -g status-right " #[fg="#c299ff"]#H#[default] %H:%M %d-%b-%y #[fg="#dd99ff"]#(~/another_omt/curl_thm_vpn) #[fg="#34ebe1"]#(~/another_omt/thm_vpn) "
OR
set -g status-right " #[fg="cyan"]#H#[default] %H:%M %d-%b-%y #[fg="red"]#(~/another_omt/curl_thm_vpn) #[fg="green"]#(~/another_omt/thm_vpn) "

Home dir install script (for the main file)

#!/bin/bash
# also comes with the repo as oreo-setup-script.sh
cd ~/
git clone https://github.com/OreoByte/another_omt.git
chmod +x ~/another_omt/thm_vpn
chmod +x ~/another_omt/curl_thm_vpn
cp ~/another_omt/tmux.conf-byte ~/.tmux.conf

another_omt's People

Contributors

oreobyte avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.