Skip to content

Instantly share code, notes, and snippets.

View gorshunovr's full-sized avatar
🌌
Working from the Milky Way

Roman Gorshunov gorshunovr

🌌
Working from the Milky Way
View GitHub Profile
@gorshunovr
gorshunovr / getrss.py
Last active September 7, 2020 14:13
Python Podcasts RSS parser
#!/usr/bin/env python3
# Podcasts RSS parser: extracts audio, description,
# episode picture URLs to feed to
# `ffmpeg` and YouTube upload
#
# Roman Gorshunov, linkmeup, 2020
#
import argparse
import logging
@gorshunovr
gorshunovr / rackspace_content-encoding.sh
Created October 12, 2019 14:00
Rackspace CDN Content-Encoding headers demo
#!/usr/bin/env bash
URL="https://2365c1d014187c3ae706-2572cddac5187c7b669ab9398e41b48d.ssl.cf5.rackcdn.com/687536/4/check/openstack-tox-docs/eb49c40/"
UA="User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.2 Safari/605.1.15"
ACCEPT="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
ACCEPT_LANG="Accept-Language: en-us"
ACCEPT_ENC="Accept-Encoding: gzip, deflate, br"
PERL_ZLIB_DECODER='use Compress::Raw::Zlib;my $d=new Compress::Raw::Zlib::Inflate();my $o;undef $/;$d->inflate(<>,$o);print $o;'
---
- hosts: localhost
gather_facts: no
tasks:
- name: "loop through list"
debug:
msg: "An item: {{ item }}"
with_items:
- 1
- 2
@gorshunovr
gorshunovr / airship_repos.sh
Last active September 7, 2020 14:14
Airship repositories updater
#!/usr/bin/env bash
# Pulls/updates local Airship repositories
airship_git_repo_root="https://opendev.org/airship"
airship_projects=(
'airshipctl'
'armada'
'berth'
'deckhand'
'divingbell'
'docs'
@gorshunovr
gorshunovr / jenkins_job_submit.sh
Last active May 15, 2018 13:24
Tracks whether Jenkins SuperSeed has picked up new push in Gerrit, and if yes, then launches Jenkind Build
#!/bin/bash
##
#
# Script tracks whether Jenkins SuperSeed job has picked up new push in Gerrit,
# and if yes and Successful, then launches Jenkind Build.
# Launch example:
# $ git commit -a --amend --reuse-message HEAD && git review && ../jenkins_job_submit.sh
#
# SuperSeed: https://github.com/att-comdev/cicd/tree/master/cicd/SuperSeed