I hereby claim:
- I am jn0 on github.
- I am jno (https://keybase.io/jno) on keybase.
- I have a public key whose fingerprint is 331E 0917 CEE8 9631 3379 4F30 2F8A 511D 4B5A 7166
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Stolen from https://www.akkadia.org/drepper/SHA-crypt.txt for references. | |
Unix crypt using SHA-256 and SHA-512 | |
------------------------------------ | |
Author: Ulrich Drepper <drepper@gmail.com> | |
Version: 0.6 2016-8-31 | |
Only editorial changes since 0.4 |
#!/bin/bash | |
# a tool to extract data from those MS Winsoze "web-archives" arrived as a ".DOC" file... | |
# run as ```splitmime.sh < /tmp/where-it-is.doc``` and check for "./C_/" directory. | |
div='' | |
typeset -i nl=0 | |
typeset -i ol=0 | |
file_header='yes' | |
header='no' |
#!/bin/bash | |
# | |
# This script is supposed to be ran on the TARGET machine as "root" user. | |
# | |
# this one was useful: https://gist.github.com/sebastianwebber/5f7dd76d0b7eabb1d388fbfdcbafebda | |
# | |
# NB: It will DROP the existing database and create a fresh one! | |
# NB: It will losen access restrictions to dumb passwords, etc. | |
# |
#!/usr/bin/python | |
''' | |
Make use of backend's CSS (it's a "bootstrap" deep in its heart). | |
Note: any inline "style" elements are filtered out! | |
JFYI: | |
.p-a-0 { padding:0 } | |
Usage: | |
0. Put this script to, say, /etc/zabbix/oss-status.py |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- vim: et ts=4 sw=4 | |
''' | |
A tool to replace netstat(8) that has RIP in CentOS and alikes. | |
Yes, ss(8) should be there. | |
''' | |
# /proc/net/udp | |
# sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode ref pointer drops | |
# 120: 0100007F:0143 00000000:0000 07 00000000:00000000 00:00000000 00000000 997 0 15319 2 ffff8800f1d80000 0 | |
# /proc/net/tcp |
#!/bin/bash | |
# Which Hypervisor | |
verbose=no | |
exe="$0" | |
say() { echo "$@" >&2; } | |
verb_say() { [ "$verbose" = 'yes' ] && say "$@"; } |
It was intended to parse /var/lib/iscsi/nodes/$TARGET/$PORTAL/default
files
of iSCSI initiator node (where one have ran iscsiadm
command). The path is
for CentOS 7 based machines -- your mileage may vary.
#
comment ] \n
.SUFFIXES: # Delete the default suffixes | |
.SUFFIXES: .c .o .py .so | |
.py.c: | |
cython -2 $< | |
.c.o: | |
gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 \ | |
-Wall -Wstrict-prototypes -Wstrict-aliasing \ | |
-fPIC -I/usr/include/python2.7/ -c $< -o $@ |