Skip to content

Instantly share code, notes, and snippets.

View Nyarstot's full-sized avatar
:octocat:
Dfuq am i doing

Nikita Kozlov Nyarstot

:octocat:
Dfuq am i doing
View GitHub Profile
@Nyarstot
Nyarstot / PHRemoveAgeVerification.js
Last active September 6, 2025 18:38
Tampermonkey based extension that blocks VKontakte age verification on Pornhub in Russia
// Works via Tampermonkey extension http://tampermonkey.net/
// ==UserScript==
// @name Remove VK age verification
// @version 1.2
// @namespace global
// @description Removes VK age verification block in rt.pornhub.com
// @author Nyarstot
// @match https://rt.pornhub.org/*
// ==/UserScript==
@Nyarstot
Nyarstot / locatorToGroup.py
Created August 11, 2024 22:44
Converts Autodesk Maya locators to groups. Useful while importing geometry from other DCC tools using fbx format.
import maya.cmds as mc
def locatorToGroup():
sel = mc.ls(selection = True)
if sel:
children = mc.listRelatives(sel, ad = True)or []
if len(children) > 1:
@Nyarstot
Nyarstot / centerTextVertically.jsx
Created January 24, 2024 23:48
Photoshop script to center text vertically in a text box. Simply select text box and execute the scipt.
// Original solution are provided by Adam Elsodaney here: https://graphicdesign.stackexchange.com/questions/26212/how-to-center-text-vertically-within-a-textbox-in-photoshop
// Just made few edits
centerTextVertically( app.activeDocument.activeLayer);
/**
* @param {ArtLayer} textLayer The text layer to apply the vertical centering.
*/
function centerTextVertically( textLayer ) {
if ( textLayer.kind !== LayerKind.TEXT ) {
@Nyarstot
Nyarstot / EASTLPremake5.lua
Last active January 13, 2024 06:51
premake5 build configuration file for EASTL library
IncludeLibDirs = {}
IncludeLibDirs["EAAssert"] = "EASTL/test/packages/EAAssert"
IncludeLibDirs["EABase"] = "EASTL/test/packages/EABase"
IncludeLibDirs["EAMain"] = "EASTL/test/packages/EAMain"
IncludeLibDirs["EAStdC"] = "EASTL/test/packages/EAStdC"
IncludeLibDirs["EATest"] = "EASTL/test/packages/EATest"
IncludeLibDirs["EAThread"] = "EASTL/test/packages/EAThread"
project "EASTL"
kind "StaticLib"