I hereby claim:
- I am jjafuller on github.
- I am jjafuller (https://keybase.io/jjafuller) on keybase.
- I have a public key ASDQSdWgDQ9TICCLO-DvLJbysbrA4zty32AhK2QiOD_tyAo
To claim this, I am signing this object:
import os | |
import glob | |
def resolve_and_convert_symlinks(file_patterns): | |
""" | |
Takes a list of file patterns, resolves them to actual paths, iterates over the files, | |
and converts the files from symlinks to actual files if they are symlinks. | |
""" | |
for pattern in file_patterns: | |
for file_path in glob.glob(pattern): |
#NoEnv ; recommended for performance and compatibility with future autohotkey releases. | |
#UseHook | |
#InstallKeybdHook | |
#SingleInstance force | |
SendMode Input | |
;; deactivate capslock completely | |
SetCapslockState, AlwaysOff |
url = "https://gopro.com/en/us/shop/cameras/hero8-black/CHDHX-801-master.html?utm_source=Facebook&utm_medium=DirectResponse&utm_campaign=IR100Off&&fbclid=IwAR2qDFVHq0MhKNiMbe5HiAwOVZCXRf5bdTt8gxVH8bE3csOQP9fcbQMc0QM#hero8black" | |
s = string.gsub(url, "utm_[%w_]+=[%w_]+&?", "") | |
s = string.gsub(s, "fbclid=[%w_]+&?", "") | |
s = string.gsub(s, "?&*#", "#") | |
s = string.gsub(s, "[&?]*$", "") | |
print(s) | |
-- https://gopro.com/en/us/shop/cameras/hero8-black/CHDHX-801-master.html#hero8black |
I hereby claim:
To claim this, I am signing this object:
public class CacheControlMiddleware | |
{ | |
private const string JWKS_URL_PATH = "/.well-known/openid-configuration/jwks"; | |
// Because ASP.NET Core uses this PathString struct to store the URL Path in | |
// in the HttpContext that gets passed through the Owin pipeline. | |
private static readonly PathString JwksUrlPath = new PathString(JWKS_URL_PATH); | |
private static readonly string CacheControlHeaderValue = $"max-age={TimeSpan.FromHours(1).TotalSeconds}"; | |