Skip to content

Instantly share code, notes, and snippets.

View sidx1024's full-sized avatar

Sid sidx1024

View GitHub Profile
@sidx1024
sidx1024 / npm-pnpm-redirector.sh
Last active May 15, 2026 18:26
npm -> pnpm redirector
# npm -> pnpm redirector
# One-line install / update:
# curl -fsSL https://gist.githubusercontent.com/sidx1024/22b07c6dda9ca707d7b91e148d2e86ef/raw/npm-pnpm-redirector.sh | zsh -s -- --install
#
# This keeps ~/.zshrc small by installing the redirector to:
# ~/.zsh/npm-pnpm-redirector.zsh
# and adding only this source line to ~/.zshrc:
# [ -s "$HOME/.zsh/npm-pnpm-redirector.zsh" ] && source "$HOME/.zsh/npm-pnpm-redirector.zsh"
#
# Install mode is idempotent: it replaces any old inline redirector block and keeps one source line.
@sidx1024
sidx1024 / machine.js
Created July 23, 2021 08:57
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@sidx1024
sidx1024 / js_vs_ruby.md
Last active January 18, 2023 19:41
JavaScript vs Ruby
@sidx1024
sidx1024 / remove_google_search_annoying_people_also_search_for.md
Last active December 7, 2020 08:18
Remove Google Search's annoying "People also search for"

Remove Google Search's annoying "People also search for"

  1. Install uBlock origin extension.

  2. Go to extension preferences > "My filters".

  3. Add:

www.google.*##div[jscontroller]:if(h4:has-text(People also search for))
<!DOCTYPE html>
<html>
<!--[if IE 5]><b>Internet Explorer version 5 </b><![endif]-->
<!--[if IE 6]><b>Internet Explorer version 6 </b><![endif]-->
<!--[if IE 7]><b>Internet Explorer version 7 </b><![endif]-->
<!--[if IE 8]><b>Internet Explorer version 8 </b><![endif]-->
<!--[if IE 9]><b>Internet Explorer version 9 </b><![endif]-->
<br/><br/>
<script>
var _navigator = {};