Skip to content

Instantly share code, notes, and snippets.

:shipit:

sky-joker sky-joker

:shipit:
Block or report user

Report or block sky-joker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sky-joker
sky-joker / awx_6.0.0_to_6.1.0.diff
Created Jul 22, 2019
diff of awx 6.0.0 to 6.1.0
View awx_6.0.0_to_6.1.0.diff
diff --git a/awx/ui/package.json b/awx/ui/package.json
index 5a1bbb8..54df8ad 100644
--- a/awx/ui/package.json
+++ b/awx/ui/package.json
@@ -44,7 +44,7 @@
"babel-loader": "^7.1.2",
"babel-plugin-istanbul": "^4.1.5",
"babel-preset-env": "^1.6.0",
- "chromedriver": "^2.35.0",
+ "chromedriver": "^2.42.1",
@sky-joker
sky-joker / awx_4.0.0_to_6.0.0.diff
Created Jul 2, 2019
diff of awx 4.0.0 to 6.0.0
View awx_4.0.0_to_6.0.0.diff
diff --git a/awx/ui/package.json b/awx/ui/package.json
index 5a1bbb8..54df8ad 100644
--- a/awx/ui/package.json
+++ b/awx/ui/package.json
@@ -44,7 +44,7 @@
"babel-loader": "^7.1.2",
"babel-plugin-istanbul": "^4.1.5",
"babel-preset-env": "^1.6.0",
- "chromedriver": "^2.35.0",
+ "chromedriver": "^2.42.1",
@sky-joker
sky-joker / zabbix_servers_compose.yml
Created Jun 24, 2019
zabbix server3.0から4.2のコンテナを起動するPlaybook
View zabbix_servers_compose.yml
---
- name: zabbix container servers playbook
hosts: localhost
gather_facts: no
vars:
state: present
#state: absent
tasks:
- name: zabbix container servers operation.
docker_compose:
@sky-joker
sky-joker / docker-compose.yml
Last active May 15, 2019
Zabbix 3.4から4.2のdocker-composeファイルとlocale設定スクリプトと起動確認Playbook
View docker-compose.yml
---
version: '3.7'
networks:
zabbix-nw:
name: zabbix-nw
ipam:
driver: default
config:
- subnet: "192.168.100.0/24"
services:
@sky-joker
sky-joker / diff.patch
Last active May 12, 2019
AWX(Ansible Tower)のARM64でイメージを作り直した時の差分
View diff.patch
diff --git a/Makefile b/Makefile
index 22b3f89..1342f2c 100644
--- a/Makefile
+++ b/Makefile
@@ -174,9 +174,9 @@ requirements_ansible_dev:
# Install third-party requirements needed for AWX's environment.
requirements_awx: virtualenv_awx
if [[ "$(PIP_OPTIONS)" == *"--no-index"* ]]; then \
- cat requirements/requirements.txt requirements/requirements_local.txt | $(VENV_BASE)/awx/bin/pip install $(PIP_OPTIONS) --ignore-installed -r /dev/stdin ; \
+ cat requirements/requirements.txt requirements/requirements_local.txt | $(VENV_BASE)/awx/bin/pip install $(PIP_OPTIONS) -r /dev/stdin ; \
@sky-joker
sky-joker / clone_vm.yml
Last active Mar 22, 2019
ESXi single clone vm sample playbook(ref: http://ur2.link/vIFg)
View clone_vm.yml
---
- name: ESXi single clone vm demo
hosts: all
gather_facts: no
vars:
vm_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
(snip)
tasks:
- name: Get datastore infomation
View example.cib.xml
<cib crm_feature_set="3.0.14" validate-with="pacemaker-2.10" epoch="13" num_updates="0" admin_epoch="0" cib-last-written="Sat Dec 8 23:22:16 2018" update-origin="drbd0" update-client="cibadmin" update-user="root" have-quorum="1">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-have-watchdog" name="have-watchdog" value="false"/>
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.19-8.el7_6.1-c3c624ea3d"/>
<nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="corosync"/>
<nvpair id="cib-bootstrap-options-cluster-name" name="cluster-name" value="nfs_cluster"/>
<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
</cluster_property_set>
@sky-joker
sky-joker / Dokerfile
Created Nov 11, 2018
asciinemaのコンテナをビルドするDokerfile
View Dokerfile
From centos:centos7
RUN localedef -f UTF-8 -i ja_JP ja_JP.UTF-8
ENV LANG="ja_JP.UTF-8" \
LANGUAGE="ja_JP:ja" \
LC_ALL="ja_JP.UTF-8"
RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
RUN yum -y install epel-release
RUN yum -y install python36 && \
curl -L https://bootstrap.pypa.io/get-pip.py | python36 && \
pip3 install asciinema
@sky-joker
sky-joker / zabbix4.0のコンテナ環境手動構築手順メモ.md
Last active Oct 8, 2018
zabbix4.0のコンテナ環境手動構築手順メモ
View zabbix4.0のコンテナ環境手動構築手順メモ.md

こんなZabbix4.0環境をコンテナで作る

baseイメージ作成

[root@localhost common]# docker pull centos:centos7
[root@localhost common]# vi Dockerfile
From centos:centos7
@sky-joker
sky-joker / example.html
Created Sep 4, 2018
Bootstrapのテーブルサンプルにフィルタリングを実装したメモ ref: https://bootsnipp.com/snippets/featured/table-panel-with-pagination
View example.html
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<script>
$(document).ready(function(){
$("#myInput").on("keyup", function() {
var value = $(this).val().toLowerCase();
$("#myTable tr").filter(function() {
You can’t perform that action at this time.