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
#!/bin/bash | |
_ANSIBLE_BIN=`which ansible-playbook` | |
_INVENTORY_FILE="./inventory" | |
_PLAYBOOK_FILE="bash_update.yml" | |
############################### | |
# pre-check for your environment variable. | |
############################### | |
if [ -z ${_ANSIBLE_BIN} ];then |
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
echo NotImplementedYet > {{DATETIME}}.log |
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
latex_elements = { | |
'pointsize': '10pt', | |
'papersize': 'a4paper', | |
'transition': '', | |
'extraclassoptions': ',openany,oneside', | |
'classoptions': ',dvipdfmx', | |
'babel': '\\usepackage[japanese]{babel}', | |
} | |
latex_docclass = {'manual': 'jreport'} |
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
UserParameter=intstat[*],/etc/zabbix/scripts/intstat.sh $1 $2 |
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
from distutils.core import setup | |
setup(name='tcptuneinfo', | |
version='0.1', | |
description='', | |
author='Kazushige TAKEUCHI', | |
url='http://d.hatena.ne.jp/graceful_life/', | |
requires=[ | |
"netaddr", | |
], |
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
#!/bin/bash -x | |
# ----- user variable definition ----- | |
inventory="inventories/development" | |
playbook="./playbook.yml" | |
exc_direct=1 | |
flg_step=1 |
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
--- | |
- hosts: webservers | |
user: miyabi | |
sudo: True | |
tasks: | |
- name: backupdate | |
command: date +"%Y%m%d%H%M%S" | |
register: execdate | |
- name: list /var/log/ | |
command: find /var/log/ -type f |
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
# python 2.7.3 | |
char_array = [ | |
['.','@','-','_','/',':','~','1'], | |
['a','b','c','A','B','C','2'], | |
['d','e','f','D','E','F','3'], | |
['g','h','i','G','H','I','4'], | |
['j','k','l','J','K','L','5'], | |
['m','n','o','M','N','O','6'], | |
['p','q','r','s','P','Q','R','S','7'], |
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
debug.exception-trace = 1 | |
dev.cdrom.autoclose = 1 | |
dev.cdrom.autoeject = 0 | |
dev.cdrom.check_media = 0 | |
dev.cdrom.debug = 0 | |
dev.cdrom.info = CD-ROM information, Id: cdrom.c 3.20 2003/12/17 | |
dev.cdrom.info = | |
dev.cdrom.info = drive name: | |
dev.cdrom.info = drive speed: | |
dev.cdrom.info = drive # of slots: |
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
find * | grep .mbbps|xargs open |