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
from django.core.exceptions import PermissionDenied | |
from django.utils.translation import ugettext as _ | |
from django.views.generic import TemplateView | |
from braces.views import JSONResponseMixin, LoginRequiredMixin | |
class JSONLoginRequiredMixin(LoginRequiredMixin, JSONResponseMixin): | |
""" |
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
alias sww="iterm_bg_color 30 0 0; ssh web-production; iterm_bg_color 0 0 0" | |
alias swt="iterm_bg_color 0 20 20; ssh web-test; iterm_bg_color 0 0 0" | |
function iterm_bg_color() { | |
local tty=$(tty) | |
osascript -e " | |
tell application \"iTerm\" | |
repeat with theTerminal in terminals | |
tell theTerminal | |
try |
NewerOlder