Skip to content

Instantly share code, notes, and snippets.

@miku
miku / 945526.945527.pdf
Last active Jun 7, 2021
Dijkstra 1965 (Go)
View 945526.945527.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@miku
miku / .gitignore
Last active May 28, 2021
Lightning talk, Notes on Storage
View .gitignore
golangleipzig.cdx
golangleipzig.warc.gz
@miku
miku / .gitignore
Last active Apr 21, 2021
A data deduplication example with Go
@miku
miku / disassembler.go
Created Dec 15, 2020 — forked from grantseltzer/disassembler.go
Full disassembler
View disassembler.go
package main
import (
"debug/elf"
"fmt"
"log"
"os"
"github.com/bnagy/gapstone"
)
@miku
miku / makecomb.py
Created Dec 14, 2020
Generate combinations from a list
View makecomb.py
#!/usr/bin/env python
"""
Turn:
a
b
c
into:
@miku
miku / makecomb.py
Last active Nov 25, 2020
combinations for the command line
View makecomb.py
#!/usr/bin/env python
import fileinput
import itertools
vs = set()
for line in fileinput.input():
line = line.strip()
if not line:
continue
vs.add(line)
@miku
miku / py2.py
Created Aug 18, 2020
Metaclass syntax Python 2 and 3
View py2.py
class A:
pass
class B(metaclass=A):
pass
View gist:9d32607dc394949e5f56bf2066562c79
import shelve
import multiprocessing
import os
filename = "tmp.shelve"
N = 4
end = 10000
def insert((offset, jump, end, filename)):
@miku
miku / http_proxy.go
Created Jul 2, 2020 — forked from jim3ma/http_proxy.go
Register Dialer Type for HTTP&HTTPS Proxy in golang
View http_proxy.go
package main
import (
"bufio"
"fmt"
"net"
"net/http"
"net/url"
"crypto/tls"
@miku
miku / .gitignore
Last active Jun 30, 2020
Check tar files status
View .gitignore
/tarcheck
/elsevier_tarcheck.ndj