Skip to content

Instantly share code, notes, and snippets.

View abernix's full-sized avatar
🤗

Jesse Rosenberger abernix

🤗
View GitHub Profile
@abernix
abernix / get_lastest_nightly.sh
Created August 1, 2023 06:57
Get the latest Router nightly builds for a branch (like `dev`)
#!/usr/bin/env bash
# Requires a PERSONAL CircleCI token defined in the environment
# as CIRCLE_TOKEN from https://app.circleci.com/settings/user/tokens.
branch_to_get="${1:-dev}"
repo_to_use="${2:-router}"
echo "Downloading the latest nightly build from the ${branch_to_get} branch on ${repo_to_use}. Pass the first argument as a branch name to change the branch and optionally the repo name as the second argument."
curl --request GET \
@abernix
abernix / npm-apollo-cli-proxy-config.md
Last active December 3, 2020 13:08
Apollo CLI Proxy configuration

apollo CLI proxy configuration

⚠️ This is for the JavaScript apollo CLI, usually installed with npm install apollo or npx, not for any other Apollo CLI

  1. If it's not already installed (present in the project's package.json), install the apollo CLI directly into the devDependencies of the project.

    npm install --save-dev apollo
{"backup":{"hardware.keyscan":"50","led.mode":"1","keymap.custom":"49222 30 31 32 33 34 35 0 0 36 37 38 39 45 46 42 43 20 26 8 21 23 0 0 28 24 12 18 19 47 48 40 41 4 22 7 9 10 0 0 0 11 13 14 15 51 52 49 225 100 29 27 6 25 5 0 0 0 17 16 54 55 56 229 224 226 226 227 44 0 74 17451 17451 77 44 231 230 230 101 228 65535 58 59 60 61 62 63 0 0 64 65 66 67 68 69 76 43 0 74 82 77 75 0 0 0 0 0 0 0 0 0 65535 65535 70 80 81 79 78 0 0 0 80 81 82 79 0 0 0 225 0 22710 22709 23786 23785 22733 0 0 0 0 0 0 0 0 82 224 227 226 65535 44 0 76 51514 65535 17152 44 65535 230 80 81 79 79 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 6553
@abernix
abernix / gateway-health-check-schema-only.js
Last active April 8, 2021 10:08
Apollo Gateway: Health Check: Schema Only
import { ApolloGateway } from "@apollo/gateway";
import { ApolloServer } from "apollo-server";
(async function startApolloServer() {
const gateway = new ApolloGateway({
/* Options, maybe! */
});
const server: ApolloServer = new ApolloServer({
gateway,
# Hitting this basic `apollo-server` on Glitch with ~bytes.
# https://glitch.com/edit/#!/pyrite-advantage
curl 'https://pyrite-advantage.glitch.me/' \
-H 'Content-type: application/json' \
-H "Authorization: $(head -c 4333 < /dev/zero | tr '\0' '\052')" \
--data '{"query":"{ hmm }"}'
# Yields
{"data":{"hmm":"🤔"}}
@abernix
abernix / introspection_query.graphql
Created January 24, 2019 14:50
Introspection Query Result - graphql@14
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
@abernix
abernix / cli.diff
Created February 6, 2018 11:39
Comparison of two self-test runs
--- Untitled-1 2018-02-06 13:36:50.000000000 +0200
+++ Untitled-2 2018-02-06 13:36:55.000000000 +0200
@@ -28,6 +28,11 @@
- can't build local packages with colons [non-galaxy]
- package with colons is unpacked as-is on unix [non-galaxy]
- package with colons is converted on Windows [non-galaxy]
+command-line:
+ - argument parsing [non-galaxy]
+ - command-like options [non-galaxy]
+ - rails reminders [non-galaxy]
cordova-platforms: add cordova platforms ...
... ok (32963 ms)
cordova-plugins: change cordova plugins ...
... ok (47625 ms)
cordova-plugins: remove cordova plugins ...
... ok (25007 ms)
cordova-run: get mobile server argument for meteor run ...
--mobile-server must include a hostname.
... ok (6 ms)
create: create ...
@abernix
abernix / pathwatcher-windows-fail.ps1
Created June 22, 2017 10:38
pathwatcher install fail
PS C:\Users\abern\meteor\dev_bundle\lib> ..\..\meteor.bat npm install [email protected] --verbose
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Users\\abern\\meteor\\dev_bundle\\bin\\node.exe',
npm verb cli 'C:\\Users\\abern\\meteor\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli '[email protected]',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session 8e4dbaf8ac7ac17a
@abernix
abernix / underscore-list-not-tool.md
Last active February 17, 2017 13:19
Underscore Uses in Meteor
Count Function Note
539 _.each
212 _.extend
184 _.has
121 _.map
83 _.keys
76 _.isEmpty
71 _.pluck
56 _.contains