Skip to content

Instantly share code, notes, and snippets.

010.064.128.019.41750-217.069.142.100.00080: GET /build-imagemaker/?location= HTTP/1.1
Host: hb.bizmrg.com
User-Agent: MinIO (linux; amd64) minio-go/v7.0.24
Authorization: AWS4-HMAC-SHA256 Credential=eAnZoE9XLWrfUcMGjh5Db4/20220310/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=894879dbca2644b02dcb4a8c6d6e3b08
483e67c845092163df1f09c6295311ff
X-Amz-Content-Sha256: e3b0c44298fc1c149
010.064.128.019.36832-217.069.142.100.00080: PUT /build-api/?notification= HTTP/1.1
Host: hb.bizmrg.com
User-Agent: MinIO (linux; amd64) minio-go/v7.0.24
Content-Length: 296
Authorization: AWS4-HMAC-SHA256 Credential=eAnZoE9XLWrfUcMGjh5Db4/20220310/us-east-1/s3/aws4_request, SignedHeaders=content-md5;host;x-amz-content-sha256;x-amz-date, Signature=5d18d4ff57a9a7dafb57
80c4c9dc58c9df73e3846109af83076eaf96de209407
Content-Md5: XtlrdHDtMRmypPSA8gq/cg==
X-Amz-Content-Sha256: 5d0f7474c5739467e1b2787ab4cce21fbd7dc657c2ef4a31b0bcccb3e5fea5d7
X-Amz-Date: 20220310T115203Z
cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu xenial main universe
deb http://archive.ubuntu.com/ubuntu xenial-updates main universe
deb http://archive.ubuntu.com/ubuntu xenial-security main universe
2017-07-17 08:45:17.710372747 +0400 MSK [TUNNEL 8ff1a98cebc8089f96f9bf11ff0bdf9d/95.215.87.162:48570]: session "d163f889e688e41baa5754de", dtun sent, serial=302506
2017-07-17 08:45:17.713939960 +0400 MSK [NDSS d163f889e688e41baa5754de -> a350aad9e4c29885f9a87844]: SEND clientSerial=0, serialOut=29
2017-07-17 08:45:17.806891159 +0400 MSK [CPE a350aad9e4c29885f9a87844]: ANSWER serial=29
2017-07-17 08:45:18.209381420 +0400 MSK [TUNNEL 8ff1a98cebc8089f96f9bf11ff0bdf9d/95.215.87.162:48570]: cpe connected, 413.160332ms/43.581µs/499.206743ms
2017-07-17 08:45:20.096365939 +0400 MSK [TUNNEL 3671fa1dfaf254d0eb162f517e188b78/95.215.87.162:48572]: session "810d15d085e3b9d01999e68a", dtun sent, serial=322120
2017-07-17 08:45:20.147149209 +0400 MSK [NDSS 810d15d085e3b9d01999e68a -> a350aad9e4c29885f9a87844]: SEND clientSerial=0, serialOut=30
2017-07-17 08:45:20.239869652 +0400 MSK [CPE a350aad9e4c29885f9a87844]: ANSWER serial=30
2017-07-17 08:45:20.643481843 +0400 MSK [TUNNEL 3671fa1dfaf254d0eb162f517e188b78/95
#!/usr/bin/env escript
-mode(compile).
%%
main([]) -> parse();
main(["help"]) -> usage();
main(["--help"]) -> usage();
main(["-h"]) -> usage();
main([Profile|Rest]) -> parse(Profile, Rest);
@tdx
tdx / gist:1188117
Created September 2, 2011 07:48
gen_smtp application
gen_smtp_server.erl:121: The specification for gen_smtp_server:init/1 states that the function might also return {'ok',{'state','undefined' | [{'listener','undefined' | [any()],'undefined' | port(),[tuple()],_,[tuple()]}],atom(),[pid()]}} but the inferred return is {'stop',_}
gen_smtp_server.erl:130: Fun application with arguments (Configurations::nonempty_maybe_improper_list()) will never return since it differs in the 1st argument from the success typing arguments: ([])
mimemail.erl:409: Call to missing or unexported function iconv:conv_chunked/2
@tdx
tdx / 90_req_bug_2
Created July 12, 2011 04:23
Diff for get_reltool_release_info (pull request 90)
%% Get release name and version from a reltool.config
-get_reltool_release_info(ReltoolFile) ->
- %% expect sys to be the first proplist in reltool.config
- case file:consult(ReltoolFile) of
- {ok, [{sys, Config}| _]} ->
- %% expect the first rel in the proplist to be the one you want
- {rel, Name, Ver, _} = proplists:lookup(rel, Config),
- {Name, Ver};
- _ ->
- ?ABORT("Failed to parse ~s~n", [ReltoolFile])
@tdx
tdx / 90_req_bug
Created July 11, 2011 05:31
#90 pull request bug
diff --git a/src/rebar_appups.erl b/src/rebar_appups.erl
index acd4aa4..1173748 100644
--- a/src/rebar_appups.erl
+++ b/src/rebar_appups.erl
@@ -47,7 +47,7 @@
rebar_rel_utils:get_previous_release_path()]),
%% Get the new and old release name and versions
- {Name, _Ver} = rebar_rel_utils:get_reltool_release_info(ReltoolFile),
+ {Name, _Ver} = rebar_rel_utils:get_reltool_release_info(ReltoolConfig),
@tdx
tdx / sys.config
Created April 12, 2011 09:57
my sys.config
[
{sasl,
[
{sasl_error_logger, {file, "log/sasl-error.log"}},
{errlog_type, error} %,
% {error_logger_mf_dir, "log/sasl"}, % Log directory
% {error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
% {error_logger_mf_maxfiles, 5} % 5 files max
]},
@tdx
tdx / part_of_riakpool.erl
Created April 12, 2011 04:23
Resource Acquisition Is Initialization paradigm
%% @hidden
init([]) ->
Ip0 = application:get_env(riak_pb_ip),
Port0 = application:get_env(riak_pb_port),
case {Ip0,Port0} of
{{ok,Ip},{ok,Port}} when is_integer(Port) ->
self() ! {start_pool, Ip, Port}; %% need handle_info implement
_ -> ok
end,
{ok, undefined}.