Skip to content

Instantly share code, notes, and snippets.

View vendion's full-sized avatar

Adam Jimerson vendion

View GitHub Profile
@vendion
vendion / gist:1901836
Created February 24, 2012 16:17
Example code of gosqlite3 erroring if database already exists
package main
import (
"fmt"
"github.com/kuroneko/gosqlite3"
)
func main() {
db, err := sqlite3.Open("test.db") //IF test.db already exists and is valid SQLite3 database this throws error, but the database can be opened with sqlite3 command
if err != nil {
@vendion
vendion / gist:1889179
Created February 23, 2012 02:01
go-sqlite3 compile error
go install -x . 1 ?
WORK=/tmp/go-build287490735
mkdir -p $WORK/github.com/mattn/go-sqlite3/_obj/
cd /home/vendion/gocode/src/github.com/mattn/go-sqlite3
pkg-config --cflags sqlite3
pkg-config --libs sqlite3
$GOROOT/pkg/tool/linux_amd64/cgo -objdir $WORK/github.com/mattn/go-sqlite3/_obj/ -- -I $WORK/github.com/mattn/go-sqlite3/_obj/ sqlite3.go
$GOROOT/pkg/tool/linux_amd64/6c -FVw -I $WORK/github.com/mattn/go-sqlite3/_obj/ -I $GOROOT/pkg/linux_amd64 -o $WORK/github.com/mattn/go-sqlite3/_obj/_cgo_defun.6 -DGOOS_linux -DGOARCH_amd64 $WORK/github.com/mattn/go-sqlite3/_obj/_cgo_defun.c
gcc -I . -g -O2 -fPIC -m64 -pthread -I $WORK/github.com/mattn/go-sqlite3/_obj/ -o $WORK/github.com/mattn/go-sqlite3/_obj/_cgo_main.o -c $WORK/github.com/mattn/go-sqlite3/_obj/_cgo_main.c
gcc -I . -g -O2 -fPIC -m64 -pthread -I $WORK/github.com/mattn/go-sqlite3/_ob
vendion ~ $ strace clyde
execve("/usr/bin/clyde", ["clyde"], [/* 53 vars */]) = 0
brk(0) = 0xf59000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f473876a000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
# -*- Mode: shell-script; sh-basic-offset: 2 -*-
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Justin Davis <jrcd83@gmail.com>
pkgname='clyde-git'
pkgver='20110326'
pkgrel='1'
pkgdesc="Next-generation libalpm/makepkg wrapper."
arch=('i686' 'x86_64')
url="http://clyde.archuser.com"
license=('custom')
@vendion
vendion / Clyde output
Created March 2, 2011 02:16
Output from clyde when trying to update from AUR
vendion ~ $ sudo clyde -Syua
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
:: Identifying AUR packages...
virtualbox-ext-oracle 14/ 14 [############################################] 100%
-> Identified 3 AUR packages.