Skip to content

Instantly share code, notes, and snippets.

View wesinator's full-sized avatar

Wes wesinator

View GitHub Profile
@wesinator
wesinator / lookalike_codes.json
Created March 30, 2024 19:28 — forked from J0w03L/lookalike_codes.json
A JSON list of Unicode character lookalikes for a-z, A-Z, based from https://util.unicode.org/UnicodeJsps/confusables.jsp
{
"a": ["\ud835\udf70", "a", "\uff41", "\ud835\udc4e", "\ud835\uddee", "\ud835\udd52", "\ud835\udd86", "\ud835\udcea", "\ud835\ude8a", "\ud835\udfaa", "\u0430", "\u0251", "\u03b1", "\ud835\udd1e", "\ud835\udc82", "\ud835\ude22", "\ud835\udec2", "\u237a", "\ud835\udcb6", "\ud835\ude56", "\ud835\udf36", "\ud835\udefc", "\ud835\udc1a", "\ud835\uddba"],
"A": ["\ud835\ude70", "A", "\ud835\udc34", "\u15c5", "\ud835\udc68", "\ud835\udea8", "\ud835\udd6c", "\ud835\udda0", "\u0410", "\u0391", "\ud835\udee2", "\ud835\udf56", "\ud835\udc9c", "\ud835\udf1c", "\ud81b\udf40", "\ud835\udcd0", "\ud835\udf90", "\uff21", "\ud835\uddd4", "\ud835\ude08", "\u13aa", "\ua4ee", "\ud835\udc00", "\ud835\udd04", "\ud835\udd38", "\ud800\udea0", "\ud835\ude3c"],
"b": ["\ud835\udc4f", "\ud835\uddef", "b", "\u0184", "\ud835\udd53", "\ud835\udd87", "\u042c", "\ud835\udceb", "\ud835\ude8b", "\u13cf", "\u15af", "\ud835\udd1f", "\u1472", "\ud835\udc83", "\ud835\ude23", "\ud835\udcb7", "\ud835\ude57", "\ud835\udc1b", "\ud835\uddbb"]
@wesinator
wesinator / linkify.js
Created February 20, 2024 06:14 — forked from MichaelPaulukonis/linkify.js
simple linkify (from MS Visual Studio upgrade report). See also: http://benalman.com/code/projects/javascript-linkify/examples/linkify/
// Linkifies the specified text content, replaces candidate links with html links
function linkify(text)
{
if(!text || 0 === text.length)
{
return text;
}
// Find http, https and ftp links and replace them with hyper links
var urlLink = /(http|https|ftp)\:\/\/[a-zA-Z0-9\-\.]+(:[a-zA-Z0-9]*)?\/?([a-zA-Z0-9\-\._\?\,\/\\\+&%\$#\=~;\{\}])*/gi;
@wesinator
wesinator / normcore-llm.md
Last active August 30, 2023 15:18 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
@wesinator
wesinator / switch_yarn.sh
Last active March 31, 2023 19:03
Switch between yarn classic (v1.22.19) and yarn trunk (https://github.com/yarnpkg/berry)
# use yarn trunk
# https://yarnpkg.com/getting-started/install#updating-the-global-yarn-version
corepack enable
corepack prepare yarn@<version> --activate
# reinstall yarn classic after installing yarn latest
# https://classic.yarnpkg.com/en/docs/install
npm i -g yarn
@wesinator
wesinator / no-skip-list_custom_nowild.txt
Last active August 19, 2024 19:37
Skip Redirect extension lists.
detectportal.firefox.com/canonical.html
//bugs.chromium.org/
\Warchive\.
//(uc.appengine|drive|safebrowsing|lens|transparencyreport|calendar).google.com/
//downforeveryoneorjustme.com/
calendar/render
//outlook.office.com/
//www.facebook.com/sharer/
//twitter.com/intent/
//www.linkedin.com/cws/
@wesinator
wesinator / cnblogs_code_snippet_remove_linenumbers.js
Last active January 30, 2023 14:05
Remove line numbers from code snippets of old cnblogs.com posts
// https://web.archive.org/web/20150421052738/https://www.cnblogs.com/wz19860913/archive/2010/04/29/1723586.html
var spans = document.getElementsByTagName('span');
for (var span of spans) {
style = span.attributes.style;
if (style && (style.textContent == "color: #008080" || style.textContent == "color: rgba(0, 128, 128, 1)"))
span.remove();
}
# https://askubuntu.com/questions/1075050/how-to-remove-uninstalled-snaps-from-cache
sudo find /var/lib/snapd/cache/ -exec rm -v {} \;
@wesinator
wesinator / 2022-01-01-le-challenge.md
Last active December 7, 2021 16:11
Files to deploy Let's Encrypt challenge to Jekyll server (such as github pages). https://stackoverflow.com/questions/17913120/jekyll-post-content-output-is-surrounded-by-p-tag
layout permalink
plaintext
.well-known/acme-challenge/<TOKEN_URL>

.

@wesinator
wesinator / chrome_94_csp_bug_tab_create.js
Last active October 4, 2021 14:24
Snippet for chrome extension to open tab, attempting to work around Chrome 94 CSP bug. Requires `debugger` permission in manifest. https://bugs.chromium.org/p/chromium/issues/detail?id=1245803
chrome.tabs.create({
url: tabUrl,
index: tab.index + 1,
active: false
},
function (tab) {
const m = navigator.userAgent.match(/Chrome\/([\d]+)/);
/* attempt to workaround issue introduced in Chrome 94+
https://bugs.chromium.org/p/chromium/issues/detail?id=1245803

Windows PE resource metadata fields

Name Description
Comments Additional information that should be displayed for diagnostic purposes.

|