Skip to content

Instantly share code, notes, and snippets.

Avatar
🖖
Focusing

Yiran Zhou zdyxry

🖖
Focusing
View GitHub Profile
@zdyxry
zdyxry / csv2json.py
Created Jul 7, 2018
Convert csv file to nested json file. Reference: https://github.com/chamkank/hone
View csv2json.py
#!/usr/bin/python
# MIT License
# Copyright (c) 2018 CK
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@zdyxry
zdyxry / rpm_check.yml
Created May 22, 2017
Check if some rpm is installed
View rpm_check.yml
#!/usr/bin/env ansible-playbook
---
- name: rpm_check
hosts: test_vm
tasks:
- name: copy the_silver_searcher rpm
copy: src=/opt/the_silver_searcher-0.33.0-1.el7.x86_64.rpm dest=/opt/the_silver_searcher-0.33.0-1.el7.x86_64.rpm
- name: Check if ag.rpm is installed
command: rpm -q the_silver_searcher
You can’t perform that action at this time.