Skip to content

Instantly share code, notes, and snippets.

View smira's full-sized avatar
🏠
Working from home

Andrey Smirnov smira

🏠
Working from home
View GitHub Profile
@smira
smira / output
Created November 24, 2014 15:58
aptly importing package
smira@Andreys-MacBook-Pro-2 ~ $ wget http://yac1912x.gbks.net/misc/xul-ext-unmht_7.3.0.1-0ubuntu1_all.deb
--2014-11-24 18:56:42-- http://yac1912x.gbks.net/misc/xul-ext-unmht_7.3.0.1-0ubuntu1_all.deb
Resolving yac1912x.gbks.net... 81.169.231.253
Connecting to yac1912x.gbks.net|81.169.231.253|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 284386 (278K) [application/x-debian-package]
Saving to: ‘xul-ext-unmht_7.3.0.1-0ubuntu1_all.deb’
100%[================================================================================================================================================================>] 284,386 978KB/s in 0.3s
@smira
smira / README
Last active August 29, 2015 14:03
goleveldb possible lost keys
db1.* - initial database after creation
db2.* - after compaction
db3.* - dropped CURRENT file, after recover, some keys lost
db4.* - after recover without compaction, all keys present
@smira
smira / recover.go
Created April 4, 2014 15:34
recover aptly db
package main
import (
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/storage"
"log"
)
func main() {
stor, err := storage.OpenFile("/Users/smira/.aptly/db/")