Skip to content

Instantly share code, notes, and snippets.

View marten-seemann's full-sized avatar

Marten Seemann marten-seemann

View GitHub Profile
@marten-seemann
marten-seemann / Mac Keyboard Symbols.textexpander
Created May 23, 2012 10:08
Symbols from the Mac Keyboard using Unicode Chars
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>groupInfo</key>
<dict>
<key>expandAfterMode</key>
<integer>0</integer>
<key>groupName</key>
<string>Mac Keyboard Symbols</string>
@marten-seemann
marten-seemann / comment.sublime-snippet
Created May 31, 2012 15:25
Sublime Snippet for inserting captions (as comments ###) in Python
<snippet>
<content><![CDATA[
#${1/./#/g}###
# $1 #
#${1/./#/g}###
$0
]]></content>
<tabTrigger>#</tabTrigger>
<scope>source.python</scope>
#!/bin/bash
mkdir tmp123
cd tmp123
wget "http://www.sublimetext.com/forum/download/file.php?id=200" -O icon.zip
unzip icon.zip
cp "Sublime Text 2.icns" /Applications/Sublime\ Text\ 2.app/Contents/Resources/
cd ..
rm -rf tmp123
@marten-seemann
marten-seemann / main.go
Last active May 8, 2016 13:38
Packet dropping UDP proxy for testing QUIC
// Packet dropping UDP proxy for testing QUIC
package main
import (
"bytes"
"flag"
"fmt"
"net"
"os"
package main
import (
"bytes"
"fmt"
"io"
"time"
)
func ReadUint64(b io.ByteReader) (uint64, error) {
package main
import (
"fmt"
"net"
"strconv"
"time"
)
func main() {
package main
import (
"fmt"
"github.com/lucas-clemente/quic-go/crypto"
"github.com/lucas-clemente/quic-go/protocol"
)
func main() {
package main
import (
"bytes"
"errors"
"fmt"
"net"
"sync"
"time"
)
package udptest
import (
"net"
"strconv"
"time"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
package main
import (
"math/rand"
"time"
proxy "github.com/lucas-clemente/quic-go/integrationtests/tools/proxy"
"github.com/lucas-clemente/quic-go/internal/protocol"
)