Skip to content

Instantly share code, notes, and snippets.

View gtback's full-sized avatar

Greg Back gtback

  • Indiana, US
  • 13:10 (UTC -05:00)
View GitHub Profile
@elasticdog
elasticdog / LICENSE
Last active October 17, 2022 14:00
Git Triangular Workflow
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
@tamphh
tamphh / git_fzf.sh
Last active March 30, 2024 20:32 — forked from junegunn/gist:f4fca918e937e6bf5bad
Browsing git commit history with fzf
# 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
@sakurai-youhei
sakurai-youhei / MultiValueHeaders.py
Created June 16, 2021 12:35
Sample code for "multiple message-header fields with the same field-name" in Python plus requests
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():