Skip to content

Instantly share code, notes, and snippets.

View fd0's full-sized avatar

Alexander Neumann fd0

View GitHub Profile
@fd0
fd0 / -
Created July 23, 2017 07:52
==8663==Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING.
==8663==ASan shadow was supposed to be located in the [0x00007fff7000-0x10007fff7fff] range.
==8663==Process memory map follows:
0x00b048cf0000-0x00b048e50000 /home/fd0/src/i3/x86_64-pc-linux-gnu/i3
0x00b049050000-0x00b049051000 /home/fd0/src/i3/x86_64-pc-linux-gnu/i3
0x00b049051000-0x00b049089000 /home/fd0/src/i3/x86_64-pc-linux-gnu/i3
0x00b049089000-0x00b04908c000
0x7fa763561000-0x7fa7638b3000
0x7fa7638b3000-0x7fa7638dd000 /usr/lib/libgraphite2.so.3.0.1
0x7fa7638dd000-0x7fa763adc000 /usr/lib/libgraphite2.so.3.0.1
@fd0
fd0 / -
Created June 12, 2017 21:32
=== RUN TestCompress
=== RUN TestCompress/stdlib/flate/BestSpeed/json4M
=== RUN TestCompress/stdlib/flate/BestSpeed/json3K
=== RUN TestCompress/stdlib/flate/BestCompression/json4M
=== RUN TestCompress/stdlib/flate/BestCompression/json3K
=== RUN TestCompress/klauspost/flate/BestSpeed/json4M
=== RUN TestCompress/klauspost/flate/BestSpeed/json3K
=== RUN TestCompress/klauspost/flate/ConstantCompression/json4M
=== RUN TestCompress/klauspost/flate/ConstantCompression/json3K
=== RUN TestCompress/klauspost/snappy/json4M
package base
import (
"fmt"
"net/http"
"net/http/httputil"
"os"
)
func init() {
#!/bin/bash
snapshots=$(restic snapshots --json | jq --raw-output '.[].id')
for id in $snapshots; do
tree=$(restic cat snapshot $id | jq --raw-output .tree)
name=$(restic cat blob $tree | jq --raw-output '.nodes[0].name')
blobs=$(restic cat blob $tree | jq --compact-output '.nodes[0].content')
echo "{'id': '$id', 'name': '$name', 'content': $blobs}"
done
@fd0
fd0 / -
Created May 13, 2017 12:39
package main
import (
crand "crypto/rand"
"fmt"
"io"
"io/ioutil"
"math/rand"
"os"
"time"
@fd0
fd0 / -
Created May 13, 2017 12:31
package main
import (
crand "crypto/rand"
"fmt"
"io"
"io/ioutil"
"math/rand"
"os"
@fd0
fd0 / -
Created May 13, 2017 12:29
package main
import (
crand "crypto/rand"
"fmt"
"io"
"io/ioutil"
"math/rand"
"os"
fixes:
- "::src/"
mode: set
restic/backend/utils.go:10.74,12.16 2 1
restic/backend/utils.go:16.2,16.15 1 1
restic/backend/utils.go:24.2,24.27 1 1
restic/backend/utils.go:12.16,14.3 1 0
restic/backend/utils.go:16.15,19.17 3 1
restic/backend/utils.go:19.17,21.4 1 1
restic/backend/utils.go:33.31,35.2 1 1
restic/backend/utils.go:44.57,46.2 1 0
restic/backend/utils.go:50.67,52.2 1 0
package main
import (
"fmt"
"github.com/spf13/cobra"
)
var cmdRoot = &cobra.Command{
Run: func(*cobra.Command, []string) {