Skip to content

Instantly share code, notes, and snippets.

View sarahhodne's full-sized avatar
🏳️‍⚧️

Sarah Hodne sarahhodne

🏳️‍⚧️
View GitHub Profile
@sarahhodne
sarahhodne / deploy.rb
Created September 13, 2008 09:58
The Capistrano config/deploy.rb
set :user, 'nordicmineral' # Your dreamhost account's username
set :domain, 'gambino.dreamhost.com' # Dreamhost servername where your account is located
set :project, 'nordicmineral' # Your application as its called in the repository
set :application, 'nordicmineral.com' # Your app's location (domain or sub-domain name as setup in panel)
set :applicationdir, "/home/#{user}/#{application}" # The standard Dreamhost setup
# version control config
set :scm_username, 'nordicmineral'
set :scm_password, '***********'
set :repository, "svn+ssh://#{scm_username}@nordicmineral.com/home/nordicmineral/svn/#{project}"
[13:59:36] [nordicmineral@gambino copythis]$ cap deploy:cold
* executing `deploy:cold'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
Enter passphrase for key '/home/nordicmineral/.ssh/id_rsa':
* executing "if [ -d /home/nordicmineral/nordicmineral/shared/cached-copy ]; then cd /home/nordicmineral/nordicmineral/shared/cached-copy && git fetch -q origin && git reset -q --hard 910d2dea4806cc2f7135c8893f0d5caf0c39c62a; else git clone -q git@nordicmineral.unfuddle.com:nordicmineral/nordicmineral-git.git /home/nordicmineral/nordicmineral/shared/cached-copy && cd /home/nordicmineral/nordicmineral/shared/cached-copy && git checkout -q -b deploy 910d2dea4806cc2f7135c8893f0d5caf0c39c62a; fi"
servers: ["nordicmineral.com"]
Password:
[00:05:55] [nordicmineral@gambino copythis]$ rake db:create
(in /mnt/local/home/nordicmineral/copythis)
rake aborted!
Dependencies is not a module
(See full trace by running task with --trace)
[00:06:06] [nordicmineral@gambino copythis]$ rake db:create --trace
(in /mnt/local/home/nordicmineral/copythis)
** Invoke db:create (first_time)
** Invoke environment (first_time)
wlan0 Link encap:Ethernet HWaddr 00:1E:58:9B:A9:71
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
checking for XCBPROTO... configure: error: Package requirements (xcb-proto >= 1.1) were not met:
Requested 'xcb-proto >= 1.1' but version of XCB Proto is 1.0
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables XCBPROTO_CFLAGS
and XCBPROTO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
gobo@GoboHenrik /Users/henrik]Compile Nvidia
Compile: Locating a recipe for Nvidia ...
Compile: Found recipe for Nvidia
GetRecipe: Trying to get /Files/Compile/Recipes/Nvidia/173.14.09_bin-r1
Compile: Recipe placed in /Files/Compile/Recipes/Nvidia/173.14.09_bin-r1
Compile: Checking dependencies...
Compile: Compiling Nvidia version 173.14.09_bin, revision r1.
--15:30:46-- http://us.download.nvidia.com/XFree86/Linux-x86/173.14.09/NVIDIA-Linux-x86-173.14.09-pkg1.run
=> `NVIDIA-Linux-x86-173.14.09-pkg1.run'
Resolving us.download.nvidia.com... 194.19.40.89, 194.19.40.86
__module_name__ = "autojoin"
__module_version__ = "1.0"
__module_description__ = "Auto-rejoiner for non-cluenet servers."
import xchat
joinhook = None
def rejoin_cb(userdata):
xchat.command("j %s" % userdata)
@sarahhodne
sarahhodne / cluenet_ssh_application
Created September 29, 2008 06:56
ClueNet SSH Application
Short Answers:
1) Which Cluenet servers do you plan on using primarily?
Pythagoras, Delta and maybe Fractal.
2) What kind of system and network resources will you need?
Python and IRC access to run two bots (1 wikipedia bot, then later an irc bot)
3) If you could describe yourself in 3 words, what would those 3 words be?
dvyjones@delta:~/Twisted-8.1.0$ python setup.py install --home=~/twisted
running install
running build
running build_py
running build_ext
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c conftest.c -o conftest.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c conftest.c -o conftest.o
building 'twisted.runner.portmap' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c twisted/runner/portmap.c -o build/temp.linux-i686-2.4/twisted/runner/portmap.o
twisted/runner/portmap.c:10:20: error: Python.h: No such file or directory
def ai(self, a):
if len(a) > 3 and a[3:]:
msg = a[3:].join(' ')
if msg[:len(self.name)-1] == self.name:
self.msg(a[0], "Hmm?")
def load(bot):
bot.addEvent('ai')