The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,839 other subscribers

Research notes on Diffie Hellman over WebSockets over a MittM http proxy to setup an encapsulated secure channel

Posted by jpluimers on 2015/06/17

Inspired by CloudFlare Keyless SSL, I have this idea of using Diffie Hellman over WebSockets over a MittM based http proxy (which intercepts and decrypts HTTPS traffic) like mitmproxy (but them from a commercial vendor to inspect web traffic) to setup an encapsulated secure channel.

I know SSH uses Diffie Hellman to setup a secure channel over a binary TCP connection.

Binary communication over HTTP usually means WebSocket.

I don’t want WebSSH (which does use WebSockets, but is probably filtered by the MitM proxy anyway).

Maybe either of these open source tools will work:

If these don’t work, I need to do more research.

Since I use C# and .NET for much of my work, I started the WebSocket over HTTP C# query.

c# – How to use proxies with the WebSocket4Net library – Stack Overflow.

–jeroen

Posted in *nix, *nix-tools, Communications Development, Development, HTTP, Internet protocol suite, Linux, Power User, SSH, SuSE Linux, TCP, WebSockets, Windows, Windows-Http-Proxy | Leave a Comment »

Git SVN: an easy way to try out Git when your main repository is still SVN (via: XE6 still stuck on an old SVN version…)

Posted by jpluimers on 2015/06/16

Graeme Geldenhuys posted a great comment below.

Summary:

Git can do SVN, so locally you will see it as a Git repository, but the SVN repository will stay “as is” and not be affected neither will other SVN users be affected.

Two of the great benefits of this:

  1. You have fill local history so no need for long server-round trips to access it.
  2. You have the full query featureset of Git at your disposal. Locally.

Combined, you can do these without the need to be online or wait for the SVN connection and transfer:

For instance to view your branches:

git branches -vv

Or to show the branch-history:

git show-branch

It is how I access the FastMM repository from Git and described the git commands on how to get started and keep up to date.

Here is Graeme’s comment:           Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, Mercurial/Hg, Software Development, Source Code Management, Subversion/SVN | Leave a Comment »

Watch changes on html pages that do not have RSS

Posted by jpluimers on 2015/06/15

A few tools that help you watch changes in html pages, even these pages do not have RSS: they make a feed out of a page.

–jeroen

Posted in Development, HTML, Power User, Software Development, Web Development | Leave a Comment »

Posted by jpluimers on 2015/06/12

Hoe vies is de lucht bij jou in de buurt? http://s.parool.nl/4073648

Posted in Uncategorized | Leave a Comment »

ThinkGeek :: There’s no place like 127.0.0.1

Posted by jpluimers on 2015/06/12

T-Shirt quote:

‘There’s no place like 127.0.0.1’

–jeroen

via: ThinkGeek :: There’s no place like 127.0.0.1.

ThinkGeek :: There's no place like 127.0.0.1

Posted in Fun, Quotes, T-Shirt quotes | Leave a Comment »

Download them as soon as you can – Yahoo Pipes Blog: Pipes End-of-life Announcement

Posted by jpluimers on 2015/06/11

From Yahoo Pipes Blog: Pipes End-of-life Announcement:

Pipes End-of-life Announcement

As of August 30th 2015, users will no longer be able to create new Pipes. The Pipes team will keep the infrastructure running until end of September 30th 2015 in a read-only mode.

You can download your Pipe definition by specifying your Pipe-ID (_id) and the output format (_out=json) to the following end-point: http://pipes.yahoo.com/pipes/pipe.info

For e.g:

http://pipes.yahoo.com/pipes/pipe.info?_id=ZKJobpaj3BGZOew9G8evXg&_out=json

Please post any questions you have related to this announcement on the Yahoo Developer Forum for Pipes. The Pipes team thanks you for support and cooperation.

–jeroen

via: Yahoo Pipes Blog.

Posted in Power User | Leave a Comment »

reboot fixes “pam_systemd(sshd:session): Failed to create session: Connection timed out” need to find the cause.

