This file contains hidden or 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
<command> | | |
while IFS= read -r line ; | |
do | |
echo $line; | |
done |
This file contains hidden or 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
main([]) -> | |
Func = fun(Self, Value) -> | |
io:format("loop : ~p\n", [Value]), | |
Bindings = erl_eval:add_binding('Self', Self, erl_eval:add_binding('Value', Value, erl_eval:new_bindings())), | |
erl_eval:exprs(Self, Bindings) | |
end, | |
{env, [{_, _, _, Abs}]} = erlang:fun_info(Func, env), | |
Expression = {'fun', 1, {clauses, Abs}}, |
This file contains hidden or 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
main([]) -> | |
{ok, Tokens, _} = erl_scan:string("io:format(\"recursive eval: ~p\", [X]), erl_eval:exprs(X, erl_eval:add_binding('X', X, erl_eval:new_bindings()))."), | |
{ok, [Expression]} = erl_parse:parse_exprs(Tokens), | |
erl_eval:exprs(Expression, erl_eval:add_binding('X', Expression, erl_eval:new_bindings())). |
This file contains hidden or 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
#!/usr/bin/python3 | |
import docker | |
from io import BytesIO | |
import os | |
import re | |
import tarfile | |
import time |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"crypto/sha256" | |
"golang.org/x/crypto/pbkdf2" | |
) | |
func main() { | |
str := fmt.Sprintf("%x", pbkdf2.Key([]byte("mypassword"), []byte(""), 4096, 16, sha256.New)) |