$ esptool.py chip_id
esptool.py v2.5.1
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:0b:dd:53
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
[alias] | |
rescue = !git fsck --full --no-reflogs --unreachable --lost-found | grep commit | cut -d\\ -f3 | xargs -n 1 git log -n 1 --pretty=oneline > .git/lost-found.txt | |
ignore = !files={$(echo \"$@\" | tr ' ' ,)}.gitignore && echo '<-' github:$files && curl -sL https://raw.githubusercontent.com/github/gitignore/master/$files >> .gitignore && echo '->' .gitignore || echo FAIL && : | |
license-osi = !curl -sL https://raw.githubusercontent.com/OpenSourceOrg/licenses/master/texts/plain/$1 > LICENSE | |
license = !curl -sL https://raw.githubusercontent.com/github/choosealicense.com/gh-pages/_licenses/$1.txt > LICENSE | |
fork = !git clone $1 $3 --depth 1 && pushd ${3:-$(basename $1 .git)} > /dev/null && git remote add upstream $(git remote get-url origin) && git remote set-url origin $2 && popd > /dev/null && : | |
modlink = !pushd $1 && repo=$(git remote get-url origin) && popd && git submodule add $repo $2 && rm $2 && ln -s $1 $2 && : | |
first-commit = !git log $(git rev-list |
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
{ | |
// Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"subscript": { | |
"prefix": "sub", | |
"body": [ | |
"<sub>$1</sub>" |
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
export class EventEmitter<Events, K = keyof Events|symbol> { | |
addListener(event: K, listener: (...args: any[]) => void): this; | |
on(event: K, listener: (...args: any[]) => void): this; | |
once(event: K, listener: (...args: any[]) => void): this; | |
removeListener(event: K, listener: (...args: any[]) => void): this; | |
removeAllListeners(event?: K): this; | |
setMaxListeners(n: number): this; | |
getMaxListeners(): number; | |
listeners(event: K): Function[]; | |
emit(event: K, ...args: any[]): boolean; |
In my case, I use it to bundle CLI app that use oclif which also act (and can be used) as a library.
npm i -D globby
import {sync as glob} from "globby"
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
# Expression in Literal String Interpolation (pep-0498/#supporting-full-python-expressions) | |
fixtures = [] | |
a1 = f"'{'\' \''.join(fixtures)}'" | |
a2 = f"'{"' '".join(fixtures)}'" | |
# only on Python 3.5.3 | |
a3 = f"({'|'.join(fixtures)})" | |
a4 = f'" "{f} '.join(fixtures) |
H2O
mc2
collapsible
const working = burnout
$ cross build --target x86_64-unknown-linux-gnu --release --package substrate
.
.
error: failed to run custom build command for `librocksdb-sys v5.18.3`
Caused by:
process didn't exit successfully: `/target/release/build/librocksdb-sys-e17ed1a83908e9ac/build-script-build` (exit code: 101)
I hereby claim:
- I am drsensor on github.
- I am drsensor (https://keybase.io/drsensor) on keybase.
- I have a public key ASDvtxSiUu0YOZr4V4IxnJd-33IA4SawWjw-F6oAh1Yx6Ao
To claim this, I am signing this object: