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
javascript:(function(){ | |
var s = document.createElement('script'); | |
s.src = 'https://raw.github.com/gist/3680226/d605bdbd77927e426ad3939a20edf22caa517772/fe.js'; | |
document.body.appendChild(s); | |
})(); |
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
function ogTags(nodes, nodeList) { | |
for(idx in nodeList) | |
if(validTag(nodeList[idx])) | |
nodes.push(nodeList[idx]) | |
return nodes | |
} | |
function validTag(node) { | |
var attrs = node.attributes | |
return attrs && attrs.property && attrs.property.value.search(/og:*/) != -1 |
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
app.pages.GenericCanvas = app.pages.Base.extend({ | |
initialize : function(opts){ | |
if(opts) | |
/* use `this` as the destination object, so values | |
can be overridden and defaults can be supplied */ | |
_.extend(this, { | |
pageTitle: opts.title, | |
pageDescription: opts.description, |
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
index = 0 | |
while index < 1216623 do | |
puts index | |
sql = <<-SQL | |
DELETE sv | |
FROM share_visibilities AS sv | |
INNER JOIN posts | |
ON sv.shareable_id = posts.id |
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
rails_env = ENV['RAILS_ENV'] || 'development' | |
# Enable and set these to run the worker as a different user/group | |
#user = 'diaspora' | |
#group = 'diaspora' | |
worker_processes 1 | |
## Load the app before spawning workers | |
#preload_app true |
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 wildmode=full | |
set wildignore+=*/.git/*,*/log/*,*/.hg/*,*/.svn/*,*/.DS_Store,*/public/uploads/* | |
" NERDTree and Control-P remapping | |
map \ :NERDTreeToggle<CR> | |
nmap <Leader>t :CommandT<CR> | |
nmap <Leader>p :CtrlP<CR> | |
nmap <Leader>b :CtrlPBuffer<CR> | |
" Visual Indentation |