Skip to content

Instantly share code, notes, and snippets.

View djflux's full-sized avatar
🚀
Helping people in space

Andrew Rechenberg djflux

🚀
Helping people in space
View GitHub Profile
@djflux
djflux / test-trades.ts
Created April 17, 2019 01:21
Test of various gdax-trading-toolkit modules and libs
import * as GTT from "gdax-trading-toolkit";
import { Big } from "gdax-trading-toolkit/build/src/lib/types";
import { TickerMessage, Trader, TraderConfig } from "gdax-trading-toolkit/build/src/core";
import { LiveOrder } from "gdax-trading-toolkit/build/src/lib";
import { GDAXExchangeAPI } from "gdax-trading-toolkit/build/src/exchanges/gdax/GDAXExchangeAPI";
import { GDAXConfig } from "gdax-trading-toolkit/build/src/exchanges/gdax/GDAXInterfaces";
import { GDAX_WS_FEED, GDAXFeed, GDAXFeedConfig } from "gdax-trading-toolkit/build/src/exchanges";
import { GDAX_API_URL } from "gdax-trading-toolkit/build/src/exchanges/gdax/GDAXExchangeAPI";
import {
CancelOrderRequestMessage,
import * as GTT from 'gdax-trading-toolkit';
import { GDAXFeed, GDAXFeedConfig } from 'gdax-trading-toolkit/build/src/exchanges';
import { LiveBookConfig, LiveOrderbook, SkippedMessageEvent, TradeMessage, LevelMessage } from "gdax-trading-toolkit/build/src/core";
import { Ticker } from "gdax-trading-toolkit/build/src/exchanges/PublicExchangeAPI";
import { CumulativePriceLevel } from "gdax-trading-toolkit/build/src/lib";
const logger = GTT.utils.ConsoleLoggerFactory({ level: 'debug' });
const product = 'BTC-USD';
const [base, quote] = product.split('-');
import * as GTT from 'coinbase-pro-trading-toolkit';
import { CoinbaseProFeed, CoinbaseProFeedConfig } from 'coinbase-pro-trading-toolkit/build/src/exchanges';
import { LiveBookConfig, LiveOrderbook, SkippedMessageEvent, TradeMessage, LevelMessage } from "coinbase-pro-trading-toolkit/build/src/core";
import { Ticker } from "coinbase-pro-trading-toolkit/build/src/exchanges/PublicExchangeAPI";
import { CumulativePriceLevel } from "coinbase-pro-trading-toolkit/build/src/lib";
const logger = GTT.utils.ConsoleLoggerFactory({ level: 'debug' });
const product = 'BTC-USD';
const [base, quote] = product.split('-');
@djflux
djflux / ds1-audio-dropouts-macos-console.txt
Last active May 8, 2023 14:57
DS1 audio dropout console logs MacBook Pro T2
DS1 audio errors
default 21:07:04.724255-0500 kernel + IOAudioEngine[<private>]::pauseAudioEngine()
default 21:07:04.726351-0500 kernel +-IOAudioEngine[<private>]::setState(0x2. oldState=0x1)
default 21:07:04.726613-0500 kernel + IOAudioStream[<private>]::removeClient(<private>)
error 21:07:04.726641-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.726632-0500 kernel +-IOAudioStream[<private>]::safeLogError kErrorLogDumpCounters mStreamErrorCountsUpdated=0
default 21:07:04.726736-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
default 21:07:04.726634-0500 kernel - IOAudioStream[<private>]::removeClient(<private>)
default 21:07:04.726639-0500 kernel +- IOAudioEngine[<private>]::decrementActiveUserClients() - 0 returns 0x0
@djflux
djflux / tm-helvetica-o365.js
Created August 16, 2021 22:25
Tampermonkey script to change Outlook 365 fonts to Helvetica
// ==UserScript==
// @name Helveticize-Outlook365
// @namespace https://flux.fm/
// @include https://outlook.office.com/*
// @description Make Outlook fonts better because the suck by default.
// @author Andrew Rechenberg
// @match https://outlook.office.com/*
// @grant GM_addStyle
// @version 20210816
// ==/UserScript==
@djflux
djflux / tm-helveticize.js
Created August 16, 2021 22:28
Tampermonkey script to change fonts on certain websites to Helvetica, Arial, or plain sans serif.
// ==UserScript==
// @name Helveticize
// @namespace https://flux.fm/
// @include https://mail.google.com/mail*
// @description Make Gmail fonts better because the suck by default.
// @author Andrew Rechenberg
// @match https://mail.google.com/mail*
// @match https://calendar.google.com/calendar*
// @match https://contacts.google.com/*
// @match https://*.ameritrade.com/*
@djflux
djflux / gist:80a8155b46903ea91ac10ffd52acdce9
Last active November 13, 2021 22:53
UNM SADC q-Method Illustrative Example (Lecture 4, Slides 32-36)
>> lecture4_slide32
Rbi_triad =
0.5662 0.7803 0.2657
-0.7881 0.4180 0.4519
0.2416 -0.4652 0.8516
J_triad =
CCSDS_OEM_VERS = 2.0
CREATION_DATE = 2022-04-27T15:05:27.413
ORIGINATOR = NASA/JSC/FOD/TOPO
META_START
OBJECT_NAME = ISS
OBJECT_ID = 1998-067-A
CENTER_NAME = Earth
REF_FRAME = EME2000
TIME_SYSTEM = UTC
@djflux
djflux / iss-tle.txt
Created April 30, 2022 15:20
ISS Two-Line Element (TLE) set for Epoch 2022-04-03T18:19:00 UTC from http://live.ariss.org/iss.txt
ISS (ZARYA)
1 25544U 98067A 22120.55506469 .00015184 00000-0 27484-3 0 9994
2 25544 51.6439 212.4897 0006341 52.2685 77.0942 15.49849211337797
@djflux
djflux / iss-state-vectors.csv
Last active June 25, 2022 22:16
iss-state-vectors
rx ry rz vx vy vz
5389.38954275294 -428.625775270371 4115.07844657401 3.37225788076021 5.7243049957031 -3.81248005399025
5992.87446080205 944.10173529126 3061.5302181544 1.62622454098513 5.64524883081122 -4.91338680214313
6160.56738151839 2248.18372498016 1785.34399993795 -0.237155263183061 5.15582016426469 -5.65653249521409
5880.49434913884 3388.86931867682 379.386474096373 -2.08240795093501 4.2919755074219 -5.98828621808531
5173.20428770454 4283.36085916715 -1054.14066209356 -3.77562921120821 3.11674599594566 -5.88494091605406
4090.22311685593 4866.79002418905 -2411.11991684408 -5.19413865326438 1.71559441856674 -5.35431786309099
2710.28145779759 5096.88301424576 -3593.05115531641 -6.23527073889434 0.190201874480602 -4.43511100652365
1133.59734943323 4956.99044350772 -4514.16191825814 -6.82370000187807 -1.34886480415353 -3.19404343003111
-525.37267202816 4457.27421681456 -5107.59292770208 -6.91680787981606 -2.79008936821766 -1.72105098153889