Skip to content

Instantly share code, notes, and snippets.

View zellyn's full-sized avatar

Zellyn Hunter zellyn

View GitHub Profile
bash-3.2$ django-admin.py validate --settings=settings.com.ajc.projects.local
Traceback (most recent call last):
File "/Users/zhunter/Code/inpath/base/django/bin/django-admin.py", line 5, in ?
management.execute_from_command_line()
File "/Users/zhunter/Code/inpath/base/django/core/management/__init__.py", line 331, in execute_from_command_line
utility.execute()
File "/Users/zhunter/Code/inpath/base/django/core/management/__init__.py", line 295, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/zhunter/Code/inpath/base/django/core/management/__init__.py", line 244, in fetch_command
app_name = get_commands()[subcommand]
MODES
Modes may be absolute or symbolic. An absolute mode is an octal number constructed from the sum of one
or more of the following values:
4000 (the set-user-ID-on-execution bit) Executable files with this bit set will run with
effective uid set to the uid of the file owner. Directories with the set-user-id bit set
will force all files and sub-directories created in them to be owned by the directory
owner and not by the uid of the creating process, if the underlying file system supports
this feature: see chmod(2) and the suiddir option to mount(8).
2000 (the set-group-ID-on-execution bit) Executable files with this bit set will run with
The next three fields are three characters each: owner permissions, group permissions, and other per-
missions. Each field has three character positions:
1. If r, the file is readable; if -, it is not readable.
2. If w, the file is writable; if -, it is not writable.
3. The first of the following that applies:
S If in the owner permissions, the file is not executable and set-user-ID mode is
@zellyn
zellyn / new
Created February 25, 2009 20:24
Hi Zellyn,
I hope you're well. I'm sitting here with Laura Williams and we're trying
to finalize the Peachtree t-shirt voting and contest process. If we built a
story level page with the t-shirts/photo polls, can we block/stop folks
from e-mailing it or voting without first going through the registration
process? In other words, can we place the voting within one of the
registration/UR environment? If you can, please call us, we're sitting here
at my desk at 404-526-7614.
(setenv "DJANGO_SETTINGS_MODULE" "settings.com.ajc.projects.local")
(setenv "PATH" (shell-command-to-string "source .profile ; echo -n $PATH"))
(setenv "PYTHONPATH" (shell-command-to-string "source .profile ; echo -n $PYTHONPATH"))
./releases
./releases/dev
./releases/dev/apps
./releases/dev/apps/adminlog
./releases/dev/apps/adminlog/__init__.py
./releases/dev/apps/adminlog/models.py
./releases/dev/apps/adminlog/templates
./releases/dev/apps/adminlog/templates/adminlog
./releases/dev/apps/adminlog/templates/adminlog/logentry_list.html
./releases/dev/apps/adminlog/urls.py
@zellyn
zellyn / #odg
Created September 21, 2009 18:43
Most requested pages.
curl http://peer1-python1.ajc.com/servstats| grep nowrap | sed -e 's|.*<td nowrap>\(.*\)</td>.*|\1|' | sed -e 's/&amp;/\&/g' | sort | uniq -c | sort -rn | head -15
@zellyn
zellyn / .profile
Created October 30, 2009 17:22
.profile - macbook pro
export DJANGO_SETTINGS_MODULE=conf.com.ajc.projects.local
export PYTHONPATH=$PYTHONPATH:~/Code/django_11:~/Code/svn/odgdjango/trunk/lib
export CDPATH=".:~/Code"
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:$PATH"
export PATH="$PATH:/Users/zhunter/Code/django_11/django/bin:/Users/zhunter/bin"
#export DISPLAY=:0.0
export REPO="svn+ssh://fcp-intradevweb/repos"
export LC_CTYPE=en_US.UTF-8
from helpers import override_settings
KONG_DEFAULT_SERVERNAME = 'ljworld.com'
KONG_DEFAULT_PYTHONPATH = '/home/code'
override_settings(globals())
@zellyn
zellyn / *shell*
Created November 28, 2009 21:56
node.js build error
bash-3.2$ make
make
Waf: Entering directory `/Users/zhunter/Code/git/node/build'
[ 8/22] libv8.a: deps/v8/SConstruct -> build/default/libv8.a
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
JS2C(["obj/release/libraries.cc", "obj/release/libraries-empty.cc"], ["src/runtime.js", "src/v8natives.js", "src/array.js", "src/string.js", "src/uri.js", "src/math.js", "src/messages.js", "src/apinatives.js", "src/debug-delay.js", "src/mirror-delay.js", "src/date-delay.js", "src/regexp-delay.js", "src/json-delay.js", "src/macros.py"])
scons: *** [obj/release/libraries.cc] AttributeError : 'module' object has no attribute 'JavaScriptMinifier'