Skip to content

Instantly share code, notes, and snippets.

View minektur's full-sized avatar

Fred Clift minektur

View GitHub Profile
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__
#!/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
@minektur
minektur / output
Last active May 18, 2016 17:32
set environment and run installer
+ [ 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