Skip to content

Instantly share code, notes, and snippets.

View socaseinpoint's full-sized avatar

Grigorii S. socaseinpoint

  • Santiago, Chile
View GitHub Profile
@socaseinpoint
socaseinpoint / FacelessModeling.md
Created October 9, 2025 15:03
FacelessModeling.md

Faceless Video Generator - Data Model

Концепция

  • VideoProject - редактируемый проект (draft) с пошаговым созданием
  • PublishedVideo - опубликованная версия (immutable snapshot)
  • Remix - дублирование проекта для создания вариаций и серий
  • Assets - immutable сгенерированные файлы (script, photo, audio, video_clip)
  • VideoStyle - предустановленные стили видео (Cinematic, Anime, etc)
  • Voice - голоса для озвучки
@socaseinpoint
socaseinpoint / log.json
Created July 14, 2023 10:37
update nft log
{"level":30,"time":1689330072742,"pid":1,"hostname":"core-89f8d474-gxwrd","name":"cappasity-core","namespace":"server","req_id":"64b0688f-a0fe-484d-9d76-86d4526a6071","user":"7079498040721014784","audit":true,"component":"after","remoteAddress":"10.24.12.7","remotePort":60492,"req_id":"64b0688f-a0fe-484d-9d76-86d4526a6071","req":{"query":{},"method":"POST","url":"/api/files","headers":{"host":"api.cappasity3d.com","cf-connecting-ip":"87.116.135.109","cf-ipcountry":"RS","accept-encoding":"gzip","x-forwarded-for":"87.116.135.109","cf-ray":"7e69099a18283038-VIE","content-length":"514","cf-visitor":"{\"scheme\":\"https\"}","sec-ch-ua":"\"Not_A Brand\";v=\"99\", \"Google Chrome\";v=\"109\", \"Chromium\";v=\"109\"","sec-ch-ua-mobile":"?0","authorization":"[Redacted]","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","content-type":"application/vnd.api+json","accept":"application/vnd.api+json","accept-version":"~1","sec-ch-ua-platform
@socaseinpoint
socaseinpoint / payload.upload.json
Created July 12, 2023 14:31
payload.upload.json
{
"data": {
"type": "upload",
"attributes": {
"access": {
"setPublic": true
},
"meta": {
"name": "test",
"nft": {
@socaseinpoint
socaseinpoint / index.js
Last active June 28, 2023 21:50
index.js
import './styles.scss';
import 'bootstrap';
import onChange from 'on-change';
import * as yup from 'yup';
import i18next from 'i18next';
import i18nInit from './i18n';
import fetchRSS from './fetchRSS';
import { renderFeed, renderPosts, renderContainer } from './render';
const parser = (response) => {
import './styles.scss';
import 'bootstrap';
import onChange from 'on-change';
import * as yup from 'yup';
import i18next from 'i18next';
import i18nInit from './i18n';
import fetchRSS from './fetchRSS';
import { renderFeed, renderPosts, renderContainer } from './render';
const parser = (response) => {
import '../scss/app.scss';
/* Your JS Code goes here */
/* Demo JS */
import './demo.js';
import onChange from 'on-change';
const initialStoreValues = {
const init = async () => {
const domParser = new DOMParser
const store = {}
const UPDATE_INTERVAL = 5000
// start fetching
const STREAM_NAME = 'http://lorem-rss.herokuapp.com/feed?unit=second'
@socaseinpoint
socaseinpoint / promisify-crypto.js
Created February 10, 2023 10:18 — forked from jawine/promisify-crypto.js
promisify nodejs builtin crypto.randomBytes() and crypto.pbkdf2() functions
const util = require('util')
const crypto = require('crypto')
// promisify crypto.pbkdf2() and crypto.randomBytes()
const pbkdf2Async = util.promisify(crypto.pbkdf2)
const randomBytesAsync = util.promisify(crypto.randomBytes)
function generatePassword(password, saltLen=32, iter=50000, keyLen=256, digest='sha256') {
this.exportedAuth = {} // object will be populated with salt and hash once computed
@socaseinpoint
socaseinpoint / fragmentShort.js
Created July 11, 2022 12:26
Fragment render short
render() {
return (
<>
Какой-то текст.
<h2>Заголовок</h2>
</>
);
}
@socaseinpoint
socaseinpoint / fragment.js
Created July 11, 2022 12:24
Fragment render
render() {
return (
<React.Fragment>
Какой-то текст.
<h2>Заголовок</h2>
</React.Fragment>
);
}