Skip to content

Instantly share code, notes, and snippets.

View eightseventhreethree's full-sized avatar
👾
Focusing

Rush eightseventhreethree

👾
Focusing
View GitHub Profile
@eightseventhreethree
eightseventhreethree / cpu_temps.sh
Created December 11, 2023 05:29
StarFive VisionFive 2 CPU Temps
#!/usr/bin/env bash
echo -e "StarFive CPU Temp -> $(echo "scale=2;$(cat /sys/class/hwmon/hwmon0/temp1_input)/1000" | bc)C\u00b0"
@eightseventhreethree
eightseventhreethree / .nvimrc
Last active October 7, 2023 02:28
.nvimrc
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
$ 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
autoconf
automake
bash
bash-completion
binutils
boost
cmake
coreutils
curl
diffutils
autoconf
automake
bash
bash-completion
binutils
boost
cmake
coreutils
curl
diffutils
@eightseventhreethree
eightseventhreethree / smartctl.out
Created March 5, 2021 02:30
macbook-pro-m1-16gb-1tb-ssd
❯ 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
@eightseventhreethree
eightseventhreethree / specs.txt
Created September 22, 2019 01:24
threadripper_build_specs
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
@eightseventhreethree
eightseventhreethree / JolokiaCommands.md
Created April 24, 2019 21:00 — forked from yashpatil/JolokiaCommands.md
Jolokia URLs for quick access to A-MQ statistics

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.

#!/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: ')
//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");