This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Freds-MacBook-Pro:html fred$ python3 | |
Python 3.7.2 (default, Dec 27 2018, 07:35:06) | |
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import crypt | |
>>> dir(crypt) | |
['METHOD_BLOWFISH', 'METHOD_CRYPT', 'METHOD_MD5', 'METHOD_SHA256', 'METHOD_SHA512', '_Method', '_SystemRandom', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_crypt', '_namedtuple', '_saltchars', '_sr', '_string', 'crypt', 'methods', 'mksalt'] | |
>>> crypt.METHOD_MD5 | |
<crypt.METHOD_MD5> | |
>>> crypt.crypt.__doc__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LC_ALL=C | |
c="" | |
off=0 | |
IFS='' | |
while read -r -N 1 c ; do | |
if [ ${#c} -lt 1 ]; then | |
# would only print when in the right range |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chronos@localhost /usr/local/fred/b/272c47111ee7fbf9a3cfe0fc90309566 $ brew search nmap | |
nmap | |
Error: Failed to connect to: https://api.github.com/repos/Homebrew/homebrew-python/git/trees/HEAD?recursive=1 | |
SSL_connect returned=1 errno=0 state=error: certificate verify failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ [ x = x--fixpaths ] | |
+ before_extraction | |
+ mkdir -p /usr/local/linuxbrew/.linuxbrew/Cellar/brewstrap/0.1 | |
+ cd /usr/local/linuxbrew/.linuxbrew/Cellar/brewstrap/0.1 | |
+ THIS=/usr/local/fred/b/brewstrap-0.1.sh | |
+ awk /^__TARFILE_FOLLOWS__/ { print NR + 1; exit 0; } /usr/local/fred/b/brewstrap-0.1.sh | |
+ SKIP=154 | |
+ tar -x | |
+ tail -n +154 /usr/local/fred/b/brewstrap-0.1.sh | |
+ after_extraction /usr/local/fred/b/brewstrap-0.1.sh |