Skip to content

Instantly share code, notes, and snippets.

View IgorVodka's full-sized avatar
🏠
Working from home

Igor Vodka IgorVodka

🏠
Working from home
View GitHub Profile
@IgorVodka
IgorVodka / clear-versions.sh
Created August 7, 2018 18:24
Removes old patch tags, leaving only the latest ones for each tag (e.g. [1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.1.2] => [1.0.1, 1.1.2]
#!/usr/bin/env bash
prev_minor=0
prev_tag=
all_tags=()
save_tags=()
while read -r tag
do
array=($(grep -o '[0-9]\+' <<< $tag))
patch=${array[-1]}
Index: .idea/vcs.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- .idea/vcs.xml (date 1551557351000)
+++ .idea/vcs.xml (date 1551557351000)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
@IgorVodka
IgorVodka / get-pip.py
Created November 23, 2019 17:24
get-pip.py
This file has been truncated, but you can view the full file.
#!/usr/bin/env python
#
# Hi There!
# You may be wondering what this giant blob of binary data here is, you might
# even be worried that we're up to something nefarious (good for you for being
# paranoid!). This is a base85 encoding of a zip file, this zip file contains
# an entire copy of pip (version 19.3.1).
#
# Pip is a thing that installs packages, pip itself is a package that someone
# might want to install, especially if they're looking to run this get-pip.py