Skip to content

Instantly share code, notes, and snippets.

View heyitsjames's full-sized avatar

James Rasmussen heyitsjames

  • Salt Lake City, Utah
View GitHub Profile
james@abundance skyclimb-app % desired init --build="pnpm build"
[desired] Applying overrides in project: /Users/james/projects/upshift/skyclimb/packages/skyclimb-app
[desired] Overriding packages: react
[desired] Using build command: pnpm build
[desired] Removed .desired directory
[desired] Applying overrides for packages: react
[desired] Also installing type packages: @types/react
[desired] Installing override packages with npm into /Users/james/projects/upshift/skyclimb/packages/skyclimb-app/.desired/overrides
added 6 packages in 348ms
<tbody id="yui_3_18_1_2_1762718652722_5894"><tr class="First" id="yui_3_18_1_2_1762718652722_5918"><td style="width: 20px; padding-left: 8px; padding-right: 8px;" class="Alt" id="yui_3_18_1_2_1762718652722_5930"><div><a title="Propose Trade" href="/f1/41611/8/proposetrade?stage=1&amp;mid2=16&amp;tpids2[]=32711" class=" F-icon Fz-xs F-trade T-action-icon-trade"></a></div></td><td style="width: 20px; padding-left: 8px; padding-right: 8px;" class="Ta-c Bdrend" id="yui_3_18_1_2_1762718652722_5928"><div id="yui_3_18_1_2_1762718652722_5929"><a title="Add to Watch List" href="/f1/41611/addplayerwatch?mid=8&amp;apid=32711&amp;crumb=playerwatch|4/ESP6c5Zfn&amp;done=https%3A%2F%2Ffootball.fantasysports.yahoo.com%2Ff1%2F41611%2Fplayers%3Fpos%3Do%26sort%3Dpts%26sdir%3D1%26status%3Dall%26eteam%3Dall%26fteam%3Dnone%26stat1%3Ds_s_2025%26jsenabled%3D1" class="watchn watchlist-action F-icon Fz-sm F-watch" name="w-41611-32711"></a></div></td><td style="width: 270px;" class="Alt Ta-start player Bdrend" id="yui_3_18_1_2_176271
james@abundance lift % gcloud auth application-default login
cloud-sql-proxy --port 4400 redacted-username:us-central1:redacted-database-name
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&scope=openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fsqlservice.login&state=qPMF48maoqNt0ALTPmnEp9ZV7mu9Ph&access_type=offline&code_challenge=lqkLfxzgZI7EwcGZaBSIfhoADFqGhVSTMbOlPH_rHjE&code_challenge_method=S256
Credentials saved to file: [/Users/james/.config/gcloud/application_default_credentials.json]
These credentials will be used by any library that requests Application Default Credentials (ADC).
defmodule Dozer.Integrations.Yardi do
@moduledoc """
Yardi is a 3rd party app that many of our customers use, and they do lots of things related to
vendor payments and property management.
The main purpose for this integration is that while our mutual customers use Rabbet to track and
approve documents for payment, we don't have any way to actually initiate the money transfers
and tie that back to balance sheets etc. So we offer this and other similar integrations (Avid, Nexus)
to allow the customers to pay out balances and tie into their accounting systems.
%{
title: %{
approved_at_utc: nil,
removed_by_category: nil,
category: nil,
author_flair_background_color: nil,
thumbnail_width: nil,
no_follow: false,
view_count: nil,
stickied: false,
import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configuration in here, as it won't be applied.
# The block below contains prod specific runtime configuration.
# ## Using releases
web.1 | started with pid 41
web.1 | =ERROR REPORT==== 8-Dec-2024::22:22:15.256128 ===
2024-12-08T22:22:15.256730+00:00 reddit-viewer[b'reddit-viewer-69c87b96d4-66vhp']: web.1 | Invalid -name given to erl,
web.1 | =ERROR REPORT==== 8-Dec-2024::22:22:15.256128 ===
web.1 | Invalid -name given to erl,
2024-12-08T22:22:15.269857+00:00 reddit-viewer[b'reddit-viewer-69c87b96d4-66vhp']: web.1 | 22:22:15.268 [warning] node not running in distributed mode. Ensure the following exports are set in your rel/env.sh.eex file:
web.1 |
web.1 | #!/bin/sh
web.1 |
web.1 | export RELEASE_DISTRIBUTION=name
#! /usr/bin/env python3
import sys
hosts_path = '/Users/james/Desktop/hosts'
def main(argv):
is_commented = False
hosts_file = open(hosts_path, 'r')
hosts_file_contents = hosts_file.readlines()
defmodule MyApp.Encoder do
@moduledoc """
General implementation for the Jason encoder to be used in Ecto schemas
"""
defmacro __using__(opts) do
drop_fields = Keyword.get(opts, :drop, [])
quote do
defimpl Jason.Encoder, for: [__MODULE__] do
@heyitsjames
heyitsjames / gist:c223376587a0900a7e4d8daa83aff7dd
Created May 25, 2021 05:30
35-39 Males competing in 2021 Ironman 70.3 Hawaii
ABBOTT ERIC MALE 35 USA
AIDO RICARDO MALE 39 PRT
ALFRED RYAN MALE 38 USA
ANDRADE JONATHAN MALE 35 USA
ANDREAS WITTMANN MALE 39 DEU
ARECHAVALETA RICHARD MALE 38 USA
AYTON TRISTAN MALE 37 AUS
BAIER-LENTZ MORITZ MALE 35 DEU
BARRAGAN ALFREDO MALE 37 USA
BARRAGAN ZAMUDIO JESUS EDUARDO MALE 35 MEX