Skip to content

Instantly share code, notes, and snippets.

View mfernest's full-sized avatar

Michael Ernest mfernest

  • August Data
  • San Francisco Bay Area
  • 18:32 (UTC -07:00)
  • LinkedIn in/michaelernest
View GitHub Profile
@mfernest
mfernest / ant_aunt_gpt.md
Created April 8, 2024 18:08
Homonyms and ChatGPT

User: ant

ChatGPT

"Ant" typically refers to a small insect belonging to the family Formicidae, characterized by their highly organized social structure and cooperative behavior. Ants are found worldwide and play significant roles in various ecosystems, such as soil aeration, decomposition, and as a food source for many other organisms. They are known for their ability to work collectively to build intricate nests, forage for food, and defend their colonies.

User: aunt

ChatGPT

An "aunt" is the sister of one's parent or the wife of one's uncle. In many cultures, aunts often hold a special place in the family, providing support, guidance, and love to their nieces and nephews. They can play various roles in a child's life, from being a mentor and confidante to offering practical assistance and care. Aunts can have a significant impact on their family members and often contribute to the familial bond and cohesion.

User: Aunt ant

ChatGPT

@mfernest
mfernest / prompt_comparison_2.md
Last active April 8, 2024 17:57
Prompting ChatGPT with three versions of the same idea

You:

the yoke upon the neck of the disciples

ChatGPT:

The phrase "the yoke upon the neck of the disciples" likely refers to a metaphorical concept rather than a literal yoke. In various religious or philosophical contexts, a "yoke" can symbolize a burden or obligation, often related to discipleship or following a certain path.

In Christian theology, Jesus Christ uses the metaphor of a yoke to describe his teachings and the responsibilities of his followers. For instance, in the New Testament, Matthew 11:28-30 (NIV) records Jesus saying:

"Come to me, all you who are weary and burdened, and I will give you rest. Take my yoke upon you and learn from me, for I am gentle and humble in heart, and you will find rest for your souls. For my yoke is easy and my burden is light."

You: Does a text document remember exactly what you've written?

ChatGPT: No, a text document itself does not "remember" what you've written in the same way that a person remembers information. Text documents are static files that store information in a digital format. Once you've saved the document, it will retain the content as it was when you last edited or saved it. However, it doesn't have the capability to actively recall or remember its contents independently.

The text document will display the exact text that was written when you open it again. If you make changes and save the document again, it will overwrite the previous version with the new changes. This process continues each time you modify and save the document. Therefore, while the document preserves the information you've written, it doesn't have memory or consciousness in the way a human does.

You: does a text document repeat exactly what you've written?

You: does a photocopier repeat exactly what you've written?

ChatGPT: A photocopier typically reproduces the content of a document exactly as it appears on the original. It works by using a combination of light and static electricity to create an image of the original document on a photoconductive drum, which is then transferred onto paper and fused using heat. As long as the original document is clear and legible, the photocopier should produce a faithful reproduction of the text and images. However, factors such as the quality of the original document, the settings of the photocopier, and the condition of the machine itself can affect the accuracy and quality of the copies produced.

You: ant

ChatGPT: It seems like you've mentioned "ant." Ants are small insects that are part of the order Hymenoptera, which also includes bees and wasps. They are known for their social behavior, living in colonies or nests, and for their ability to work together effectively. Ant colonies typically consist of a queen, worker ants, and sometimes soldier ants. Ants are highly organized, communicate using pheromones, and engage in various tasks such as foraging, caring for larvae, and defending the colony. They play important roles in ecosystems, such as soil aeration and nutrient cycling, but can also be considered pests when they invade human habitats or agricultural fields.

 You: aunt

@mfernest
mfernest / openssl_commands.md
Created April 27, 2019 15:01 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@mfernest
mfernest / MySQL_JDBC.sh
Created August 16, 2017 17:53
Install MySQL JDBC connector
#!/bin/sh
## Install MySQL JDBC 5.1.40 Connector
function setDir()
{
mkdir -p /usr/share/java/
chmod a+rx /usr/share/java
rm -f /usr/share/java/mysql-connector-java.jar
}
@mfernest
mfernest / TeraTune.sh
Created February 26, 2017 14:20
Script to test wall time of teragen/terasort exercise
#!/bin/sh
## Test for optimal mix of mappers, reducers, and container allocations
## Modified from ripped-off script, attributed to BVT and excised Cloudera docs
## Paths below correspond to active parcel installation
MR=/opt/cloudera/parcels/CDH/lib/hadoop-0.20-mapreduce
CDH=/opt/cloudera/parcels/CDH/bin
@mfernest
mfernest / get-hive-usage-user.py
Last active January 16, 2021 23:27
Use CM API to report Hive usage
#!/usr/bin/python
## ********************************************************************************
## get-yarn-usage.py
##
## Usage: ./get-hive-usage-user.py
##
## Edit the settings below to connect to your Cluster
##
## ********************************************************************************
@mfernest
mfernest / 0_prechecks.sh
Last active July 15, 2021 13:20
CM Path B Installation
#!/bin/sh
source ./control.sh
function no_hugepages() {
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag
}
function verify_capacity() {