Skip to content

Instantly share code, notes, and snippets.

android {
compileSdkVersion 18
buildToolsVersion "18.1.0"
defaultConfig {
minSdkVersion 12
targetSdkVersion 18
}
sourceSets {
/*
* Copyright (C) 2014. Victor Kosenko (http://qip-blog.eu.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@v3nko
v3nko / Dockerfile
Last active August 9, 2022 10:22
Android SDK docker image
FROM ubuntu:latest
RUN apt update && apt upgrade -y && apt install openjdk-11-jdk wget unzip git -y && apt clean
ENV ANDROID_HOME /opt/android
ENV PATH ${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/platform-tools
RUN mkdir $ANDROID_HOME
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip -qO android-sdk.zip \
@v3nko
v3nko / secure_dir.py
Last active November 1, 2025 15:46
Recursively encrypt or decrypt all files under selected directory
#!/usr/bin/env python3
import os
import sys
import getpass
from pathlib import Path
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from tqdm import tqdm
@v3nko
v3nko / mp4-to-gif.bat
Last active April 12, 2026 13:19
Batch script that converts all `.mp4` files in the current directory to 2× speed, palette-optimized GIFs using FFmpeg. It preserves original resolution and FPS, automatically overwrites existing files, and cleans up temporary palette images after each conversion.
@echo off
setlocal enabledelayedexpansion
for %%F in (*.mp4) do (
echo Processing: %%F
set "name=%%~nF"
ffmpeg -y -i "%%F" -filter_complex "[0:v]setpts=0.5*PTS,palettegen=max_colors=128:stats_mode=diff" "!name!_palette.png"
@v3nko
v3nko / resize-active-window.ahk
Last active April 12, 2026 13:23
AutoHotkey script that resizes the currently active window to exact user-defined dimensions via a hotkey prompt. Useful for testing fixed layouts, UI consistency, and precise window sizing without manual dragging.
#=::
WinGet, window, ID, A
InputBox, width, Resize, Width:
InputBox, height, Resize, Height:
WinMove, ahk_id %window%, , , , width, height
return
@v3nko
v3nko / README.md
Created May 28, 2026 20:27
AutoHotkey v2 script that types out clipboard content character-by-character as real keystrokes (like KeePass auto-type), instead of pasting.

clipboard-type-slow

An AutoHotkey v2 script that types out the current clipboard content character-by-character as simulated keystrokes, rather than pasting it.

Press the hotkey and the script "types" your clipboard into the active window one character at a time — the same approach KeePass uses for auto-typing passwords.

Why?