Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Highlighting and emojis
YELLOW='\033[1;33m'
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
WARNING_EMOJI=$'\xE2\x9A\xA0'
CHECKMARK_EMOJI=$'\xE2\x9C\x85'
@opencoca
opencoca / experimenting-with-hyperscript-startr-style-system7-style-24-9-21.markdown
Created September 21, 2023 15:25
Experimenting with Hyperscript, Startr Style, System7 Style 24-9-21
@opencoca
opencoca / update-hosts.sh
Created June 18, 2023 18:05 — forked from jamshid/update-hosts.sh
Docker environment hack, to put the names of running containers in /etc/hosts
#!/bin/bash
# An alternative to "links", run this script after starting or stopping any
# container. It's a hack to update the host machine (vagrant) /etc/hosts with
# the current active docker containers and tell dnsmasq to refresh.
#
# Then start each machine with "-dns ${DOCKER_HOST_IP}", e.g.
# $ docker run -d -name mycontainer1 -dns 10.0.3.1 MYPRODUCT
# You can't seem to set the DNS during "docker build".
#
# Diagnostic command to run in host or while logged into containers:
@opencoca
opencoca / README.MD
Created March 3, 2023 12:14
One Click App dev

How to create a one-click app (as of v1.8.0):

First, have a look at this simple example. Now, read on for more details:

  • Find/create a docker-compose file for the app you're interested in.
  • Add captainVersion: 4 to the very top of the yaml file.
  • Add this section to the end of the yaml file:
@opencoca
opencoca / index.pug
Created February 7, 2023 14:05
Less Flex cards
header
img(src='https://source.unsplash.com/random/901x200/?example', alt='Example Image', style=' --w:100% ')
section.wow.animate__fadeIn(style='--p: 2rem; --ta: center')
h1 Heading Level 1
h2 Heading Level 2
h3 Heading Level 3
h4 Heading Level 4
h5 Heading Level 5
@opencoca
opencoca / BuildnRun.sh
Last active December 22, 2022 13:19
BuildnRun.sh is a straightforward bash script that streamlines and standardizes the process of building and tagging Docker images
#!/bin/bash
# Version 1.3
# Copyright (c) Startr LLC. All rights reserved.
# This script is licensed under the GNU Affero General Public License v3.0.
# For more information, see https://www.gnu.org/licenses/agpl-3.0.en.html
# OpenCo™ Cocom Build 'n' Run Script
# This simple script builds and runs this directory 's Dockerfile Image
@opencoca
opencoca / APAstyle
Created September 18, 2022 23:02 — forked from pdparker/APAstyle
APA Style for Markdown
/* I have only tested this on Chrome but it
prints nicely to A4 size */
@media print {
body {
width: 210mm;
height: 297mm;
}
}
@opencoca
opencoca / requirements.txt
Last active November 4, 2021 00:50
GPT-J-6B Inference.ipynb working requirements.txt as of Nov 3 2021
numpy~=1.19.5
tqdm~=4.45.0
wandb>=0.11.2
einops~=0.3.0
requests~=2.25.1
fabric~=2.6.0
optax==0.0.6
git+https://github.com/deepmind/dm-haiku
git+https://github.com/EleutherAI/lm-evaluation-harness/
ray[default]==1.4.1
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>capture microphone audio into buffer</title>
</head>
<body>
<audio id="player" controls></audio>
<input
type="text"
id="username"
@opencoca
opencoca / gpt-j-vue-code-example-this-code-was-generated.markdown
Created September 1, 2021 11:31
GPT J Vue Code example (this code was generated)