This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg -s python-pycurl | |
Package: python-pycurl | |
Status: install ok installed | |
Priority: optional | |
Section: python | |
Installed-Size: 272 | |
Maintainer: Ubuntu Developers <[email protected]> | |
Architecture: amd64 | |
Source: pycurl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/lib/python2.6/ | |
dist-packages/ | |
site-packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# accept traffic to the normal ssh port | |
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT | |
# accept traffic on the port kippo is listening on | |
iptables -A INPUT -i eth0 -p tcp --dport 2222 -j ACCEPT | |
# direct traffic inbound on port 22 to port 2222 | |
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 22 -j REDIRECT --to-port 2222 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest, os, os.path, sys, urllib | |
import tornado.database | |
import tornado.options | |
from tornado.options import options | |
from tornado.testing import AsyncHTTPTestCase | |
# add application root to sys.path | |
APP_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) | |
sys.path.append(os.path.join(APP_ROOT, '..')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest, os, os.path, sys | |
import tornado.database | |
import tornado.options | |
from tornado.options import options | |
APP_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) | |
sys.path.append(os.path.join(APP_ROOT, '..')) | |
# import your model module | |
import your.model as model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4.722: [GC 4.722: [ParNew: 37279K->3249K(38336K), 0.0178476 secs] 39786K->8088K(1044352K), 0.0179000 secs] [Times: user=0.03 sys=0.01, real=0.02 secs] | |
Startup execution failed with error. | |
net.appjet.bodylock.JSRuntimeException: Error: Neither module exists: etherpad.collab.ace.easysync2, etherpad.collab.ace.easysync2.{AttribPool,Changeset} | |
at net.appjet.bodylock.BodyLock$.unwrapExceptionIfNecessary(bodylock.scala:160) | |
at net.appjet.bodylock.InnerExecutable.execute(bodylock.scala:80) | |
at net.appjet.oui.ScopeReuseManager$$anonfun$newRunner$1.apply(servermodel.scala:126) | |
at net.appjet.oui.ScopeReuseManager$$anonfun$newRunner$1.apply(servermodel.scala:122) | |
at net.appjet.oui.NoninheritedDynamicVariable.withValue(dynamicvar.scala:38) | |
at net.appjet.oui.ExecutionContextUtils$.withContext(execution.scala:334) | |
at net.appjet.oui.ScopeReuseManager$.newRunner(servermodel.scala:122) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import twitter | |
twitter_username = 'you' | |
twitter_password = 'your_pass' | |
api = twitter.Api(username=twitter_username, password=twitter_password) | |
[api.DestroyFriendship(user) for user in api.GetFriends()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StaticFileHandler(RequestHandler): | |
"""A simple handler that can serve static content from a directory. | |
To map a path to this handler for a static data directory /var/www, | |
you would add a line to your application like: | |
application = web.Application([ | |
(r"/static/(.*)", web.StaticFileHandler, {"path": "/var/www"}), | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install mysql | |
npm info it worked if it ends with ok | |
npm info using [email protected] | |
npm info using [email protected] | |
npm info fetch http://registry.npmjs.org/mysql/-/mysql-0.9.1.tgz | |
npm info calculating sha1 /var/folders/2w/2wHKL8C9Gvak-rp5FepbE++++TI/-Tmp-/npm-1303316504106/1303316504106-0.5520619999151677/tmp.tgz | |
npm info shasum 4f240429f60343c9e6cb6717feab072f64ca45d2 | |
npm info calculating sha1 /Users/didip/npm/.npm/.cache/mysql/0.9.1/package.tgz | |
npm info shasum 33b887a4a3f5e9f4b34d2d83f7cde523bd67241a | |
npm info preinstall [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node.js:116 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: Cannot find module 'mysql' | |
at Function._resolveFilename (module.js:299:11) | |
at Function._load (module.js:245:25) | |
at require (module.js:327:19) | |
at Object.<anonymous> (/www/choretastic/mysqltest.js:3:12) | |
at Module._compile (module.js:383:26) | |
at Object..js (module.js:389:10) |