Port Washington, NY 11050 | 203.570.4096 | [email protected] | LinkedIn: linkedin.com/in/petermarreck | Github
Cornell University, Ithaca, New York
B.A. in Psychology, Minor in Computer Science
# Adjust the core count (or just use nproc) and location to your hardware and steam install location | |
# This will create the file if it doesn't exist yet | |
# From: https://www.reddit.com/r/linux_gaming/comments/prsceh/is_there_a_way_to_get_valves_fossilize_replay/hdqfayv/ | |
echo "unShaderBackgroundProcessingThreads $(nproc)" >> ~/.local/share/Steam/steam_dev.cfg |
#!/bin/sh | |
### EAT.BASH | |
### USAGE: | |
# 1) Run this file directly after making it executable and pass in an (optional) filter argument, e.g., | |
# ./eat.bash burrito | |
# If you happen to have Nix installed, it will guarantee (more or less) that it will work, | |
# but it will download the deps on first run (and cache them). | |
# You can also run (or call) it with no arguments and just browse all the results |
#!/usr/bin/env bash | |
# Get the terminal width | |
width=$(tput cols) | |
# Set number of output lines | |
LINES=${LINES:-10000} | |
# Initialize the first row with a single block character in the middle | |
row=$(printf "%-$((width / 2))s" " ") |
Port Washington, NY 11050 | 203.570.4096 | [email protected] | LinkedIn: linkedin.com/in/petermarreck | Github
Cornell University, Ithaca, New York
B.A. in Psychology, Minor in Computer Science
I want you to act as an expert systems administrator specializing in ZFS filesystems. I want you to give me commands to run to collect information about my ZFS drives and configuration, and I will paste the output back to you, and you will then make configuration recommendations (possibly including the commands to run) to increase performance given my use case and priorities (which you can also ask me anything about).
Great, I'll be happy to help you with your ZFS configuration. Let's start by gathering some basic information about your current ZFS setup.
Please run the following commands and provide me with the output:
I wrote the following Bash function to use the OpenAI API to automatically come up with a git commit message and put it on the clipboard. Do you have any constructive criticisms or suggestions to make it better?
Here is the entire Bash file contents:
#!/usr/bin/env bash
git_commit_ai() {
Did John von Neumann really advocate for a nuclear first strike using game theory to argue for it? Was his game theory argument valid, or did it have flaws?
John von Neumann, a brilliant mathematician and one of the founding figures of game theory, was known for his work on the strategic aspects of nuclear war. During the early years of the Cold War, he advocated for a strong deterrence policy against the Soviet Union, including the possibility of a nuclear first strike. However, it's important to note that von Neumann's views on this issue were complex and evolved over time.
Von Neumann's game theory argument for a nuclear first strike was based on the concept of minimax, which suggests that players in a game should minimize their maximum possible loss. In the context of a nuclear conflict between the United States and the Soviet Union, von Neumann believed that a preemptive strike would minimize the potential damage to the United States by elimin
Summarize the book “tomorrow, tomorrow, tomorrow”
"Tomorrow, Tomorrow, Tomorrow" is a speculative fiction novel by acclaimed author Jane Simmons. Set in a near-future world where technology has advanced rapidly, the story follows protagonist Alex Thompson, a young and ambitious scientist working on a revolutionary project that promises to alter the course of human history: the ability to manipulate time.
Alex's work leads him to develop a time-traveling device, which he believes will solve humanity's most pressing issues, such as climate change, overpopulation, and political strife. However, as he begins to experiment with the device, he soon discovers that meddling with time has unforeseen and far-reaching consequences.
# deterministic random number generator | |
# Usage: [DRANDOM_SEED=<whatever>] drandom [-h|--hex|--help] | |
# Outputs an integer between 0 and 2^256-1 or an equivalent hex string if -h|--hex is specified | |
drandom() { | |
needs sha256sum || return 1 | |
# if unset, initialize to hash of nanoseconds since epoch, | |
# otherwise, set to hash of previous seed | |
if [ -z $DRANDOM_SEED ]; then | |
export DRANDOM_SEED="$(date +%s%N | sha256sum | cut -d' ' -f1)" | |
else |