Skip to content

Instantly share code, notes, and snippets.

View DarkGenius's full-sized avatar
🏠
Working from home

Roman Barlos DarkGenius

🏠
Working from home
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="debounce js implementation">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@DarkGenius
DarkGenius / index.js
Created May 22, 2024 12:12
Call S3 API (node.js)
var crypto = require('crypto');
var https = require('https');
// our variables
var access_key = '<ACCESS_KEY>'
var secret_key = '<SECRET_KEY>'
var region = 'ru-central1';
var url = 's3.amazonaws.com';
var myService = 's3';
var myMethod = 'PUT';
@DarkGenius
DarkGenius / update-ai-cli.sh
Created October 6, 2025 11:34
Auto update AI-agent CLI tools
#!/usr/bin/env bash
set -euo pipefail
# --- конфиг: список пакетов ---
PACKAGES=(
"@anthropic-ai/claude-code"
"@google/gemini-cli"
"@openai/codex"
"@qwen-code/qwen-code"
)
@DarkGenius
DarkGenius / update-ai-cli.ps1
Created October 6, 2025 20:22
Auto update AI-agent CLI tools
#Requires -Version 5.1
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
# =========================
# Config: package list
# =========================
$PACKAGES = @(
'@anthropic-ai/claude-code',
'@google/gemini-cli',