Skip to content

Instantly share code, notes, and snippets.

class _const:
class ConstError(TypeError):
pass
class ConstCaseError(ConstError):
pass
def __setattr__(self, name, value):
if self.__dict__.has_key(name):
raise self.ConstError, "Can't change const.%s" % name
#!/bin/bash
#######################################################
# $Name: shell_template.sh
# $Version: v1.0
# $Function: BTemplate Script
# $Author: z
# $Create Date: 2016-08-27
# $Description:
#######################################################
allow booting;
allow bootp;
ddns-update-style none;
ping-check true;
ping-timeout 3;
default-lease-time 120;
max-lease-time 600;
authoritative;
next-server ironic.inspur.local;
filename "pxelinux.0";
@devops
devops / pip.conf
Created December 2, 2016 06:12
local pip.conf
vim ~/.pip/pip.conf
--------------- pip.conf-----------------------------------------------
[global]
index-url = http://local_ip/pypi/simple