Skip to content

Instantly share code, notes, and snippets.

@andrey-reznik
andrey-reznik / instruction.md
Last active May 18, 2022 12:35
Настройка приватного npm репозитория на основе GitHub

Создано на основе этой статьи

  1. Получить токен 1.1 Указать права для токена: read:packages, write:packages, delete:packages
  2. В папке пользователя создать файл: .npmrc с содержимым:
registry=https://registry.npmjs.org/
@<organization>:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=<github-token>
#!/bin/bash
#https://github.com/PythonicNinja/jetbrains-reset-trial-mac-osx/blob/master/runme.sh
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine Rider; do
echo "Closing $product"
ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9
echo "Resetting trial period for $product"
echo "removing evaluation key..."
@andrey-reznik
andrey-reznik / axios-catch-error.js
Created January 5, 2020 08:16 — forked from fgilio/axios-catch-error.js
Catch request errors with Axios
/*
* Handling Errors using async/await
* Has to be used inside an async function
*/
try {
const response = await axios.get('https://your.site/api/v1/bla/ble/bli');
// Success 🎉
console.log(response);
} catch (error) {
// Error 😨
$(function() {
});
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"title": "The Root Schema",
"required": [
"form",
"tabs",
"modals",
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"sections": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
@andrey-reznik
andrey-reznik / PowerShell Customization.md
Created September 9, 2019 03:52 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@andrey-reznik
andrey-reznik / _burger.sass
Last active September 23, 2019 10:16
Burger menu
$background: #3d566e
$color: #000
$height-icon: 20px
$width-line: 31px
$height-line: 3px
$transition-time: 0.4s
$rotation: 45deg
$translateY: ($height-icon / 2)
$translateX: 0
@andrey-reznik
andrey-reznik / Preferences.sublime-settings
Last active November 4, 2017 16:57
Sublime Settings
{
"color_scheme": "Packages/One Dark Color Scheme/One Dark.tmTheme",
"font_size": 11,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"material_theme_compact_panel": true,
"material_theme_compact_sidebar": true,
[
{"keys": ["alt+shift+f"], "command": "reindent"}
]