Skip to content

Instantly share code, notes, and snippets.

@closetgeekshow
closetgeekshow / _document.js
Created October 20, 2023 15:38
_document.js file for nextjs with snipcart v3.4 installed
import Document, { Html, Head, Main, NextScript } from "next/document";
import envVariables from '../envVariables'
const apiKey = envVariables.apiKey;
const snipcartFunction = `
(function() {
var c, d;
(d = (c = window.SnipcartSettings).version) != null || (c.version = '3.0');
var s, S;
(S = (s = window.SnipcartSettings).timeoutDuration) != null || (s.timeoutDuration = 2750);
@closetgeekshow
closetgeekshow / GitPod-openssl-legacy-provider-fix.md
Last active October 18, 2023 21:51
Node Error: error:0308010C:digital envelope routines fix

When you try to run a project in node and you get an error like:

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)
    at Object.createHash (node:crypto:133:10)

Fix it with this fix I found from NikaidouSkin42

>Or you can run this command,then run "npm run build"。 it still works on Node.js 16 :

@closetgeekshow
closetgeekshow / README.md
Last active October 17, 2023 19:52 — forked from mrkpatchaa/README.md
Bulk delete github repos (2023 Powershell Remix)

Use this trick to bulk delete your old repos or old forks (2023 Powershell Version)

(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5 and https://gist.github.com/mrkpatchaa/63720cbf744a2bf59a3e9cfe73fc33b0) and a little help from ChatGPT.

with additional notes from me

  1. Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories

>Note: in Chrome, you can group them all to make it a little easier

<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;