Skip to content

Instantly share code, notes, and snippets.

View sotnikov-link's full-sized avatar
🛸
UFO driver

Valeriy Sotnikov sotnikov-link

🛸
UFO driver
View GitHub Profile
@sotnikov-link
sotnikov-link / sha-emoji.js
Created October 17, 2023 05:10 — forked from ChrisCates/sha-emoji.js
Emoji in a SHA like format.
let emoji_list = [
"😀", "😃", "😄", "😁", "😆", "😅", "😂", "🤣", "😊", "😇", "🙂", "🙃", "😉", "😌", "😍", "😘", "😗", "😚", "😋",
"😜", "😝", "😛", "🤑", "🤗", "🤓", "😎", "🤡", "🤠", "😏", "😒", "😞", "😔", "😟", "😕", "🙁", "☹️", "😣", "😖", "😫", "😩",
"😤", "😠", "😡", "😶", "😐", "😑", "😯", "😦", "😧", "😮", "😲", "😵", "😳", "😱", "😨", "😰", "😢", "😥", "🤤", "😭", "😓",
"😪", "😴", "🙄", "🤔", "🤥", "😬", "🤐", "🤢", "🤧", "😷", "🤒", "🤕", "😈", "👿", "👹", "👺", "💩", "👻", "💀", "☠️", "👽",
"👾", "🤖", "🎃", "😺", "😸", "😹", "😻", "😼", "😽", "🙀", "😿", "😾", "👐", "🙌", "👏", "🙏", "🤝", "👍", "👎", "👊", "✊",
"🤛", "🤜", "🤞", "✌️", "🤘", "👌", "👈", "👉", "👆", "👇", "☝️", "✋", "🤚", "🖐", "🖖", "👋", "🤙", "💪", "🖕", "✍️", "🤳",
"💅", "🖖", "💄", "💋", "👄", "👅", "👂", "👃", "👣", "👁", "👀", "🗣", "👤", "👥", "👶", "👦", "👧", "👨", "👩", "👱"
];
@sotnikov-link
sotnikov-link / QuikClient.mjs
Created August 22, 2023 17:14 — forked from exvion/QuikClient.mjs
client on NodeJS for QuikSharp
import net from 'net';
import { EventEmitter } from 'events';
import iconv from 'iconv-lite';
import { inspect } from 'util';
export class OrderTradeFlags {
static Active = 0x1;
static Canceled = 0x2;
static IsSell = 0x4;
static IsLimit = 0x8;
@sotnikov-link
sotnikov-link / readme.md
Created March 13, 2021 14:41 — forked from ubergesundheit/readme.md
systemd traefik.service

systemd Service Unit for Traefik

Adapted from caddy systemd Service Unit

The provided file should work with systemd version 219 or later. It might work with earlier versions. The easiest way to check your systemd version is to run systemctl --version.

Instructions

We will assume the following:

@sotnikov-link
sotnikov-link / Vagrantfile
Created May 6, 2019 12:45 — forked from anthonysterling/Vagrantfile
Handy Vagrantfile for IE testing with Vagrant.
# Usage: IE={box} vagrant up
#
# Eg. IE=XPIE6 vagrant up
boxes = {
"XPIE6" => "http://aka.ms/vagrant-xp-ie6",
"XPIE8" => "http://aka.ms/vagrant-xp-ie8",
"VistaIE7" => "http://aka.ms/vagrant-vista-ie7",
"Win7IE8" => "http://aka.ms/vagrant-win7-ie8",
"Win7IE9" => "http://aka.ms/vagrant-win7-ie9",
@sotnikov-link
sotnikov-link / README.md
Last active March 10, 2019 14:39 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name

Rename .git/hooks/prepare-commit-msg.sample to prepare-commit-msg, paste the script and make the file executable.

For instance with branchARQ-653 $ git commit -m"Fixed bug" will result with commit "[ARQ-653] Fixed bug"

@sotnikov-link
sotnikov-link / better-nodejs-require-paths.md
Created August 7, 2018 11:01 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@sotnikov-link
sotnikov-link / jest-suppertest.js
Created September 25, 2017 16:39 — forked from risingnote/jest-suppertest.js
Use Jest (Jasmine) and supertest to test REST API.
// Need to run test async and use jest/jasmine done.fail to let it know when an assertion did not work.
const routerUnderTest = require('../../client_api')
const httptest = require('supertest')
const express = require('express')
const app = express()
app.use('/', routerUnderTest)
describe('I can use the REST api', () => {
it('displays text for the landing page', (done) => {