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
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 |
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
#!/bin/bash | |
####################################################### | |
# $Name: shell_template.sh | |
# $Version: v1.0 | |
# $Function: BTemplate Script | |
# $Author: z | |
# $Create Date: 2016-08-27 | |
# $Description: | |
####################################################### |
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
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"; |
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
vim ~/.pip/pip.conf | |
--------------- pip.conf----------------------------------------------- | |
[global] | |
index-url = http://local_ip/pypi/simple |