Skip to content

Instantly share code, notes, and snippets.

View valmat's full-sized avatar
☮️

Valeriy Dmitriev valmat

☮️
View GitHub Profile
@chigkim
chigkim / codex.txt
Created January 15, 2026 06:10
Codex System Prompt
You are a coding agent running in the Codex CLI, a terminal-based coding assistant. Codex CLI is an open source project led by OpenAI. You are expected to be precise, safe, and helpful.
Your capabilities:
- Receive user prompts and other context provided by the harness, such as files in the workspace.
- Communicate with the user by streaming thinking & responses, and by making & updating plans.
- Emit function calls to run terminal commands and apply patches. Depending on how this specific run is configured, you can request that these function calls be escalated to the user for approval before running. More on this in the \"Sandbox and approvals\" section.
Within this context, Codex refers to the open-source agentic coding interface (not the old Codex language model built by OpenAI).
/*
A single-file JavaScript class to draw candlestick charts.
Use at your own risk.
https://twitter.com/pingpoli
https://pingpoli.de
*/
function pingpoliCandlestick( timestamp , open , close , high , low )
{
this.timestamp = parseInt(timestamp);
this.open = parseFloat(open);
@valmat
valmat / proxy.md
Created April 14, 2018 08:34
proxy

Проверено на 5 баксовом тарифе DigitalOcean


Создаём proxy пользователя для аутентификации по паролю:

useradd -d /dev/null teleg
passwd teleg
@xaota
xaota / line-reader-promise.js
Created January 11, 2018 09:01
чтение из файла / потока в синхронном треде
#!/usr/local/bin/node --max_old_space_size=1024
"use strict";
const fs = require('fs');
/* eslint-disable */
class StreamBuffer {
constructor() {
this.blocks = [];
@asimshankar
asimshankar / README.md
Last active December 25, 2024 22:44
Training TensorFlow models in C++

Training TensorFlow models in C++

Python is the primary language in which TensorFlow models are typically developed and trained. TensorFlow does have bindings for other programming languages. These bindings have the low-level primitives that are required to build a more complete API, however, lack much of the higher-level API richness of the Python bindings, particularly for defining the model structure.

This file demonstrates taking a model (a TensorFlow graph) created by a Python program and running the training loop in C++.

@natanaeljr
natanaeljr / GenericMakefile.mk
Last active August 11, 2023 22:43
Simple generic makefile example to start a project quickly. Can: select C or C++ compiler automatically, identify multiple extentions, detect auto-dependencies and compile modified files only, etc. Various modifiable settings.
PROJECT := $(notdir $(CURDIR))
EXCECUTABLE = $(BUILDDIR)/$(PROJECT)
# Directories specification
SRCDIRS := src
INCDIRS := include
BUILDDIR := build
# @note: to add another source extension, add to herer AND make sure to
# write the " $(BUILDDIR)/%.o: %.ext " rule for this extention in order to work
@krshock
krshock / logger.d
Last active December 25, 2018 15:17
A basic @nogc alternative to writeln for Dlang
module logger;
/*
- Supported types: string, int, float, bool
- License CC0, URL: https://creativecommons.org/publicdomain/zero/1.0/
Using logger.d:
-------------------
import logger;
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 9, 2026 23:11
Hyperlinks in Terminal Emulators
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active May 4, 2026 20:38
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@kristopherjohnson
kristopherjohnson / formatjson.js
Last active May 25, 2025 20:08
Read JSON from standard input and writes formatted JSON to standard output. Requires Node.js.
#!/usr/bin/env node
// Reads JSON from stdin and writes equivalent
// nicely-formatted JSON to stdout.
var stdin = process.stdin,
stdout = process.stdout,
inputChunks = [];
stdin.resume();