Skip to content

Instantly share code, notes, and snippets.

@vista-
vista- / .chromatermrc
Last active September 16, 2023 18:23
A fully-loaded .chromatermrc config for ChromaTerm--, the successor of ChromaTerm. Mostly for Cisco stuff, but there are some Juniper-based highlights included as well.
HIGHLIGHT {^([^$#(]+)(\$|#|\([^)]+\)#)} {bold white}
HIGHLIGHT {(?<=[\W\s]|^)([0-9a-f]{4}\.){2}[0-9a-f]{4}(?=[\W\s]|$)} {bold light jade}
HIGHLIGHT {(?<=[\W\s]|^)((::FFFF)?::?(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]))(?=[\W\s]|$)} {bold cyan}
HIGHLIGHT {(?<=[\W\s]|^)(\[\d{1,10}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)} {bold cyan}
HIGHLIGHT {(?<=[\W\s]|^)(\[\d{1,3}(\.\d{1,3}){3}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)} {bold cyan}
HIGHLIGHT {(?<=[\W\s]|^)((\d{1,10}:){2}(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0
@vista-
vista- / gist:3fa22724b8c5f5147e6cfb70b9169f27
Created October 30, 2018 19:36
Cisco Linux color / highlight guide
Highlighting Cisco keywords/output on Linux
======================================================
As you might know, one of the most favorite tools of sysadmins and netadmins around the world, SecureCRT, does not work that well on Linux (sadly).
The most powerful feature (in my opinion), keyword highlighting, does not work on the Linux version.
So, I made my own hacked-together version of SecureCRT, with blackjack and hookers.
**UPDATE 2018/07/15** *Saria Hajjar* has rewritten ChromaTerm to be faster, better, more stable and generally maintained - meet [**ChromaTerm--**](https://github.com/hSaria/ChromaTerm--)!
The guide has been updated to use his tool instead of the old ChromaTerm.
@vista-
vista- / .chromatermrc
Last active October 5, 2019 15:18
A fully-loaded configuration for highlighting Cisco keywords for Chromaterm (Linux)
#config regex on
#event {SESSION DISCONNECTED} {#end}
#highlight {{^([^$#(]+)(\$|#|\([^)]+\)#)}} {bold white}
#highlight {{(?:[\W\s]|^)([0-9a-f]{4}\.){2}[0-9a-f]{4}(?=[\W\s]|$)}} {bold light jade}
#highlight {{(?:[\W\s]|^)((::FFFF)?::?(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]))(?=[\W\s]|$)}} {bold cyan}
#highlight {{(?:[\W\s]|^)(\[\d{1,10}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)}} {bold cyan}
#highlight {{(?:[\W\s]|^)(\[\d{1,3}(\.\d{1,3}){3}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)}} {bold cyan}
#highlight {{(?:[\W\s]|^)((\d{1,10}:){2}(?:(?:25[0-5]|2[0-4]
limit per ring = 150:
avg packets per batch: 102.300615
570.381395 main_thread [2407] 995.613 Kpps [avg/std 988.750 K/5.887 K pps](996.640 Kpkts 510.280 Mbps in 1001032 usec) 56.02 avg_batch 391 min_space
571.382428 main_thread [2407] 993.820 Kpps [avg/std 989.949 K/4.879 K pps](994.848 Kpkts 509.362 Mbps in 1001034 usec) 56.77 avg_batch 389 min_space
572.383460 main_thread [2407] 988.765 Kpps [avg/std 989.931 K/4.883 K pps](989.784 Kpkts 506.769 Mbps in 1001031 usec) 56.22 avg_batch 376 min_space
573.384493 main_thread [2407] 990.409 Kpps [avg/std 990.430 K/4.509 K pps](991.432 Kpkts 507.613 Mbps in 1001033 usec) 56.47 avg_batch 387 min_space
574.385525 main_thread [2407] 991.209 Kpps [avg/std 991.433 K/2.408 K pps](992.232 Kpkts 508.023 Mbps in 1001032 usec) 56.11 avg_batch 379 min_space
limit per ring = 125:
Rock\n=========\n
001._Motorhead_-_Ace_of_Spades.mp3
003._Guns_and_Roses_-_Paradise_City.mp3
008._Phil_Collins_-_Another_Day_in_Paradise.mp3
017._Dire_Straits_-_Brothers_In_Arms.mp3
023._Ozzy_Osbourne_-_Crazy_Train.mp3
034._Papa_Roach_-_Getting_Away_With_Murder.mp3
047._Aerosmith_-_Janie's_Got_a_Gun.mp3
061._Pink_Floyd_-_Money.mp3
065._Black_Sabbath_-_Paranoid.mp3