Posted by jpluimers on 2015/06/11

In case I get something similar to this again:

Mar 11 12:54:06 filesrepo sshd[22021]: Accepted publickey for SOMEUSER from xxx.xxx.xxx.xxx port xxxxx ssh2: RSA xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Mar 11 12:54:06 filesrepo kernel: type=1006 audit(1394542446.943:117): pid=22021 uid=0 old auid=4294967295 new auid=1019 old ses=4294967295 new ses=116 res=1
Mar 11 12:54:06 filesrepo sshd[22021]: pam_unix(sshd:session): session opened for user SOMEUSER by (uid=0)
Mar 11 12:54:06 filesrepo dbus[421]: [system] Activating systemd to hand-off: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service'
Mar 11 12:54:31 filesrepo sshd[22021]: pam_systemd(sshd:session): Failed to create session: Connection timed out
Mar 11 12:54:31 filesrepo dbus[421]: [system] Failed to activate service 'org.freedesktop.login1': timed out
Mar 11 12:54:31 filesrepo dbus[421]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Mar 11 12:54:32 filesrepo svnserve[22061]: DIGEST-MD5 common mech free
Mar 11 12:54:32 filesrepo sshd[22021]: pam_unix(sshd:session): session closed for user SOMEUSER

I have been noticing this for last few days but I thought systemd update should solve this (bug report was raised against systemd)

I updated system today (I have not given it a reboot yet) and I still see those logs.

Rebooting fixed this issue.

But I’m not sure about the cause.

–jeroen

via: [closed] pam_unix(sshd:session) timeouts / Networking, Server, and Protection / Arch Linux Forums.

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »

HGST levert eerste 10TB-hdd met helium uit – IT Pro – Nieuws – Tweakers

Posted by jpluimers on 2015/06/11

Great comment on BER and ZFS: http://tweakers.net/nieuws/103587/hgst-levert-eerste-10tb-hdd-met-helium-uit.html?showReaction=7728136#r_7728136

Posted in Uncategorized | Leave a Comment »

A flowchart to help you with your git…

Posted by jpluimers on 2015/06/11

I wish I had known this years ago. Thanks This is why I code!

This is why I Code Shared publicly: #Git  A flowchart to help you with your git decisions http://justinhileman.info/article/git-pretty.

This is the blog post; the chard is below.

Git pretty

This chart is from the presentation Changing History, or How to Git Pretty. Check it out to learn how to use this IRL.
Here’s a printable PDF version, if you’re into that sort of thing.

interactive git chart

If you like a more interactive way of decision making, this one is more elaborate: On undoing, fixing, or removing commits in git.

Note that on Windows, git does not like this:

git reset HEAD^

But does like this equivalent:

git reset HEAD~1

–jeroen

via A flowchart to help you with your git….

So you've made a mess of things?

Posted in Development, DVCS - Distributed Version Control, git, Source Code Management | Leave a Comment »

Moving my BitBucket mercurial repository to git was a lot harder than I hoped for (but moving to GitHub was easy)

Posted by jpluimers on 2015/06/10

After reading Converting Hg repositories to Git directed me into reading Bitbucket: Converting Hg repositories to Git I hoped moving my Mercurial repository on BitBucket to a Git repository would be something like following the steps.

It wasn’t.

First of all, hg-git on a Windows system requires Python or TortoiseHg. Neither of these I wanted to install for a one-off conversion.

So I took a throw-away Linux VM, and did the steps below. But let me first explain why.

Motivation

My motivation for moving away from BitBucket to GitHub, especially for projects containing markdown documentation.

When writing documentation in Markdown, being able to in-line reference pictures or have relative-references to other documents. This works perfectly in local Markdown tools (like MarkdownPad 2 or LightPaper).

Read the rest of this entry »

Posted in *nix, *nix-tools, BitBucket, Development, DVCS - Distributed Version Control, git, GitHub, Linux, Mercurial/Hg, openSuSE, Power User, Source Code Management, SuSE Linux | Leave a Comment »