Skip to content

Instantly share code, notes, and snippets.

➜ adapter-nextjs git:(jamesdaniels_nextjsNativeAdapter) ✗ curl --raw http://127.0.0.1:8080/products/5
678
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/d6ea40c43f2de654.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0599602c73140366.js"/><script src="/_next/static/chunks/46cd480c25d0c3ed.js" async=""></script><script src="/_next/static/chunks/8ae3ca01167bb20a.js" async=""></script><script src="/_next/static/chunks/turbopack-e64805bb4de037f0.js" async=""></script><script src="/_next/static/chunks/ff1a16fafef87110.js" async=""></script><script src="/_next/static/chunks/3f1a423581781f16.js" async=""></script><meta name="next-size-adjust" content=""/><title>Create Next App</title><meta name="description" content="Generated by create next app"/><link rel="icon" href="/favicon.ico?favicon.0b3bf435.ico" sizes="256x256" type=
import { getServerAuth } from "@/firebase/server";
import FirebaseClientCookieProvider from "./cookie";
import Image from "next/image";
import SignOutButton from "../sign-out-button";
import SignInButton from "../sign-in-button";
export default async function FirebaseAuthWidget() {
const auth = await getServerAuth();
const currentUser = auth.currentUser;
return (
'use client'
import { useEffect, useState } from 'react';
import { onIdTokenChanged, beforeAuthStateChanged } from 'firebase/auth';
import { COOKIE_NAME } from "@/firebase/constants";
import { auth } from '@/firebase/client';
import { set as setCookie, remove as removeCookie, get as getCookie } from "@/cookies";
export default function FirebaseClientCookieProvider({ serverUid }: { serverUid?: string }) {
import { createServer, IncomingMessage, ServerResponse } from "node:http";
import { Socket } from "node:net";
import NextServer from "next/dist/server/next-server.js";
import next from "next";
import RequiredServerFiles from "./.next/required-server-files.json" assert { type: "json" };
process.setMaxListeners(1_000);
const hostname = process.env.HOSTNAME || "127.0.0.1";
/// <reference lib="WebWorker" />
export type {};
declare const self: ServiceWorkerGlobalScope;
import { initializeApp } from "firebase/app";
import { getAuth, getIdToken, onIdTokenChanged } from "firebase/auth";
const firebaseOptions = {
/* ADD CONFIG */
};
const chunk_while = (input, predicate) =>
input.reduce((accumulator, current, index) =>
index > 0 && predicate(input[index-1], current) &&
[...accumulator.slice(0, accumulator.length-1), [...accumulator[accumulator.length-1], current]] ||
[...accumulator, [current]]
, [])
import { Component } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import * as firebase from 'firebase/app';
import { AngularFireAuth } from 'angularfire2/auth';
import { AngularFireStorage } from 'angularfire2/storage';
@Component({
selector: 'app-upload',
templateUrl: './upload.component.html',

Keybase proof

I hereby claim:

  • I am jamesdaniels on github.
  • I am jamesuriah (https://keybase.io/jamesuriah) on keybase.
  • I have a public key ASB-xFm8Id6qWZ6EDQ0BA9srwEy45ZRL3HAbpfFp3JT95wo

To claim this, I am signing this object:

Nov 2 15:12:46 Zurruchno installd[86] <Notice>: 0x16e1bb000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Media/Downloads/3117124869267619106/-7979392519707096209" type Customer requested by itunesstored (pid 308)
Nov 2 15:12:48 Zurruchno installd[86] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.client.storegrunt; Version=3.22.00, ShortVersion=3.22.00>
Nov 2 15:12:48 Zurruchno misagent[414] <Notice>: attempt to install invalid profile: 0xe8008012
Nov 2 15:12:48 Zurruchno installd[86] <Error>: 0x16e087000 -[MIInstallableBundle _installEmbeddedProfileInBundle:]: Could not install embedded profile: 0xe8008012 (This provisioning profile cannot be installed on this device.)
Nov 2 15:12:48 Zurruchno installd[86] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Nov 2 15:12:50 Zurruchno installd[86] <Error>: 0x16e087000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:er
/* This is a FluidApp userscript for Google Inbox for Mac.
Includes options for total badge count and unread badge count.
1) You need the paid version of FluidApp (http://fluidapp.com/)
2) Point Fluid to https://inbox.google.com (I recommend the icon from here: https://medium.com/@chrismessina/create-an-icon-for-google-inbox-in-your-dock-ed269312e3bc)
3) Set the user-agent to Chrome
4) Go to window -> userscript and add click the plus sign under the first table (on the left). Name the item 'Inbox'.
5) In the second table (on the right) click the plus and type in "*inbox.google.com*".
6) Paste the contents of this document into the script area below that.
7) Configure badge count (for total or unread only) in the code below.