Skip to content

Instantly share code, notes, and snippets.

View dcsan's full-sized avatar
🌸
dc.rik.ai

DC dcsan

🌸
dc.rik.ai
View GitHub Profile
#!/usr/bin/env bash
set -x
APP_NAME=$1
echo "logs for APP ${APP_NAME}"
ssh ubuntu@bots.rikai-bots.com "pm2 logs author.${APP_NAME}"
@dcsan
dcsan / resume.json
Last active September 20, 2019 01:08
resume.json
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "David 'DC' Collier",
"label": "Creative Engineer",
"picture": "",
"email": "dc@rikai.co",
@dcsan
dcsan / ldm-txt2im.ipynb
Created June 23, 2022 23:58 — forked from eyaler/ldm-txt2im.ipynb
LDM-TXT2IM.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
export const makeEmbed = async (params: MakeEmbedParams) => {
let { agent, imageUrl, imageAlt, encoding: imageFormat } = params;
imageFormat = imageFormat || guessImageFormat(imageUrl)
imageAlt = imageAlt || 'image'
const check = fs.existsSync(imageUrl)
if (!check) {
const msg = `Unable to find image ${imageUrl}`;
console.error(msg);