Like me, you may have received the above notice (text below) after a recent push to your GitHub repo:
Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates.
I found the official docs a bit confusing, so after some digging, I found the following steps to be the easiest way to update your GitHub git remote from password to personal access token authentication:
After each crash, crypto Twitter revisits a topic painfully near and dear to the heart of any time-sensitive API trader:
Aside from robust error handling — which is paramount! — there isn’t much that can be done client-side to address exchange latency. However! A related and obvious starting point for any shop / trader who does significant volume over APIs is co-location.
Co-location simply means placing your own server as close to the exchange’s servers as possible to reduce time lost communicating over wires. Additionally, many exchanges offer higher throughput and improved API services to their market makers.
I’ve come across the following issue a handful of times when building new web apps hosted on Heroku: I want a custom domain, and I want a simple way to force a http → https redirect.
If you set up a custom URL on Heroku for your Django app and you pay for hobby or higher dynos (SSL is not available on the free level), then follow the below step to enable a redirect from insecure http requests to secure https requests.
From within your Django app, add the following to your
...MIDDLEWARE = […
Often when working on a non-production project locally I will decide I want to use it remotely on an EC2 instance. Maybe it’s a daily cron job, python scraping scripts, or even backtests running on a model that I would like to be hosted remotely. Whatever the purpose, I usually want a quick way to set up a remote .git repository on my EC2 instance that I can push to, and the following are the steps you can take to get that up and running too. …
Continuing the theme of publishing quick and dirty scripts I use, this is a script for when I need to check the status of a bunch of URLs without overthinking it.
def get_url_status(urls): # checks status for each url in list urls
for url in urls:
r = requests.get(url)
print(url + "\tStatus: " + str(r.status_code))
except Exception as e:
print(url + "\tNA FAILED TO CONNECT\t" + str(e)) return None
urls = ["https://www.foundryoutdoors.com"] get_url_status(urls)
if __name__ == "__main__":
Simply save the script, replace my urls Python list with your own, open terminal, cd into the…
Periodically I run into the issue where I need to create a lot (thousands) of URLs from random strings of text, which may or may not include capital letters, spaces, hyphens, brackets, commas, etc.
Sometimes this is easiest done in a spreadsheet, so here’s an Excel function I baked up a couple years ago that I use to solve the particular problem of slugifying/handle-izing those URLs. It’s clunky, but functional*. Just replace “A2” with whatever cell you need to slugify, and voila.
*Only works for ASCII characters. Does not check for collisions!
For example, the text
AS dsf a s1111#$ b'lue p"urple AsdoIj
If you liked this, follow me on Twitter @elitwilliams.
Something I’ve come across (part of a larger problem with Shopify filtering) that was affecting my organic traffic was users landing on filtered collection pages with a different URL than the main collection page itself (the one I want to rank).
For example, if you see users landing on www.yourstore.com/collections/hats/color_blue instead of www.yourstore.com/collections/hats because for some reason the color_blue filtered version of that collection ranks better on Google, this might help you point the traffic in the right direction. This will also set the canonical URL for paginated collections to the main
collection.url for URLs with
?page=2 and beyond. …
WeWork, the self-described “platform for creators”, just announced a $355 million Series A, giving it at a $5 billion valuation and rocketing it up to the #10 spot in the Wall Street Journal’s Billion-Dollar Startup Club list. WeWork’s product is co-working space for small businesses. The spaces are generally in buildings renovated to provide modern, trendy working environments for young start-ups and freelance workers at a cost accessible to them.
Full disclosure — I’ve been a member/tenant of the WeWork SoHo West location in downtown Manhattan for the past 6 months trying to grow the company I founded, FoundryOutdoors.com. …
A word you hear a lot in the same sentence as funding, revenues, or dollars is “million”. It’s not large from a strictly mathematical or cosmological perspective, but arguably large from a conceptual one. I have a hard time visualizing even a few thousand of anything, so a mental trick for reframing large quantities is helpful for me in understanding such things. I’d argue that’s important for just about anything being dealt with at scale — if nothing else but for the sake of grasping the gravity of the numbers being discussed.
What does 1,000,000 look like?
To visualize a…
@SQSTrading @GoFoundry @GoAltfree