Skip to content

Instantly share code, notes, and snippets.

View MrZenW's full-sized avatar


View GitHub Profile
MrZenW / Base64.lua
Created May 17, 2016 09:07 — forked from bortels/Base64.lua
Base64 encode/decode for Codea (Lua)
View Base64.lua
-- Lua 5.1+ base64 v3.0 (c) 2009 by Alex Kloss <>
-- licensed under the terms of the LGPL2
-- character table string
local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
-- encoding
function enc(data)
return ((data:gsub('.', function(x)
local r,b='',x:byte()
View node-command-line-options.txt
--log_gc (Log heap samples on garbage collection for the hp2ps tool.)
type: bool default: false
--expose_gc (expose gc extension)
type: bool default: false
--max_new_space_size (max size of the new generation (in kBytes))
type: int default: 0
--max_old_space_size (max size of the old generation (in Mbytes))
type: int default: 0
--max_executable_size (max size of executable memory (in Mbytes))
type: int default: 0
MrZenW / easing.js
Created December 12, 2019 01:47 — forked from gre/easing.js
Simple Easing Functions in Javascript - see
View easing.js
* Easing Functions - inspired from
* only considering the t value for the range [0, 1] => [0, 1]
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
MrZenW /
Created July 16, 2020 02:56 — forked from gangsta/
How to Setting Up a Comodo SSL Cert

How to Setting Up a Comodo SSL Cert

  • I advice you to buy SSL Certs from officially Comodo only , or some SSL reseller whose you trust.

These are the steps I went through to set up an SSL cert. Purchase the cert

Prior to purchasing a cert, you need to generate a private key, and a CSR file (Certificate Signing Request). You’ll be asked for the content of the CSR file when ordering the certificate:

openssl req -new -newkey rsa:2048 -nodes -keyout example_com.key -out example_com.csr
MrZenW /
Created August 30, 2022 12:18
If you can't push your repo to GitHub because of a large file in git history and you have even deleted it.
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD
MrZenW /
Last active September 8, 2022 04:08
How to configure PHP Xdebug with Docker and VSCode
MrZenW /
Last active July 19, 2023 02:07
git-reset: The differences between various git-reset ways
MrZenW / TestReactDomCreatePortalTypeError.test.tsx
Last active April 6, 2023 02:01
Fix ReactDom.createPortal TypeError: parentInstance.children.indexOf is not a function
View TestReactDomCreatePortalTypeError.test.tsx
import { expect } from "@jest/globals";
import React, { ReactPortal } from "react";
import ReactDom from "react-dom";
import renderer from "react-test-renderer";
import { waitFor } from "@testing-library/react";
import * as componentModule from "./TestReactDomCreatePortalTypeError";
const { TestReactDomCreatePortalTypeError } = componentModule;
describe("Test ReactDom.createPortal TypeError: parentInstance.children.indexOf is not a function", () => {