Skip to content

Instantly share code, notes, and snippets.

View crkrenn's full-sized avatar

Chris Krenn crkrenn

  • LLNL; democracyGPS
  • SF Bay Area
  • LinkedIn in/chris-krenn
View GitHub Profile
@crkrenn
crkrenn / Struggles_with_Cowork_26-03-16.md
Last active March 16, 2026 11:42
Struggles with Cowork 26-03-16

Prompts for Claude Powerpoint plugin:

  • Make a 5 page power point presentation convincing my parents that we should go to Madrid on our vacation. I am a 16 y.o. boy. I like design and interior design. They like art, nature and good food. Please include photos.
    • Claude produced a nice presentation, but without photos.
  • Why can’t you add photos for me?
    • Great question! Unfortunately, I'm not able to insert photos from the internet into your slides. Here's why:
      • As a PowerPoint add-in, I don't have the ability to:
        • Browse or download images from the web
        • Access stock photo libraries or Wikimedia Commons
  • Fetch image files from URLs and embed them
@crkrenn
crkrenn / save_microsoft_office.js
Last active September 18, 2024 19:12
MacOS apple script to automatically save open Microsoft Office files
// This script saves all open and modified Excel, Word, and PowerPoint documents
// It can be run manually with "osascript -l JavaScript /path/to/your/saved/script.js"
// or scheduled to run periodically using a tool like cron.
// type `crontab -e` to edit the cron jobs
// crontab: */5 * * * * /usr/bin/osascript -l JavaScript /path/to/your/saved/script.js
function run() {
try {
console.log("Script started");
@crkrenn
crkrenn / gist:162f5c9dc707b32862278ce8cd98464c
Created May 11, 2024 16:26
chat gpt shared webpack components
Using Webpack to bundle shared components in a monorepo setup with multiple React applications involves creating a separate package or directory for these components, configuring Webpack to build this package, and then integrating the bundled output into your individual applications. Here's a step-by-step guide to achieve this:
### Step 1: Organize Your Repository Structure
First, set up your monorepo structure to separate shared components from individual applications. Here’s a basic layout:
```
/my-monorepo
|-- /packages
| |-- /shared-components
@crkrenn
crkrenn / gist:55651ceb8a2843a8cc6e3f0520508742
Last active April 26, 2024 20:12
auto-shutdown-for-server-with-bash
# update history after every command
cat << 'EOF' >> ~/.bashrc
# If PROMPT_COMMAND already has commands
if [[ ! -z "$PROMPT_COMMAND" ]]; then
PROMPT_COMMAND="$PROMPT_COMMAND; history -a"
else
PROMPT_COMMAND="history -a"
fi
EOF
@crkrenn
crkrenn / How_to_Get_and_Evaluate_Startup_Ideas.md
Last active January 9, 2023 18:37
Summary of Jared Friedman's questions regarding evaluating startup ideas

How to Get and Evaluate Startup Ideas.

Notes from Jared Friedman's video https://www.youtube.com/watch?v=Th8JoIan4dg&t=1460s

Note: please watch and "like" the video. I've transcribed these notes to make it easy to use Jared's advice to evaluate your own startup ideas.

Questions regarding the four most common mistakes founders make with startup ideas:

  1. Are you solving a real problem, or are you a "solution in search of a problem" (SISP)?
  2. Are you working on a "tar pit" idea? (Widespread problem, plausible solution, but with a tricky structural problem. Example: app for making weekend plans.) Suggestion: first google the idea to understand how other people have failed before.
  3. Have you evaluated your idea thoroughly?
#Procedure
export SUDO=""
# export SUDO="sudo"
#Stop the container(s) using the following command:
${SUDO} docker-compose down
#Delete all containers using the following command:
${SUDO} docker rm -f $(${SUDO} docker ps -a -q)
#Delete all volumes using the following command:
${SUDO} docker volume rm $(${SUDO} docker volume ls -q)
#Restart the containers using the following command:
@crkrenn
crkrenn / README.md
Last active July 10, 2020 05:08 — forked from steve-jansen/README.md
Stop and start Symantec Endpoint Protection on OS X

This script enables you stop and start Symantec Endpoint Protection on OS X. For information on starting and stopping SEP on OS 10.15 (Catalina), please see below.

Installation

sudo curl https://gist.githubusercontent.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep

Title

Place 1

Hello, this is some text to fill in this, here, is a link to the second place.

Place 2

Place one has the fun times of linking here, but I can also link back here.

Title

Place 1

Hello, this is some text to fill in this, here, is a link to the second place.

Place 2

Place one has the fun times of linking here, but I can also link back here.

Work in progress:

  1. moving sample scripts to subdirectory
  2. support pgen and non-pgen sampling
  3. rename pgen_sample scisample

Multidimensional Sampling

This repo contains a pgen script for maestro that implements several multidimensional sampling methods which are driven by a simple yaml