Skip to content

Instantly share code, notes, and snippets.

@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 / 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 \
/*
* 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
android {
compileSdkVersion 18
buildToolsVersion "18.1.0"
defaultConfig {
minSdkVersion 12
targetSdkVersion 18
}
sourceSets {