Skip to content

Instantly share code, notes, and snippets.

View xtha's full-sized avatar
💭
k8s,openstack

zsh xtha

💭
k8s,openstack
  • China
  • 22:56 (UTC +08:00)
View GitHub Profile
@xtha
xtha / docker-compose.yml
Created February 27, 2019 02:05 — forked from staaldraad/docker-compose.yml
A docker-compose yml to use with Doorman and osquery
version: '2'
services:
doorman:
image: doorman
container_name: "doorman"
build:
context: ./doorman
dockerfile: Dockerfile_doorman
links:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
try:
from pyghmi.ipmi import command, fru, sdr, bmc
except ImportError:
command = None
ipmi_cmd = command.Command(
@xtha
xtha / clouds.yaml
Created February 1, 2019 09:15
openstack clouds.yaml
clouds:
sinochem:
region_name: "yzct"
auth:
auth_url: http://ostack05.yzct.sinochem.cloud:5000/v3
project_id: 8c06efa4eca146e3a61ad35898f9728c
project_name: "admin"
password: "SinochemAdmin"
username: "admin"
user_domain_name: "Default"
@xtha
xtha / ipmi_facts.py
Created February 1, 2019 09:15
ansible library
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
ipmi lan print:
IP Address Source : Static Address
IP Address : 10.144.128.215
Subnet Mask : 255.255.255.0
MAC Address : 6c:92:bf:32:e2:43
SNMP Community String : Inspur
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
@xtha
xtha / mount.md
Last active January 30, 2019 08:37

mount samba with auth

mount -t cifs -o user=zhanghu05,pass=P@ssw0rdzhang,domain=sinochem-tech //10.144.129.251/tools /media/

priority

0: emerg 1: alert 2: crit 3: err 4: warning 5: notice 6: info 7: debug

dmesg -L --ctime -d --kernel

@xtha
xtha / find
Created January 25, 2019 09:39
find /etc/ -maxdepth 1 -type l
@xtha
xtha / rpm
Last active January 25, 2019 09:39
rpm -q --qf '%{version}\n' salt-ssh