As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
Fixing the postgresql initdb fatal shared memory error on Leopard | |
Published Tue 18 December 2007 11:09 (+1300) | |
Tagged | |
software (43 posts and 3 photos) | |
mac os x (6 posts) | |
When doing the post-install setup of postgresql default database using initdb, you may hit this error: | |
FATAL: could not create shared memory segment: Cannot allocate memory | |
DETAIL: Failed system call was shmget(key=1, size=1646592, 03600). |
%===================================================================== | |
% jhwhw.cls | |
% Provide jhwhw.cls class | |
%===================================================================== | |
%===================================================================== | |
% Identification | |
%===================================================================== | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class] |
#!/usr/bin/env ruby | |
require 'spreadsheet' | |
# Begin Test | |
print "Spreadsheet Test\n" | |
# Create the rows to be inserted | |
row_1 = ['A1', 'B1'] | |
row_2 = ['A2', 'B2'] |
plugin | |
naming convention: name_of_plugin.vim | |
these files are sourced for all file types | |
doc | |
naming convention: name_of_plugin.txt | |
these files document the functionality of a plugin | |
color | |
naming convention: name_of_colorscheme.vim |
"abaixo", "aca", "acaso", | |
"acerca", "acima", "acola", "acula", "ademais", "adentro", | |
"adiante", "afinal", "afora", "agora", "agorinha", "ah", "ainda", | |
"alem", "algo", "alguem", "algum", "alguma", "algumas", "alguns", | |
"ali", "alias", "alo", "ambos", "amiude", "ante", "antes", "ao", | |
"aonde", "aos", "apenas", "apesar", "apos", "apud", "aquela", | |
"aquelas", "aquele", "aqueles", "aqui", "aquilo", "as", "assim", | |
"ate", "atras", "atraves", "basicamente", "bastante", "bastantes", | |
"bem", "bis", "bom", "ca", "cada", "cade", "caso", "certa", | |
"certamente", "certas", "certeiramente", "certo", "certos", "chez", |
module Jekyll | |
class MathJaxBlockTag < Liquid::Tag | |
def render(context) | |
'<script type="math/tex; mode=display">' | |
end | |
end | |
class MathJaxInlineTag < Liquid::Tag | |
def render(context) | |
'<script type="math/tex">' | |
end |
#!/usr/bin/python | |
# From http://stackoverflow.com/questions/352098/how-to-pretty-print-json-script | |
# To install paste this into a file named prettyjson that lives in your PATH | |
# e.g. | |
# sudo touch /usr/bin/prettyjson | |
# sudo open -t /usr/bin/prettyjson | |
# paste this file and save | |
# sudo chmod +x /usr/bin/prettyjson | |
""" |
module Jekyll | |
# Compiled LESS CSS into CSS. You must specify an empty YAML front matter | |
# at the beginning of the file. | |
# .less -> .css | |
class LessConverter < Converter | |
safe true | |
priority :low | |
pygments_prefix "\n" | |
pygments_suffix "\n" |
set :application, 'foo' | |
set :repository, '_site' | |
set :scm, :none | |
set :deploy_via, :copy | |
set :copy_compression, :gzip | |
set :use_sudo, false | |
set :host, '127.0.0.1' | |
role :web, host | |
role :app, host |