Skip to content

Instantly share code, notes, and snippets.

@dgsb
dgsb / sqlite3_journal.go
Last active September 15, 2016 19:18
sqlite3 journal issue
package main
import (
"database/sql"
_ "github.com/mattn/go-sqlite3"
"time"
)
func main() {
db, err := sql.Open("sqlite3", "/tmp/test.db")
@dgsb
dgsb / runnee.tcl
Last active August 29, 2015 13:56
Expect core dump
#!/bin/sh
# \
exec tclsh "$0" "$@"
set nb_iter 1000
set sleep 500
for {set i 0} {$i < $nb_iter} {incr i} {
after $sleep
puts $i