This is a quick reference to get to Jolokia statistics urls for JBoss Fuse or JBoss A-MQ statistics. Sometimes, when you are interested in very specific attributes, it's easier to keep monitoring a specific url rather than loading the full Hawtio console.
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
#!/usr/bin/env bash | |
echo -e "StarFive CPU Temp -> $(echo "scale=2;$(cat /sys/class/hwmon/hwmon0/temp1_input)/1000" | bc)C\u00b0" |
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
filetype plugin indent on | |
set autowrite | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
set tabstop=2 | |
set visualbell | |
set mouse-=a | |
set backspace=indent,eol,start | |
set smartindent |
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
$ brew info --installed --json | jq '.[] | select((.caveats != null) and (.caveats | test("path"; "i"))) | .caveats' | grep -oE ' PATH=.*:\$PATH'| sed 's/[\"]//g' | sed 's/PATH=/export PATH=/g' | |
export PATH=$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH | |
export PATH=$(brew --prefix)/opt/gnu-indent/libexec/gnubin:$PATH | |
export PATH=$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH | |
export PATH=$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH | |
export PATH=$(brew --prefix)/opt/gnu-which/libexec/gnubin:$PATH | |
export PATH=$(brew --prefix)/opt/grep/libexec/gnubin:$PATH | |
export PATH=$(brew --prefix)/opt/libtool/libexec/gnubin:$PATH | |
export PATH=$(brew --prefix)/opt/make/libexec/gnubin:$PATH |
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
autoconf | |
automake | |
bash | |
bash-completion | |
binutils | |
boost | |
cmake | |
coreutils | |
curl | |
diffutils |
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
autoconf | |
automake | |
bash | |
bash-completion | |
binutils | |
boost | |
cmake | |
coreutils | |
curl | |
diffutils |
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
❯ smartctl -a disk0 | |
smartctl 7.2 2020-12-30 r5155 [Darwin 20.3.0 arm64] (local build) | |
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org | |
=== START OF INFORMATION SECTION === | |
Model Number: APPLE SSD AP1024Q | |
Serial Number: xxxxxxxxxxxxxxxxx | |
Firmware Version: 1161.80. | |
PCI Vendor/Subsystem ID: 0x106b | |
IEEE OUI Identifier: 0x000000 |
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
System Information | |
PROCESSOR: AMD Ryzen Threadripper 1950X 16-Core @ 3.40GHz | |
Core Count: 16 | |
Thread Count: 32 | |
Extensions: SSE 4.2 + AVX2 + AVX + RDRAND + FSGSBASE | |
Cache Size: 512 KB | |
Microcode: 0x8001137 | |
Scaling Driver: acpi-cpufreq ondemand |
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
#!/usr/bin/env python3 | |
import sys | |
from datetime import datetime | |
from datetime import timedelta | |
class Input(object): | |
def _set_input(self): | |
try: | |
x = input('Enter minutes as an integer: ') |
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
//Giovanna Rea-espin, COP2220, October 10, 2017, Large Program 1 Algorithm. Letter guessing game. | |
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#include <ctype.h> | |
#define MAXGUESSES 5 | |
//this function provides instructions to the user on how to play the game | |
void GameRules() { | |
printf("Welcome to the Letter Guesing Game\n"); | |
printf("\nYou will begin by entering the number of games you want to play\n"); |
NewerOlder