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
local formatter = require('formatter') | |
formatter.setup({ | |
filetype = { | |
lua = { | |
-- luafmt | |
function() | |
return { | |
exe = 'stylua', | |
args = { | |
'--column-width', |
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
--- | |
# influxdb 配置文件 | |
Version: v1 | |
kind: ConfigMap | |
metadata: | |
name: v1-influxdb | |
labels: | |
app: v1-influxdb | |
chart: "influxdb-0.4.2" | |
release: "v1" |
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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: mysql-data | |
namespace: dev-ea | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
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
W0302 01:46:22.865416 1 vsphere.go:356] Creating new client session since the existing session is not valid or not authenticated | |
I0302 01:48:56.253726 1 reconciler.go:213] Started AttachVolume for volume "kubernetes.io/vsphere-volume/[wcdc_nonprod_awl_02_42_3010] kubevols/kubernetes-dynamic-pvc-0a10e2be-feea-11e6-a1a3-0050569c42d2.vmdk" to node "k8s-02n.dev.mynodes.com" | |
I0302 01:48:58.658099 1 operation_executor.go:620] AttachVolume.Attach succeeded for volume "kubernetes.io/vsphere-volume/[wcdc_nonprod_awl_02_42_3010] kubevols/kubernetes-dynamic-pvc-0a10e2be-feea-11e6-a1a3-0050569c42d2.vmdk" (spec.Name: "pvc-0a10e2be-feea-11e6-a1a3-0050569c42d2") from node "k8s-02n.dev.mynodes.com". | |
I0302 01:52:38.694350 1 replication_controller.go:322] Observed updated replication controller community. Desired pod count change: 3->3 | |
I0302 01:52:38.694398 1 replication_controller.go:322] Observed updated replication controller postgres. Desired pod count change: 1->1 | |
I0302 01:52:38.694413 |
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
mount | |
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel) | |
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) | |
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=4073584k,nr_inodes=1018396,mode=755) | |
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) | |
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel) | |
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000) | |
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755) | |
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,seclabel,mode=755) | |
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd) |
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
#SERVICE_NAME: vspherewebclientsvc | |
#DISPLAY_NAME: VMware vSphere Web Client | |
#SERVICE_NAME: vCOConfiguration | |
#DISPLAY_NAME: VMware vCenter Orchestrator Configuration | |
#SERVICE_NAME: vctomcat | |
#DISPLAY_NAME: VMware VirtualCenter Management Webservices | |
#SERVICE_NAME: vimPBSM | |
#DISPLAY_NAME: VMware vSphere Profile-Driven Storage Service | |
#SERVICE_NAME: vimQueryService | |
#DISPLAY_NAME: VMware vCenter Inventory Service |
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
# pagination.py | |
class Paginator(object): | |
def __init__(self, query, per_page): | |
"""Initialize a paginator. | |
Arguments: | |
- query -- queryset from pymongo or mongoengine | |
- per_page -- number of items per page |
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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
""" | |
Use it by setting CACHE_BACKEND in settings.py, e.g.: | |
CACHE_BACKEND = 'utils.backends.cache.pylibmcd://127.0.0.1:11211/' | |
NEW: can be transmit pylibmc cache behaviors to cache backend | |
for example: |