Skip to content

Instantly share code, notes, and snippets.

View zerok's full-sized avatar

Horst Gutmann zerok

View GitHub Profile
@zerok
zerok / README.rst
Created June 9, 2016 09:19
Issue installing packages in docker

I'm currently facing the problem that I can no longer install various images in a docker:stretch based image using pip3. that's the output I get every time I try to build an image.

@zerok
zerok / Dockerfile
Created May 9, 2016 19:49
Simple NodeJS+Docker setup
FROM node:4
# Prepare non-root user and folders
RUN useradd --system --user-group --create-home app && \
mkdir /app && chown app:app /app
RUN npm install -g nodemon
# Install dependency outside of the app volume
COPY package.json /opt/
RUN cd /opt && npm install
@zerok
zerok / Dockerfile
Last active April 21, 2016 07:17
Docker FS issue with mounted volumes
FROM alpine
ADD run.sh /usr/local/bin/
VOLUME ["/opt"]
ENTRYPOINT ["/bin/sh", "/usr/local/bin/run.sh"]
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index 6a514ac..ddb87cf 100644
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -1,7 +1,6 @@
from copy import deepcopy
from paramiko import Transport
from paramiko.channel import Channel
-from paramiko.sftp_attr import SFTPAttributes
from paramiko.sftp_client import SFTPClient
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index 6a514ac..9b7146d 100644
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -75,6 +75,13 @@ def test_sftpserver_write_offset_unsupported(content, sftpclient):
f.write("test")
+def test_sftpserver_put_file(content, sftpclient, tmpdir):
+ tmpfile = tmpdir.join('test.txt')
@zerok
zerok / keybase.md
Created January 11, 2015 21:28
keybase.md

Keybase proof

I hereby claim:

  • I am zerok on github.
  • I am zerok (https://keybase.io/zerok) on keybase.
  • I have a public key whose fingerprint is 650C CB27 17EE 91B2 0052 E661 4F61 D46A B923 47C7

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am zerok on github.
* I am zerok (https://keybase.io/zerok) on keybase.
* I have a public key whose fingerprint is B181 18C7 AD0F 7924 2180 06C9 8B1D A551 24F6 522E
To claim this, I am signing this object:
@zerok
zerok / split-in-cwd.rb
Created May 20, 2012 17:32
Helper script for tmux' split-window command that retains the original PWD
#!/usr/bin/env ruby
=begin
Helper script for tmux' split-window command that retains the original PWD
This script is based on https://wiki.archlinux.org/index.php/Tmux#.2Fproc_method
=end
SHELL = 'reattach-to-user-namespace -l zsh'
session_id, window_id, pane_id = `tmux display-message -p "#S:#I:#P"`.chomp.split(/:/)
tty = nil
@zerok
zerok / couch_backup.py
Created October 23, 2010 12:23
A simple backup script for couchdbs
"""
Copyright (c) 2010, Horst Gutmann <zerok@zerokspot.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
@zerok
zerok / dotless.rb
Created July 3, 2010 18:50
dotless homebrew formula
require 'formula'
class Dotless < Formula
homepage "http://www.dotlesscss.com/"
url "http://www.dotlesscss.com:8081/repository/download/bt3/.lastPinned/dotless-v1.1.0.2-16-ge76501f.zip?guest=1"
md5 "6bd2ccf37e670c6734a076f6c6c34f2d"
version "1.1.0.2"
def install
mono_path = `/usr/bin/which mono`.strip