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
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
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
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
set bell-action none | |
set-option -g status-left "" | |
set-option -g status-right "#S" | |
set -g status-bg black | |
set -g status-fg white | |
set utf8-default on |
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
#!/bin/sh | |
# First, open up GitX | |
cd ~/Code/Python/django-haystack; gitx | |
tmux start-server | |
tmux new-session -d -s Haystack -n git | |
tmux new-window -tHaystack:1 -n test | |
tmux new-window -tHaystack:2 -n solr | |
tmux new-window -tHaystack:3 -n docs | |
tmux new-window -tHaystack:4 -n runserver |
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
============================================================= | |
Installing Multicore Solr 1.3.0 / Tomcat 6.0.X on Ubuntu 8.10 | |
============================================================= | |
Install OpenJDK (comes from universe):: | |
aptitude install openjdk-6-jre | |
Download Tomcat 6.X and move it in place:: |
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
brew install git | |
brew update | |
brew install readline | |
brew link readline | |
brew install python | |
brew install postgres | |
brew install tmux | |
brew install pip | |
brew install nginx | |
brew install libevent |
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
I needed to find info on a sequence that was causing problems with one of our apps, and couldn't find any info online. Here's what I ended up doing. | |
\d <sequence> wasn't telling me anything except that it did exist. I couldn't find out what was using it in order to determine if it was safe to eliminate. | |
select oid from pg_class where relname='<sequence>'; # retrieves the internal ID in PostgreSQL | |
select refobjid from pg_depend where objid = <found_oid>; # retrieve depenencies for the sequence in question. | |
select relname from pg_class where oid in (<ref_oid1>, # ... if others); # get the names that are linking to it | |
\d <found_tables> for each item found above - see if there's any mention of the index blowing up. | |
OR, after figuring this out, I kept working. Here's one query to rule them all: |
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
i | |
me | |
my | |
myself | |
we | |
our | |
ours | |
ourselves | |
you | |
your |
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
""" | |
jQuery templates use constructs like: | |
{{if condition}} print something{{/if}} | |
This, of course, completely screws up Django templates, | |
because Django thinks {{ and }} mean something. | |
Wrap {% verbatim %} and {% endverbatim %} around those | |
blocks of jQuery templates and this will try its best |
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
// call this when we're done. | |
var done = function(err, result) { | |
console.log(result); | |
}; | |
var EXPENSIVE_OPERATION_ON = function(data, callback) { | |
callback(/*error, data, etc*/); | |
}; |
OlderNewer