Skip to content

Instantly share code, notes, and snippets.

# Highlighting and emojis
NC='\033[0m' # No Color
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 /
Created June 18, 2023 18:05 — forked from jamshid/
Docker environment hack, to put the names of running containers in /etc/hosts
# 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 MYPRODUCT
# You can't seem to set the DNS during "docker build".
# Diagnostic command to run in host or while logged into containers:
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 / index.pug
Created February 7, 2023 14:05
Less Flex cards
img(src='', alt='Example Image', style=' --w:100% ')'--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 /
Last active December 22, 2022 13:19 is a straightforward bash script that streamlines and standardizes the process of building and tagging Docker images
# 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
# OpenCo™ Cocom Build 'n' Run Script
# This simple script builds and runs this directory 's Dockerfile Image
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 /
Last active February 12, 2022 21:43
Python Sqlite search for string
import sqlite3
import os
filename = "simple.db"
search = "search"
with sqlite3.connect(filename) as conn:
conn.row_factory = sqlite3.Row
cursor = conn.cursor()
cursor.execute("SELECT name FROM sqlite_master WHERE type='table'")
for tablerow in cursor.fetchall():
opencoca / requirements.txt
Last active November 4, 2021 00:50
GPT-J-6B Inference.ipynb working requirements.txt as of Nov 3 2021
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>capture microphone audio into buffer</title>
<audio id="player" controls></audio>