I hereby claim:
- I am bglopez on github.
- I am bglopez (https://keybase.io/bglopez) on keybase.
- I have a public key ASAZhnuiMtdwkl5q1WPNnWplVzSXP-M587KzrYmnQp-X1wo
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| import json | |
| from urllib.parse import quote, quote_plus | |
| import sys | |
| import os | |
| import argparse | |
| parser = argparse.ArgumentParser( |
| top:; @date | |
| log := find /space/log -name '*.log' | |
| base := cut -d/ -f4- | |
| apache-links := sed -e 's;\(.*\)/\(.*\);ln -f /space/log/\1/\2 /space/log2/\1_\2;' | |
| php-links := sed -e 's;\(.*\)/php/\(.*\);ln -f /space/log/\1/\2 /space/log2/\1_php_\2;' | |
| apache := $(log) | grep -v /php/ | $(base) | $(apache-links) | |
| php := $(log) | grep /php/ | $(base) | $(php-links) |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| set -x | |
| # Ubuntu: apt update && apt install build-essential curl libncurses5-dev -y | |
| # Mac: brew update && brew install curl gcc ncurses make | |
| if ! command -v curl gcc make &> /dev/null; then | |
| echo "require: build-essential curl libncurses5-dev" >&2 |
| __author__ = "Todd Lewellen" | |
| """ | |
| The MIT License (MIT) | |
| Copyright (c) 2014 Todd Lewellen | |
| 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 |
| # Use like: python setx.py my_python_program [args...] | |
| # | |
| # my_python_program can be a literal path to a file (e.g., foo.py), or the unqualified | |
| # name of a Python program in PATH. In the latter case, setx.py examines PATH for | |
| # a program with that name. | |
| # | |
| # Prints every line executed, including the filename and line number. | |
| # | |
| # This is a hacky prototype for py27; it almost certainly breaks in significant ways on | |
| # non-Unix, or Python3000; and has only been tested on a FreeBSD derivative. It still |
| #!/usr/bin/env bash | |
| # example output | |
| # regex in mywinip can be replaced with the following to snag more private subnets: | |
| # '^.*(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.).*' | |
| # but it *will* catch the 172 address assigned to the VM/as gateway as well | |
| # | |
| # mygw: 172.20.192.1 | |
| # mywinhost: DESKTOP-N2VKDIR | |
| # mywinip: 192.168.0.39 |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env perl -w | |
| ############################################################################## | |
| # File : | |
| # Author : Guillaume-Jean Herbiet <guillaume-jean@herbiet.net> | |
| # | |
| # | |
| # Copyright (c) 2010 Guillaume-Jean Herbiet (http://herbiet.net) | |
| # | |
| # This program is free software: you can redistribute it and/or modify |