Skip to content

Instantly share code, notes, and snippets.

View SERGZV's full-sized avatar
💭
Working on portfolio

Sergey Zavyalov SERGZV

💭
Working on portfolio
View GitHub Profile
@h3ssan
h3ssan / JetBrains trial reset.md
Last active July 31, 2024 01:47
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@nnm-t
nnm-t / ConvertToSprite.cs
Last active July 20, 2024 09:24
Convert Texture2D To Sprite
using UnityEngine;
public static class ConvertToSpriteExtensiton
{
public static Sprite ConvertToSprite(this Texture2D texture)
{
return Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), Vector2.zero);
}
}