Skip to content

Instantly share code, notes, and snippets.

View raisedadead's full-sized avatar
Wired In.

Mrugesh Mohapatra raisedadead

Wired In.
View GitHub Profile
// Start chrome with remote debugging port on the terminal like this:
// '/Applications/Google Chrome' --remote-debugging-port=9222
// Next, run the script with the following command:
// npx taiko main.js --observe
// Code
const {

Shell Command Shortcuts and Tricks Cheat Sheet

History Expansion

  • !!: Repeats the last command.
  • !$: Last word of the previous command.
  • !^: First argument of the previous command.
  • !n: Repeats the nth command in your history.
  • !-n: Repeats the command n places back in the history list.
  • !string: Executes the most recent command starting with 'string'.
raisedadead /
Last active October 15, 2023 18:35
Delete Spam Emails from Gmail — using Google App Script.

A Google App Script to detele emails from the spam folder. Why? – Because that's what bored programmers do. This is a fork of, with minor updates to suite my needs. In case you use this please check and update the rules. Goodluck.

"$schema": "",
"basics": {
"name": "Mrugesh Mohapatra",
"image": "",
"url": "",
"meta": {
"version": "v1.0.0",
"canonical": "",
raisedadead /
Last active September 29, 2021 05:19 — forked from monkut/
Add python to Windows Subsystem for Linux (WSL) [ubuntu]
raisedadead /
Last active July 16, 2021 06:24
Wifi interface completely gone after catalina update on 2015 MBP

Apple Discussion: Most Active answer on StackOverflow:

  1. Download the modified files (thanks Alex!) and unzip > you get a folder named WiFi_kexts
  2. Boot into Recovery Mode: restart your computer while pressing and holding cmd-R
  3. Open > Utilities > Terminal via Menu Bar (detailed instructions here)
  4. Type csrutil disable and hit return
  5. Type reboot and hit return > computer reboots normally
  6. Open > Utilities > Terminal and enter cd and hit the space bar (don't hit return)
  7. Drag the folder WiFi_kexts onto the Terminal window and hit return
raisedadead / findLongRunningOp.js
Created October 18, 2019 20:44 — forked from kylemclaren/findLongRunningOp.js
Find and (safely) kill long running MongoDB ops
function(op) {
if(op.secs_running > 5) printjson(op);
raisedadead / 0-Introduction.txt
Last active February 23, 2024 15:58
Checkout, QA and Update PRs locally.
A workflow of working with pull-requests.
Following this you should be able to:
- review, QA, test PRs locally
- update PRs on freeCodeCamp's repository.
raisedadead /
Last active November 16, 2017 06:09
Checklist to be followed for Loopback Migration to v3.
raisedadead / cmder.lua
Last active April 11, 2020 07:14
Cmder Customization
function lambda_prompt_filter()
clink.prompt.value = string.gsub(clink.prompt.value, "{lamb}", "λ")
-- Resolves closest directory location for specified directory.
-- Navigates subsequently up one level and tries to find specified directory
-- @param {string} path Path to directory will be checked. If not provided
-- current directory will be used
-- @param {string} dirname Directory name to search for