Skip to content

Instantly share code, notes, and snippets.

View EverlastingBugstopper's full-sized avatar
🐝

Avery Harnish EverlastingBugstopper

🐝
View GitHub Profile
@EverlastingBugstopper
EverlastingBugstopper / compiler_error.txt
Created June 12, 2023 16:22
compiler error in 1.70.0
error: internal compiler error: encountered incremental compilation error with mir_built(f7969781c554dfb1-7eef3987a206662)
|
= help: This is a known issue with the compiler. Run `cargo clean -p apollo_router` or `cargo clean` to allow your project to compile
= note: Please follow the instructions below to create a bug report with the provided information
= note: See <https://github.com/rust-lang/rust/issues/84970> for more information
thread 'rustc' panicked at 'Found unstable fingerprints for mir_built(f7969781c554dfb1-7eef3987a206662): Steal { value: RwLock(RefCell { value: Some(Body { basic_blocks: BasicBlocks { basic_blocks: [BasicBlockData { statements: [StorageLive(_3), StorageLive(_4), StorageLive(_5), _5 = &((*_1).0: std::sync::Mutex<plugin::test::service::__mock_MockRouterService::__call::Matcher>)], terminator: Some(Terminator { source_info: SourceInfo { span: apollo-router/src/plugin/test/service.rs:29:13: 40:14 (#1059), scope: scope[0] }, kind: _4 = std::sync::Mutex::<__mock_MockRouterSer
@EverlastingBugstopper
EverlastingBugstopper / rover_check_markdown.sh
Last active August 24, 2022 10:14
A bash script to parse the JSON output of `rover subgraph check` or `rover graph check`
#! /bin/bash
# This script performs a subgraph check and generates a markdown file from Rover's JSON output
# Change the following line to refer to your graph ref, schema, and subgraph name
CHECK_OUTPUT=$(rover subgraph check my-graph --schema ./products.graphql --name products --output json)
CHECK_SUCCESS=$(echo $CHECK_OUTPUT | jq '.data.success')
if [ $CHECK_SUCCESS = "true" ]; then
echo "### Check Success"
@EverlastingBugstopper
EverlastingBugstopper / changelog.code-snippets.json
Last active June 8, 2020 18:37
changelog code snippet for everlastingbugstopper/chrome-devtools-rs
{
"changelog": {
"prefix": "changelog",
"body": [
"- **${1:Summary} - [${2:Author}], [issue/${3:Issue #}] [pull/${4:PR #}]**\n\n ${5:Detailed description}\n\n [$2]: https://github.com/$2\n [pull/$4]: https://github.com/EverlastingBugstopper/chrome-devtools-rs/pull/$4\n [issue/$3]: https://github.com/EverlastingBugstopper/chrome-devtools-rs/issues/$3"
],
"description": "changelog boilerplate"
}
}
@EverlastingBugstopper
EverlastingBugstopper / README.md
Last active February 12, 2020 23:56
wrangler 1.8.0-rc.0 testing instructions

Getting Started

Installation

npm i @cloudflare/wrangler@1.8.0-rc.0 -g

Creating a project

@EverlastingBugstopper
EverlastingBugstopper / cloudSettings
Last active August 11, 2020 20:35
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-11T20:35:50.912Z","extensionVersion":"v3.4.3"}
@EverlastingBugstopper
EverlastingBugstopper / flamegraph.md
Last active January 29, 2020 22:09
flame - a little CLI for creating flamegraphs for Rust projects

Flame

Note: This how-to was made for use on a Macbook. I believe it should work as intended on Linux as well, but some changes will need to be made - especially with regard to opening Firefox automatically.

If you're not familiar with cargo-flamegraph, or flamegraphs in general, I'd recommend taking a look at this documentation.

Getting started

  1. You must have cargo installed
  2. You must have Google Chrome installed
@EverlastingBugstopper
EverlastingBugstopper / dev-test.md
Last active November 8, 2023 20:20
testing instructions for wrangler dev beta

Testing wrangler dev

Thanks for trying this out! We're really excited about this feature and hope you are too :)

If you haven't used Wrangler to build/publish your worker projects yet, we recommend checking out our Workers Quickstart before going any further.

DISCLAIMER

This feature is in alpha and it almost definitely has bugs and the way you use wrangler dev in the future may be slightly different than you use it today. Proceed with caution!

{
"changelog": {
"prefix": "changelog",
"body": [
" - **${1:Summary} - [${2:Author}], [issue/${3:Issue #}] [pull/${4:PR #}]**\n\n ${5:Detailed description}\n\n [$2]: https://github.com/$2\n [pull/$4]: https://github.com/apollographql/router/pull/$4\n [issue/$3]: https://github.com/apollographql/router/issues/$3"
],
"description": "changelog boilerplate"
}
}
@EverlastingBugstopper
EverlastingBugstopper / test_highlighting.md
Created September 9, 2019 20:08
markdown highlighting
$ wrangler publish --env staging
Error: ⚠️  Your environment should only include `workers_dot_dev` or `route`. If you are trying to publish to workers.dev, remove `route` from your wrangler.toml, if you are trying to publish to your own domain, remove `workers_dot_dev`.
$ wrangler publish --env staging
Error: ⚠️  Your environment should only include `workers_dot_dev` or `route`. If you are trying to publish to workers.dev, remove `route` from your wrangler.toml, if you are trying to publish to your own domain, remove `workers_dot_dev`.