Skip to content

Instantly share code, notes, and snippets.

View wmakeev's full-sized avatar
💭
💻

Makeev Vitaliy wmakeev

💭
💻
View GitHub Profile
@wmakeev
wmakeev / README.md
Created July 25, 2019 15:59
Linux links #linux #tools #links #usefull
@wmakeev
wmakeev / ARDUINO.md
Last active August 27, 2019 10:06
Arduino tips #arduino #debug #cheatsheet #tips

Show all devices

ls /dev

Dump

sudo cu -s 115200 -l /dev/tty.usbserial-1420 > ~/usbserial-1420.txt
@wmakeev
wmakeev / index.js
Last active October 21, 2019 12:16
Создаем заказы поставщику для заказов на производство #moysklad
'use strict'
const _ = require('lodash')
const fetch = require('node-fetch')
const Moysklad = require('moysklad')
const ms = Moysklad({ apiVersion: '1.2', fetch })
const href = ref => ms.buildUrl(ref)
const PROCESSING_ORDER_IDS = ['710a1333-f3ee-11e9-0a80-012300049f97']
@wmakeev
wmakeev / exiftool.md
Last active November 3, 2019 13:43
[ExifTool] commands #exiftool

ExifTool

Export embedded preview images

JPEG Preview in source size

exiftool -b -PreviewImage ./photo.cr2 > out.jpg
@wmakeev
wmakeev / thought.ts
Last active November 23, 2019 09:48
[Graph path find with $mol_atom] #mol #mol_atom #graph #example
class Thought {
@$mol_mem
id() {
// ...
}
@$mol_mem
childs() {
// ...
}
@wmakeev
wmakeev / HTML5.md
Created December 1, 2019 11:40
[HTML5 boilerplate] #html #boilerplate
@wmakeev
wmakeev / 00_README.md
Last active December 2, 2019 10:51
[TypeScript boilerplate] typescript project setup #typescript #npm #deploy #travis #build #boilerplate

TypeScript boilerplate

tsconfig

tsconfig.json

{
  "compilerOptions": {
@wmakeev
wmakeev / ms_stock.py
Created December 21, 2019 11:27
Получение остатка товара МойСклад на Python #moysklad #python #example
import os
import requests
from urllib.parse import urlencode
def urljoin(*args):
return "/".join(map(lambda x: str(x).rstrip("/"), args))
def get_ms_filter(params_dict):
@wmakeev
wmakeev / README.md
Last active January 5, 2020 06:22
Serverless bootstrap #serverless #sls

Serverless

Install

Install/upgrade serverless

npm install -g serverless
@wmakeev
wmakeev / moysklad-triggers.md
Last active May 4, 2020 08:12
Концепция триггеров для МойСклад #moysklad #trigger #vision

Триггер

Концепт триггеров для МойСклад.

Триггер - это обработчик, который срабатывает на изменение документа или иное событие в МойСклад.

Общие настройки

Жирным выделены обязательные условия