Skip to content

Instantly share code, notes, and snippets.

View Linchaker's full-sized avatar

Dmytro Linchaker

View GitHub Profile
@Linchaker
Linchaker / btc.html
Last active April 16, 2026 21:20
btcusdt fapi widget
<!DOCTYPE html>
<html>
<style>
body {
-webkit-app-region: drag;
user-select: none;
margin: 0;
overflow: hidden;
}
@Linchaker
Linchaker / event_loop.js
Created December 15, 2024 17:07
Node.js event loop example
const fs = require('fs');
const { createWriteStream } = require('fs');
console.log('Start');
setTimeout(() => console.log('Timeout (timers queue) 1 (2 loop iteration)'), 0);
process.nextTick(() => console.log('NextTick (microtask) 1 (1 loop iteration)'))
Promise.resolve().then(() => {
@Linchaker
Linchaker / Makefile
Created February 1, 2023 10:13
Laravel Makefile
#---------------------------------------------------------------
#-- CONFIG --
#---------------------------------------------------------------
PHP_CONTAINER=project_name_phpfpm
REDIS_CONTAINER=project_name_redis
#---------------------------------------------------------------
#-- DOCKER UP --
#---------------------------------------------------------------
@Linchaker
Linchaker / auto_deploy.sh
Created January 20, 2023 21:55
Simple Laravel backend Auto Deploy script
#!/bin/bash
# instead "~" use "$HOME"
# example "$HOME/www"
PATH_TO_DEPLOY="."
echo "Backend semi-auto deploy"
#---------------------------------------------------------------
#-- DEPLOY STAGE --