- 直接import記述していないパッケージが取り込まれない場合がある。
- 動作するときのsys.modulesと動作しない時のsys.modulesをよく見比べましょう。
- pngだろうがなんだろうが、「tiff2icns」でicnsファイルは作れる。
- OS-X内蔵Pythonはアプリ内に複製できない(py2appの仕様)ので、別途Pythonをインストールする必要がある。 (portsサンプル多いが、brewでもできたー。)
for PyQt or PySide
#!/bin/sh | |
# for ubuntu 12.xx | |
sudo add-apt-repository ppa:malizor/gtk-broadway | |
sudo apt-get update | |
sudo apt-get upgrade | |
GDK_BACKEND=broadway UBUNTU_MENUPROXY= LIBOVERLAY_SCROLLBAR=0 python sample.py & | |
sensible-browser http://localhost:8080/ |
# encoding: utf-8 | |
import os | |
import signal | |
from subprocess import Popen | |
cmd = ['python', '-c', 'import time; time.sleep(1); print "Hello."'] | |
if 0: | |
proc = Popen(cmd, close_fds=True, preexec_fn=os.setsid) |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import os | |
import time | |
import struct | |
FileHeader = struct.Struct(format="<LHHlLll") | |
PacketHeader = struct.Struct(format="<LLLL") |
#!/usr/bin/env bash | |
# Before executing it, you must download UnQLite source code (http://www.unqlite.org/downloads.html) | |
# unzip all the files and execute this script inside the unzipped folder. For example: | |
# mkdir /tmp/unqlite; cd /tmp/unqlite; unzip ~/Downloads/unqlite-db-116.zip | |
gcc -DUNQLITE_ENABLE_THREADS=1 -Wall -fPIC -c *.c | |
gcc -shared -Wl,-soname,libunqlite.so.1 -o libunqlite.so.1.0 *.o | |
sudo cp `pwd`/libunqlite.so.1.0 /usr/local/lib/ | |
sudo cp `pwd`/unqlite.h /usr/local/include/ | |
sudo ln -sf /usr/local/lib/libunqlite.so.1.0 /usr/local/lib/libunqlite.so.1 |
PATH=/usr/local/opt/coreutils/libexec/gnubin:$PATH |
sudo apt-get install --yes libnl-dev | |
wget http://hostap.epitest.fi/releases/wpa_supplicant-2.0.tar.gz | |
cd wpa_supplicant-2.0/wpa_supplicant | |
cat defconfig | sed -e "s/#CONFIG_EAPOL_TEST=y/CONFIG_EAPOL_TEST=y/" > .config | |
make eapol_test | |
sudo cp eapol_test /usr/local/bin/ |
# depends: docker, fabric | |
.PHONY: help build run start commit stop stop-all ssh shell clean | |
TAG=nobonobo/ubuntu | |
help: | |
@echo "USAGE:" | |
@echo " make build ... image build" | |
@echo " make run ... container run" |
package main | |
import ( | |
"database/sql" | |
"encoding/gob" | |
"fmt" | |
_ "github.com/mattn/go-sqlite3" | |
"github.com/nobonobo/unqlitego" | |
"github.com/peterbourgon/diskv" | |
"github.com/steveyen/gkvlite" |