Skip to content

Instantly share code, notes, and snippets.

@soamaven
soamaven / embedimages.py
Last active May 2, 2018 06:54
Parser and converter for jupyter markdown cells for nbconvert
"""HTML Image handling for embedded images in markdown cells."""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
@soamaven
soamaven / build_wire_rpm.sh
Created September 4, 2017 02:50
Bash script to create the rpm for the Wire Desktop app for fc26
# Make a temporary dir to hold downloaded files
mkdir ~/tempwire
cd ~/tempwire
# Get Wire Version
WIRE_VER=$(curl -s -N "https://github.com/wireapp/wire-desktop/releases.atom" | grep -o -m1 ".*Linux.*" | grep -Po "[0-9.]{9}");
# Get latest files from Connor Anderson's Git repo
git clone "https://gitlab.com/ConorIA/wire-builds/repository/archive.tar.gz?ref=master" ~/tempwire
# Get and sort the sources
sed -i "s/<VERSION>/${WIRE_VER}/" wire-desktop.spec