Skip to content

Instantly share code, notes, and snippets.

View TrillCyborg's full-sized avatar
👨‍💻
Coding

Jason Werner TrillCyborg

👨‍💻
Coding
View GitHub Profile

Keybase proof

I hereby claim:

  • I am trillcyborg on github.
  • I am trillcyborg (https://keybase.io/trillcyborg) on keybase.
  • I have a public key ASCpx2rnBqJN3wbVjz0INJDcqsj0NGRU4B-C9F_ze8Bjpwo

To claim this, I am signing this object:

@TrillCyborg
TrillCyborg / apollo-accounts.js
Created October 7, 2018 10:54
Accounts.js / Apollo Client Boilerplate for authenticated resolvers
import { ApolloClient } from "apollo-client";
import { ApolloLink } from "apollo-link";
import { createHttpLink } from "apollo-link-http";
import { InMemoryCache } from "apollo-cache-inmemory";
import { AccountsClient } from "@accounts/client";
import { AccountsClientPassword } from "@accounts/client-password";
import GraphQLClient from "@accounts/graphql-client";
import { accountsLink } from "@accounts/apollo-link";
let uri = /* gql endpoint */;
@TrillCyborg
TrillCyborg / apollo.ts
Created November 14, 2019 21:08
Next.js / Accounts.js
import fetch from 'isomorphic-unfetch'
import { ApolloClient } from 'apollo-client'
import { ApolloLink } from 'apollo-link'
import { createHttpLink } from 'apollo-link-http'
import { InMemoryCache, NormalizedCacheObject } from 'apollo-cache-inmemory'
import { AccountsGraphQLClient } from '@accounts/graphql-client'
import { AccountsClientPassword } from '@accounts/client-password'
import { AccountsClient } from '@accounts/client'
import { accountsLink } from '@accounts/apollo-link'
import { tokenStorage } from './token-storage'
@TrillCyborg
TrillCyborg / scatter.ts
Created October 20, 2018 16:32
Scatter EOS Login
import ScatterJS from 'scatterjs-core'
import ScatterEOS from 'scatterjs-plugin-eosjs'
import EOS from 'eosjs'
const isDev = process.env.NODE_ENV === 'development'
const APP_NAME = 'Test App'
const NETWORK = {
protocol: "http",
blockchain: "eos",
host: "127.0.0.1",
@TrillCyborg
TrillCyborg / mastodon-docker-setup.md
Last active February 13, 2024 17:15
Mastodon Docker Setup

Mastodon Docker Setup

Setting up

Clone Mastodon's repository.

# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live

cd ~/live