Skip to content

Instantly share code, notes, and snippets.

View mlevkov's full-sized avatar

Maxim Levkov mlevkov

View GitHub Profile
#![allow(unused_imports)]
#![allow(non_snake_case)]
#[macro_use] extern crate log;
extern crate simple_logger;
extern crate xml;
extern crate yaserde;
#[macro_use] extern crate yaserde_derive;
use std::{io::BufReader, fs::File, fs::read_to_string, io::Read, io::Write};
@mlevkov
mlevkov / signedrequests_modified.go
Created June 4, 2022 07:27
Google Media CDN Signed URLs key helper with PEM converter
package main
import (
"crypto/ed25519"
"crypto/x509"
"encoding/base64"
"encoding/pem"
"flag"
"fmt"
"io"
@mlevkov
mlevkov / cargo_clean_all.sh
Created February 5, 2026 01:48
Batch 'cargo clean' for multiple Rust projects - safely removes target directories with progress bar and space savings summary
#!/bin/bash
# Safely run 'cargo clean' on all Rust project roots
#
# SAFETY: This script ONLY executes 'cargo clean' command.
# It does NOT use rm, rmdir, or any direct deletion commands.
# Don't use set -e as we handle errors manually and want to continue on failures
ROOT_DIR="${1:-.}"
# Function to check if a directory is inside another Cargo project