https://git-scm.com/docs/git-reset
https://www.gitkraken.com/learn/git/git-reset
### reset HEAD to a specified submit, and DISCARD the changes of the submit
# [ ✅ reset HEAD, ❌ stage changes(git add), ❌ keep workspace changes ]
git reset --hard
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", () => { |
https://git-scm.com/docs/git-reset
https://www.gitkraken.com/learn/git/git-reset
### reset HEAD to a specified submit, and DISCARD the changes of the submit
# [ ✅ reset HEAD, ❌ stage changes(git add), ❌ keep workspace changes ]
git reset --hard
# https://stackoverflow.com/a/23657759 | |
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD | |
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
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* 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 |
--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 |
-- Lua 5.1+ base64 v3.0 (c) 2009 by Alex Kloss <alexthkloss@web.de> | |
-- 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() |