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
<?php | |
require_once 'vendor/autoload.php'; | |
use ZabbixApi\ZabbixApi; | |
$url = $argv[1]; | |
$user = $argv[2]; | |
$pass = $argv[3]; | |
$search = $argv[4]; |
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
FROM ubuntu:xenial | |
MAINTAINER akagisho <akagisho@gmail.com> | |
RUN sed -i -e "s|http://archive.ubuntu.com/|http://jp.archive.ubuntu.com/|" /etc/apt/sources.list | |
RUN apt update \ | |
&& apt install -y curl git libfontconfig-dev fonts-takao* supervisor sudo \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* |
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 | |
''' | |
mkdir db | |
echo 'CREATE TABLE cidrs(id INTEGER PRIMARY KEY AUTOINCREMENT, start INTEGER, end INTEGER, data TEXT, created_at INTEGER);' | sqlite3 db/whois.db | |
echo 'CREATE TABLE ass(id INTEGER PRIMARY KEY AUTOINCREMENT, asn INTEGER UNIQUE, data TEXT, created_at INTEGER);' | sqlite3 db/whois.db | |
''' | |
import sys | |
import argparse |
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
bundle init | |
bundle install --path vendor/bundle |
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
[DEFAULT] | |
######################## | |
## General Configuration | |
######################## | |
# Show more verbose log output (sets INFO log level output) | |
verbose = True | |
# Show debugging output in logs (sets DEBUG log level output) | |
debug = True |
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
diff --git designate/backend/impl_nsd4.py designate/backend/impl_nsd4.py | |
index d868264..5e46aca 100644 | |
--- designate/backend/impl_nsd4.py | |
+++ designate/backend/impl_nsd4.py | |
@@ -68,7 +68,7 @@ class NSD4Backend(base.Backend): | |
try: | |
LOG.debug('Executing NSD4 control call: %s on %s' % (command, | |
self.host)) | |
- result = self._command(command) | |
+ result = self._command(command).rstrip() |
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
FROM ubuntu:14.04 | |
MAINTAINER akagisho <akagisho@gmail.com> | |
# https://gist.github.com/yosshy/cc6c479ac5b1a1ac1774 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN mkdir -p /etc/apt /var/run | |
RUN ln -sf /proc/mounts /etc/mtab | |
RUN apt-get update | |
RUN apt-get install --reinstall -y openssh-server python-apt upstart sysvinit-utils |
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 bash | |
set -e | |
[ ! -z $DEBUG ] && set -x | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
if [ $# -ne 4 ]; then | |
echo "Usage: `basename $0` NAME IPADDR NETMASK GATEWAY" 1>&2 | |
exit 1 |
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 bash | |
set -e | |
[ ! -z $DEBUG ] && set -x | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
if [ $# -ne 4 ]; then | |
echo "Usage: `basename $0` NAME IPADDR NETMASK GATEWAY" 1>&2 | |
exit 1 |
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 bash | |
LANG=C | |
LC_ALL=C | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
unalias -a | |
set -e | |
if [ $# -lt 1 ]; then |