Skip to content

Instantly share code, notes, and snippets.

View rubizhenko's full-sized avatar
🐼

Dmytro Rubizhenko rubizhenko

🐼
  • Kyiv
View GitHub Profile
@rubizhenko
rubizhenko / bundle-icons-react.ts
Last active August 3, 2024 15:26
How to add custom iconify icons to React App
/**
* This is an advanced example for creating icon bundles for Iconify SVG Framework.
*
* It creates a bundle from:
* - All SVG files in a directory.
* - Custom JSON files.
* - Iconify icon sets.
* - SVG framework.
*
* This example uses Iconify Tools to import and clean up icons.
@rubizhenko
rubizhenko / gist:f14c5e448e118fa560e592c39ea60f48
Created July 4, 2024 13:01
How to prepare icons for icon font using Inkscape
Preparing images in Inkscape
You may need to do some additional simplification of your drawing, such converting
objects and strokes to paths (see the Path menu), in addition to the below. You can check
the svg file output in a text editor - if it has worked correctly, you should see a single element and an empty element.
1. Select all
2. Document Properties -> Resize page to drawing or selection
3. Object -> Ungroup
4. Path -> Union
5. Path -> Combine
6. File -> Vacuum Defs (or Clean up document)
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
@rubizhenko
rubizhenko / keys-generate.txt
Created January 5, 2022 11:32
How to create SHA256 with DSA keys pair
openssl dsaparam -out dsaparam.pem 2048
openssl gendsa -out dsaprivkey.pem dsaparam.pem
openssl dsa -in dsaprivkey.pem -outform PEM -pubout -out dsapubkey.pem
@rubizhenko
rubizhenko / tokens.md
Created October 16, 2020 07:26 — forked from zmts/tokens.md
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
{
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": false,
"window.zoomLevel": 0,
"workbench.colorCustomizations": {
"editorWhitespace.foreground": "#ffffff36",
"activityBarBadge.background": "#7CB342",
"list.activeSelectionForeground": "#7CB342",
"list.inactiveSelectionForeground": "#7CB342",
"list.highlightForeground": "#7CB342",
{"lastUpload":"2020-02-13T07:31:02.389Z","extensionVersion":"v3.4.3"}
<link rel="stylesheet" href="css/style.min.css" media="none" onload="if(media!='all')media='all'">
<noscript><link rel="stylesheet" href="css/style.min.css"></noscript>
@rubizhenko
rubizhenko / _mixin.sass
Created August 19, 2017 06:35
set of mixins
=keyframe($animation_name)
@-webkit-keyframes #{$animation_name}
@content
@-moz-keyframes #{$animation_name}
@content
@-o-keyframes #{$animation_name}
@content
@keyframes #{$animation_name}
@content
//backfix script for blocking back button action and showing popup with order form
var count = 1;
var t;
try {
for (t = 0; 100 > t; ++t) history.pushState({}, "", "#");
window.onpopstate = function(t) {
if (count % 2 == 1) {
$('.hidden-popup').fadeIn(400);
$('body').css('overflow-y', 'hidden')
}