Sept 10th 2023
- In
Google Chrome
, go to chrome://settings/adPrivacy - In
Windows
, make sureChrome
is closed, and load the file%LOCALAPPDATA%\Google\Chrome\User Data\Default\Preferences
in a text editor and format it as JSON.
# From https://github.com/fork-dev/TrackerWin/issues/416#issuecomment-1246248261 | |
# | |
# Launch fork.exe from the command line with a directory path argument. | |
# | |
# App: https://git-fork.com/ | |
# Usage: fork <directory_path> | |
# | |
# Load your profile in Notepad: | |
# notepad $PROFILE | |
# Then, add the contents below: |
const fs = require('node:fs'); | |
const path = require('node:path'); | |
const matter = require('gray-matter'); | |
const MarkdownIt = require('markdown-it'); | |
const MarkdownItFrontMatter = require('markdown-it-front-matter'); | |
if (!matter || !MarkdownIt || !MarkdownItFrontMatter) { | |
console.error('Module "gray-matter", "markdown-it", or "markdown-it-front-matter" not found. Run "npm install"'); | |
process.exit(1); | |
} |
# install jq: https://jqlang.github.io/jq/ | |
# list all packages | |
aio rt package list --json | jq '.[] | .name' | |
# for each package name, delete the package recursively | |
aio rt package delete "MY_PACKAGE_1" --recursive |
let store = {} | |
/** @private */ | |
function put (key, value) { | |
store[key] = JSON.stringify(value) | |
} | |
/** @private */ | |
function get (key) { | |
const value = store[key] |
const { Blob } = require('node:buffer'); | |
/** | |
* Converts a Buffer to a Blob. | |
* | |
* @param {Buffer} buffer the Buffer to convert | |
* @returns {Blob} the converted Buffer as a Blob | |
*/ | |
function buffer2blob(buffer) { | |
if (buffer instanceof Buffer === false) { |
if [ $ITERM_SESSION_ID ]; then | |
precmd() { | |
echo -ne "\033]0;${PWD##*/}\007" | |
} | |
fi |
// /////////////////////////////////////////////////////////////////// | |
// index.cjs - this is exported in the manifest for Openwhisk Deploy | |
// Only supported in Node 14+ (dynamic import) | |
async function cjsMain(params) { | |
const { default: esmMain } = await import('./index.mjs') | |
return esmMain(params) | |
} | |
exports.main = cjsMain |
const searchSubstringInRepo = async (owner, repo, substring) => { | |
const repoApiUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/master?recursive=1`; | |
const headers = { | |
'Accept': 'application/vnd.github+json', | |
'Authorization': 'token YOUR_PERSONAL_ACCESS_TOKEN' | |
}; | |
try { | |
const response = await fetch(repoApiUrl, { headers }); | |
if (!response.ok) { |
# adapted from https://osxdaily.com/2020/07/20/how-convert-macos-installer-iso/ | |
hdiutil create -o /tmp/Monterey -size 13700m -volname Monterey -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Monterey.dmg -noverify -mountpoint /Volumes/Monterey | |
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/Monterey --nointeraction | |
hdiutil detach /volumes/Install\ macOS\ Monterey |