Skip to content

Instantly share code, notes, and snippets.

@rromanchuk
rromanchuk / generate_cloudfront_signed_cookies.py
Created October 16, 2025 18:49 — forked from mjohnsullivan/generate_cloudfront_signed_cookies.py
Python script that generates signed cookies to control access to CloudFront content
#!/usr/bin/env python
"""
Copyright (C) 2017 Matt Sullivan
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
@rromanchuk
rromanchuk / generate_cloudfront_signed_cookies.py
Created October 16, 2025 18:49 — forked from mjohnsullivan/generate_cloudfront_signed_cookies.py
Python script that generates signed cookies to control access to CloudFront content
#!/usr/bin/env python
"""
Copyright (C) 2017 Matt Sullivan
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
ffmpeg -i in.avi -c:v hevc_videotoolbox -q:v 65 -tag:v hvc1 out.mp4
@rromanchuk
rromanchuk / build.sh
Created April 1, 2024 15:14
SDRReceiver build from source bookworm
git clone https://github.com/jeroenbeijer/SDRReceiver.git
cd SDRReceiver
sudo apt install qtbase5-dev
sudo apt install librtlsdr-dev libzmq3-dev libusb-dev
qmake
make
sudo make install
@rromanchuk
rromanchuk / ec2_graviton_dl_bootstrap.sh
Last active August 28, 2024 20:46 — forked from bilalmughal/ec2_graviton_dl_bootstrap.sh
This script automates the setup of an Amazon EC2 Graviton ARM-based instances for deep learning tasks. It takes care of installing essential utilities, setting up latest Nvidia drivers and CUDA 12.2 toolkit and cuDNN library, and build PyTorch from source. The step-by-step guided can be checked here. https://jumpshare.com/blog/deep-learning-on-a…
#!/bin/bash
set -e # Exit on any error
# Check if required arguments are provided
if [ -z "$REGION" ] || [ -z "$SECURITY_GROUPS" ] || [ -z "$KEY_PAIR" ] || [ -z "$SUBNET" ]; then
echo "Error: You must provide REGION, SECURITY_GROUPS, KEY_PAIR, and SUBNET as environment variables."
echo "Example:"
echo " export REGION=us-east-1"
echo " export SECURITY_GROUPS=sg-12345678,sg-87654321"
echo " export KEY_PAIR=my-key-pair"
@rromanchuk
rromanchuk / ts_850.x12
Created December 27, 2023 20:57
[Tractor Supply Co] 850 DTC Purchase Order
ISA*00* *00* *08*6120930010 *01*064193840ZZ *190627*1537*U*00401*000000008*0*P*>~
GS*PO*6120930010*064193840ZZ*20190627*15372942*000000005*X*004010~
ST*850*0001~
BEG*00*DS*9003025779**20190627~
REF*CO*3003012333~
REF*IA*800410~
FOB*TP~
CSH*N~
ITD*05******60*****NET 60~
DTM*010*20190627~
from clearml import Task, OutputModel
import os
cwd = os.getcwd()
print(cwd)
dataset_path = cwd
print(dataset_path)
@rromanchuk
rromanchuk / mlat.sh
Created February 1, 2023 01:37
Test mlat multi-server stream with forked client /usr/local/bin/mlat.sh
#!/bin/bash
if [[ "$MLAT_MARKER" == "no" ]]; then
PRIVACY="--privacy"
fi
exec /usr/local/share/adsbexchange/venv/bin/mlat-client-fork \
--input-type $INPUT_TYPE --no-udp \
--input-connect $INPUT \
$PRIVACY \
--server $MLATSERVER \
--mirror_server feed.adsb.lol:31090
@rromanchuk
rromanchuk / aircraftreports.csv
Created September 3, 2022 09:01
Example CSV of report_type PIREP
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 45 columns, instead of 11 in line 5.
2022-09-01T05:55:03Z,2022-09-01T05:47:00Z,,,,,,,AT75,34.759,-96.5863,21000,,,,,,,,MOD,,,,,,,,,,,,,,,,,,,,,,,PIREP,1F0 UA /OV KADH120005 /TM 0547 /FL210 /TP AT75 /TB MOD /RM ZFW AWC-WEB,
2022-09-01T05:40:03Z,2022-09-01T05:36:00Z,,,,,,,BE20,61.1785,-150.408,2000,,,,,,,,MOD,,,,,,,,,,,,,,,,,,,,,,,PIREP,ANC UA /OV TED255013/TM 0536/FL020/TP BE20/TB MOD TURB/RM DURD ON FINAL,
2022-09-01T05:51:06Z,2022-09-01T05:21:00Z,,,,,,,A321,22.7747,-74.6372,33000,,,,,,,CHOP,LGT-MOD,,,,,,,,,,,,,,,,,,,,,,,PIREP,MBPV UA /OV PVN305145/TM 0521/FL330/TP A321/TB LGT-MOD CHOP/RM MBPV,
2022-09-01T05:20:12Z,2022-09-01T04:59:00Z,,,,,,,BE20,63.1301,-150.1371,25000,,,,,,,,,,,,,,,,,RIME,MOD,,,,,,,,,-25,,,,PIREP,TKA UA /OV TKA340050/TM 0459/FL250/TP BE20/TA M25/IC MOD RIME/RM ZAN,
2022-09-01T05:29:12Z,2022-09-01T04:57:00Z,,,,,,,A20N,33.5139,-94.0732,36000,SCT,36000,,,,,CAT,LGT,,,,,,,,,,,,,,,,,,,,,,,PIREP,TXK UA /OV TXK/TM 0457/FL360/TP A20N/SK SCT360/TB LGT CAT/RM ZFW AWC-WEB/,
2022-09-01T05:00:04Z,2022-09-01T04:50:00Z,,,,,,,A321,33.6639,-98.
apt_smoothing_pix=8
road_level=3
road_banking_limit=0.5
lane_width=5.0
max_levelled_segs=150000
water_simplification=0.0
min_area=0.001
max_area=1000.0
clean_bad_geometries=True
mesh_zl=20