Skip to content

Instantly share code, notes, and snippets.

Seppo Yli-Olli nanonyme

  • Finland
Block or report user

Report or block nanonyme

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nanonyme
nanonyme / gist:6268358
Last active Dec 21, 2015
brainstorming on suds + python-requests thinamabob, MIT-licensed
View gist:6268358
from suds.transport import Transport, Reply
from suds.client import Client
import requests
from StringIO import StringIO
class RequestsTransport(Transport):
def open(self, request):
""" suds assumes urllib2 which doesn't have keepalives so things can go royally wrong if it doesn't
read the entire request. Hence, read it all up and give a StringIO object instead.
@nanonyme
nanonyme / local_steam_flatpak_build.sh
Last active Jul 13, 2017
Creating a 32bit Steam Flatpak
View local_steam_flatpak_build.sh
#!/bin/sh -xe
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.freedesktop.Platform/i386 org.freedesktop.Sdk/i386
if [ ! -d com.valvesoftware.Steam ]
git clone git://github.com/flathub/com.valvesoftware.Steam
fi
(
cd com.valvesoftware.Steam
git pull
flatpak-builder --repo=$HOME/flatpak-builds --disable-cache --force-clean --arch=i386 com.valvesoftware.Steam com.valvesoftware.Steam.json
@nanonyme
nanonyme / converter.py
Created Jan 2, 2019
JSON to YAML conversion
View converter.py
from ruamel.yaml import YAML
import json
from pathlib import Path
import sys
from collections import OrderedDict
import collections
from ruamel.yaml.comments import CommentedMap
def convert(filename):
yaml = YAML()
You can’t perform that action at this time.