This file contains hidden or 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
| ➜ ~ sudo MAKEFLAGS="-skipinteg" pacman -S qtwebkit | |
| resolving dependencies... | |
| looking for inter-conflicts... | |
| Packages (2): qt4-4.8.4-18 qtwebkit-2.3.1-2 | |
| Total Download Size: 20.38 MiB | |
| Total Installed Size: 114.88 MiB | |
| :: Proceed with installation? [Y/n] |
This file contains hidden or 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
| (require 'google) | |
| (require 'ido) | |
| (require 'rst) | |
| (defun rst-link (prompt-for-text link) | |
| (interactive "P\nsLink: ") | |
| (let ((text (if prompt-for-text (read-string "Text: ") link))) | |
| (if prompt-for-text | |
| (insert (format "`%s <%s>`_" text link)) | |
| (insert (format (if (string-match " " link) "`%s`_" "%s_") link))) |
This file contains hidden or 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
| (add-hook 'org-mode-hook | |
| (lambda () | |
| (org-set-local 'yas/trigger-key [tab]) | |
| (define-key yas/keymap [tab] 'yas/next-field-or-maybe-expand))) | |
| (defun yas/org-very-safe-expand () | |
| (let ((yas/fallback-behavior 'return-nil)) (yas/expand))) | |
| (add-hook 'org-mode-hook | |
| (lambda () |
This file contains hidden or 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_directory: /workspace/project | |
| static_directory: static | |
| default: | |
| postgres_user: postgres | |
| venv_root: /var/env | |
| gunicorn: my-gunicorn | |
| app-servers: | |
| venv: my_venv |
This file contains hidden or 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/env python | |
| import sys | |
| import subprocess | |
| import optparse | |
| import os | |
| from datetime import datetime | |
This file contains hidden or 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
| description "supervisord" | |
| start on runlevel [2345] | |
| stop on runlevel [016] | |
| expect fork | |
| respawn | |
| exec /usr/local/bin/supervisord |
This file contains hidden or 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
| // Automated way to delete unsubscribes in Mailchimp | |
| links = dojo.query('.delete-member'); for (var x=0; x<links.length; x++) { window.open('http://us1.admin.mailchimp.com/lists/members/delete?id='+String(links[x].onclick).match('[0-9]{8,9}')[0], 'pop'+x) } |
This file contains hidden or 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
| def foo(size, default=0, existing=None): | |
| """ | |
| Yield values to a certain size, using an existing value at the same | |
| index or the default value, in that order. | |
| >>> f = foo(1) | |
| >>> f.next() | |
| 0 | |
| >>> f.next() | |
| Traceback (most recent call last): |
This file contains hidden or 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
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
| "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Blueprint test pages</title> | |
| <!-- Framework CSS --> | |
| <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css"> | |
| <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css"> |
This file contains hidden or 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/bash | |
| usage='bootstrap.sh -- Bootstrap a profile installation | |
| Options: | |
| k A key name (Default: "id_dsa") | |
| u User name directory (Default: "user") | |
| o User home directory (Default: "/home/$u") | |
| g Version of git to download (Default: 1.6.4.4) | |
| c Profile clone path |