I hereby claim:
- I am zanglang on github.
- I am zanglang (https://keybase.io/zanglang) on keybase.
- I have a public key ASB_rAbWuHPhx76QcZPyb84pXxzmF30U7DIUJ3Z9s29c8Ao
To claim this, I am signing this object:
#/bin/sh | |
# number of ticks since boot | |
UPTIME=$(awk '{print $1}' /proc/uptime | xargs printf '%.0f') | |
WARNINGS= | |
FOUND=0 | |
for pid in $(pgrep -f java) | |
do | |
# get elapsed jiffies in seconds for each java process |
#!/usr/bin/env python2 | |
from __future__ import print_function | |
import re | |
CMD_RE = re.compile(r"^- cmd: (.*)") | |
WHEN = re.compile(r"^when: (\d+)") | |
with open("/home/zanglang/.local/share/fish/fish_history") as f: | |
cmd = when = None | |
for line in f: |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
""" | |
Ansible module that takes in a target Java .properties file, and reads it as | |
an Ansible host fact. | |
Example: | |
- read_properties: target=~/dists/cluster/test.properties | |
register: cluster_props | |
@author: Jerry Chong <jchong@netbase.com> |
#!/usr/local/python/bin/python | |
""" | |
Ansible module that takes in a target Java .properties file, and patches in any | |
arbitrary key-value properties specified in a JSON hash format. This module is | |
expected to be used alongside the `properties` Ansible action module. | |
Examples: | |
- properties: | |
dest: ~/dists/cluster/ix/ZookeeperIndexMerger.properties | |
props: |
#!/usr/bin/env python | |
""" | |
Usage: check-nfs-mounts-v2.py | |
Compares NFSv4 mounts defined in /etc/fstab and current mounts on the system | |
""" | |
from __future__ import print_function | |
import re | |
try: |
<TaskerData sr="" dvi="1" tv="4.0b8m"> | |
<Task sr="task14"> | |
<cdate>1341662662718</cdate> | |
<edate>1360894297856</edate> | |
<id>14</id> | |
<nme>Home Mode</nme> | |
<pri>10</pri> | |
<Action sr="act0" ve="3"> | |
<code>11820</code> | |
<Bundle sr="arg0"> |