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
" Settings | |
let barposition = "bottom" | |
set noautofocus | |
let searchengine instapaper = "https://www.instapaper.com/search?q=%s" | |
let searchengine pinboard = "https://www.pinboard.in/search/u:ironfish?query=%s" | |
let completionengines = ["google", "amazon", "instapaper", "pinboard"] |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
from django.conf import settings | |
from django_mysql.models import fields | |
from rest_framework.compat import is_authenticated | |
from rest_framework.filters import DjangoObjectPermissionsFilter | |
from rest_framework.metadata import SimpleMetadata | |
from rest_framework.permissions import DjangoObjectPermissions |
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
class LvsHostSerializer(HyperlinkedModelSerializer): | |
ipaddress = LvsIpaddressSerializer(read_only=True, many=True) | |
class Meta: | |
model = LvsHost | |
fields = '__all__' | |
class LvsClusterSerializer(HyperlinkedModelSerializer): | |
hosts = LvsHostSerializer(many=True) |
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
angular.module('MetronicApp').controller('LvsGroupsController', function($model, $scope, localStorageService, $rootScope, $http, $timeout, runtimeStates, $state) { | |
runtimeStates.addState('lvs', { | |
name: 'lvs', | |
url: '/lvs', | |
data: {pageTitle: 'Lvs中心'}, | |
templateUrl: '/static/views/lvs/main.html', | |
resolve: { | |
deps: ['$ocLazyLoad', function($ocLazyLoad) { | |
return $ocLazyLoad.load({ | |
name: 'MetronicApp', |
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
angular.module('MetronicApp').controller('LvsGroupsController', function($model, $scope, localStorageService, $rootScope, $http, $timeout, runtimeStates, $state) { | |
runtimeStates.addState('lvs', { | |
name: 'lvs', | |
url: '/lvs', | |
data: {pageTitle: 'Lvs中心'}, | |
templateUrl: '/static/views/lvs/main.html', | |
resolve: { | |
deps: ['$ocLazyLoad', function($ocLazyLoad) { | |
return $ocLazyLoad.load({ | |
name: 'MetronicApp', |
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
angular.module('MetronicApp').controller('LvsGroupsController', function($model, $scope, localStorageService, $rootScope, $http, $timeout, runtimeStates, $state) { | |
runtimeStates.addState('lvs', { | |
name: 'lvs', | |
url: '/lvs', | |
data: {pageTitle: 'Lvs中心'}, | |
templateUrl: '/static/views/lvs/main.html', | |
resolve: { | |
deps: ['$ocLazyLoad', function($ocLazyLoad) { | |
return $ocLazyLoad.load({ | |
name: 'MetronicApp', |
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
angular.module('MetronicApp').controller('LvsGroupsController', function($model, $scope, localStorageService, $rootScope, $http, $timeout, runtimeStates, $state) { | |
runtimeStates.addState('lvs', { | |
name: 'lvs', | |
url: '/lvs', | |
data: {pageTitle: 'Lvs中心'}, | |
templateUrl: '/static/views/lvs/main.html', | |
resolve: { | |
deps: ['$ocLazyLoad', function($ocLazyLoad) { | |
return $ocLazyLoad.load({ | |
name: 'MetronicApp', |
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
angular.module('MetronicApp').controller('LvsGroupsController', function($model, $scope, localStorageService, $rootScope, $http, $timeout, runtimeStates, $state) { | |
runtimeStates.addState('lvs', { | |
name: 'lvs', | |
url: '/lvs', | |
data: {pageTitle: 'Lvs中心'}, | |
templateUrl: '/static/views/lvs/main.html', | |
resolve: { | |
deps: ['$ocLazyLoad', function($ocLazyLoad) { | |
return $ocLazyLoad.load({ | |
name: 'MetronicApp', |
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
class JournalMixin(object): | |
def __init__(self, *args, **kwargs): | |
super(JournalMixin, self).__init__(*args, **kwargs) | |
logger.error('__Init__ save journal') | |
old_save = getattr(self, 'save', None) | |
if old_save is not None: | |
def new_save(self, *args, **kwargs): | |
logger.error('new save journal') | |
try: | |
old_save.im_func(self, *args, **kwargs) |
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
#!py | |
import salt.utils | |
import sys | |
def _sub_tail(host, port, filename): | |
import subprocess |