Skip to content

Instantly share code, notes, and snippets.

View crkrenn's full-sized avatar

crkrenn

  • LLNL; democracyGPS
  • SF Bay Area
View GitHub Profile
@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

@crkrenn
crkrenn / merge-test.sh
Created April 26, 2020 16:43
script to compare monorepo with master branches
set -e
# USAGE
#
# Copy this script into an empty repo, and run:
#
# $ bash merge-test.sh
#
# Git repos will be cloned into the dir containing the script. Re-running will delete dirs and re-run.
> core-js@2.6.11 postinstall /app/node_modules/babel-plugin-transform-class-properties/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
The command '/bin/sh -c npm install -g gulp && npm install' returned a non-zero code: 1