Figured it would make sense to create a single gist collating my previous deep dive explorations and notes.. so here it is!
Discover gists
#!/bin/bash | |
# IMPORTANT: Make sure your VM's network security rules allows access over TCP Port 80. | |
# This is required to pass the HTTP challenge. | |
# NOTE: This script only needs to be run once. No cron setup is necessary for SSL certificate renewal since it will be handled automatically. | |
# Download: curl -o certrenewal.sh <raw URL of this gist> | |
# Enable execution: sudo chmod +x certrenewal.sh | |
# Run: ./certrenewal.sh -d "yourdomain.tld" -e "youremail@yourdomain.tld" |
This is a list of the most basic but extremely useful commands. Learning these will help you have a strong foundation to add more sophisticated commands upon.
Here are some words that we use and some meanings that you may associate them with.
We use | What you may know them as |
---|---|
directory | folder |
sudo | Run as Administor |
import bs58 from "bs58"; | |
import jssha from "jssha"; | |
const sha256 = str => { | |
const inst = new jssha("SHA-256", "HEX"); | |
inst.update(str); | |
return inst.getHash("HEX"); | |
}; | |
/** |
This document summarizes notes taken to make VMWare Fusion 13 Player work on Apple M1 Pro. It builds upon a previous document based on VMWare Tech Preview 21H1
VMWare Fusion 13 was released on November 17, 2022 and Fusion 13.5 on October 19, 2023
Created on: November 20, 2022
Updated on: December 12, 2023
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
https://gist.github.com/malash/fc0c573300b080e5745e68522d1617bf
- 北京联通默认配置为:所有LAN都支持互联网和IPTV
- 北京联通拨打客服可以改桥街,无需破解。本教程光猫已改桥接
- 光猫到路由器使用单线连接
An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.
C-M-f | sp-forward-sexp |
C-M-b | sp-backward-sexp |
- Code for generating the user_hash value for Intercom's Identity verfication (Note: Identity verification was prevoiusly called Secure Mode)
- Based on http://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-languages/#ruby
- When creating this for mobile, the final output needs to be in lowercase (the web version accepts both upper and lower case)
- So Javascript code below should only be used for testing unless modified and used to run on a server