Skip to content

Instantly share code, notes, and snippets.

View AudriusButkevicius's full-sized avatar

Audrius Butkevicius AudriusButkevicius

View GitHub Profile
@AudriusButkevicius
AudriusButkevicius / gist:c53c613c593a247ad695
Created June 22, 2015 11:07
TLS proxy example with both ends being clients
package main
import(
"fmt"
"net"
"path/filepath"
"crypto/tls"
"time"
"sync"
)
21:50:34 INFO: File "0-A\1-Ä" has UTF8 encoding conflict with another file; ignoring.
21:50:34 INFO: Normalized UTF8 encoding of file name "0-A\3-Ã".
21:50:34 INFO: File "1-Ä" has UTF8 encoding conflict with another file; ignoring.
21:50:34 INFO: File "1-Ä\1-Ä" has UTF8 encoding conflict with another file; ignoring.
21:50:34 INFO: Normalized UTF8 encoding of file name "1-Ä\3-Ã".
21:50:34 INFO: File "2-Å\1-Ä" has UTF8 encoding conflict with another file; ignoring.
21:50:34 INFO: Normalized UTF8 encoding of file name "2-Å\3-Ã".
21:50:34 INFO: Normalized UTF8 encoding of file name "3-Ã".
21:50:34 INFO: File "4-☕\1-Ä" has UTF8 encoding conflict with another file; ignoring.
21:50:34 INFO: Normalized UTF8 encoding of file name "4-☕\3-Ã".
Audrius@Audrius syncthing $ git reset --hard HEAD
HEAD is now at fc0cb70 Merge pull request #1523 from calmh/vv
Audrius@Audrius syncthing $ cat Godeps/Godeps.json | grep -A1 protocol
"ImportPath": "github.com/syncthing/protocol",
"Rev": "f9132cae85dcda1caba2f4ba78996d348b00ac6c"
Audrius@Audrius syncthing $ godep save ./cmd/...
Audrius@Audrius syncthing $ git --git-dir ../protocol/.git/ show -1
commit 6277c0595c18d42e9db75dfe900463ef093a82d2
Merge: 5750443 aa9eda1
Author: Jakob Borg <[email protected]>
@AudriusButkevicius
AudriusButkevicius / go-windows-symlinks.go
Created November 3, 2014 00:26
Symlinks in Windows - check, read, create - golang
@AudriusButkevicius
AudriusButkevicius / gist:ae7b2a818ce4d7f6213c
Created August 24, 2014 17:26
MahApps.Metro C# UI blocking
public partial class MainWindow : MetroWindow
{
public MainWindow()
{
InitializeComponent();
RegisterHandlers();
this.Loaded += WindowLoaded;
}
void WindowLoaded(object sender, RoutedEventArgs e)