- Serial Port: /dev/cu.SLAB_USBtoUART
- Baud Rate: 115200
- Data Bits: Eight
- Stop Bits: Two
- Handshake: None
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
User-agent: ChatGPT-User | |
Disallow: / | |
User-agent: CCBot | |
Disallow: / | |
User-agent: GPTBot | |
Disallow: / | |
User-agent: Google-Extended |
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
import axios from 'axios'; | |
const instance = axios.create({ | |
baseURL: 'http://localhost:5000' | |
}); | |
const sleepRequest = (milliseconds, originalRequest) => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => resolve(instance(originalRequest)), milliseconds); | |
}); |
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
#!/usr/bin/env bash | |
# Check for file changes in internal libraries local to a monorepo, increment | |
# the lib's minor version number, and auto-update them before running the | |
# current project/service's dev app/server. Assumes usage of poetry's | |
# pyproject.toml and a repository structure similar to that described in this | |
# Opendoor article: https://medium.com/opendoor-labs/our-python-monorepo-d34028f2b6fa | |
REPONAME=myproject | |
LIBSPATH=~/dev/$REPONAME/lib |
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
#!/usr/bin/env python | |
# post-receive hook for git-based deployments | |
import sys | |
import os | |
from subprocess import call | |
# configuration | |
deploy_to_path = '/path/to/deploy/directory/' | |
deploy_branch = 'master' |
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
#!/usr/bin/python | |
import sys | |
import re | |
port_regex = re.compile(r':8082') | |
def rewrite_url(line): | |
""" If the input URL contains a port number, strip it out """ | |
url_list = line.split(' ') |
This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].
When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes