Skip to content

Instantly share code, notes, and snippets.

View andreyvolosyuk's full-sized avatar

Andrei Valasiuk andreyvolosyuk

View GitHub Profile
#!/usr/bin/env bash
# Makes unmaintainable Go plugin for phpstorm compatible with actual versions.
# https://github.com/go-lang-plugin-org/go-lang-idea-plugin
#
# Run ./go_compiler.sh path/to/downloaded/Go/plugin.zip version_of_phpstorm(e.g. 182, 173, etc.)
# For instance
# ./go_compiler.sh /home/user/downloads/Go-0.13.1947.zip 173
# New relevant file will be created in the same directory as initial archive. It will have name Go.zip.
### DEPLOYS LAMBDA ###
# AVAILABLE LAMBDAS:
# - DEV_PARSE_ENRICH_DEVICE_JSON
# - PARSE_ENRICH_DEVICE_JSON
# - UPDOWNTIME_MC
pip install -r requirements.txt
CWD=$(pwd)
let color = parseInt('ff10fe', 16);
console.log(color);
console.log([
color >> 16 & ((1 << 8) - 1),
color >> 8 & ((1 << 8) - 1),
color >> 0 & ((1 << 8) - 1),
]);