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
Copyright (c) 2018, Aaron Bull Schaefer <aaron@elasticdog.com> | |
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 | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
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
# git log show with fzf | |
# | |
# https://gist.github.com/tamphh/3c9a4aa07ef21232624bacb4b3f3c580/edit | |
# https://asciinema.org/a/257939 | |
# | |
# git log show with fzf | |
gli() { | |
# param validation |
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
from collections import OrderedDict | |
from http.client import HTTPMessage | |
class MultiValueHeaders(HTTPMessage): | |
'''https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2''' | |
_separator_ = ', ' | |
def items(self): | |
headers = OrderedDict() | |
for key, value in super().items(): |
OlderNewer