Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

陈杨文 wenerme

🎯
Focusing
Block or report user

Report or block wenerme

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
@wenerme
wenerme / icmp_ping.py
Created Dec 4, 2019 — forked from ageis/icmp_ping.py
Ansible ICMP ping module
View icmp_ping.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2019, Ansible by Red Hat, inc
# (c) 2019 Kevin Gallagher (@ageis) <kevingallagher@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# from https://gist.github.com/ageis/face10be67b26e4519662e19290e06ff
# fix for busybox and macos
@wenerme
wenerme / pre-commit-eslint
Last active Jan 24, 2019 — forked from linhmtran168/pre-commit-eslint
Pre-commit hook to check for Javascript using ESLint
View pre-commit-eslint
#!/bin/sh
# List files
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
fi
# Try find node
You can’t perform that action at this time.