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.app/Contents/MacOS/Google Chrome' --remote-debugging-port=9222
// Next, run the script with the following command:
// npx taiko main.js --observe
// Code
const {
openBrowser,
link,

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
raisedadead / 0-README.md
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 https://github.com/spamzero/spamzero, with minor updates to suite my needs. In case you use this please check and update the rules. Goodluck.

{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Mrugesh Mohapatra",
"image": "",
"url": "https://mrugesh.dev",
},
"meta": {
"version": "v1.0.0",
"canonical": "https://github.com/jsonresume/resume-schema/blob/v1.0.0/schema.json",
@raisedadead
raisedadead / add_python_to_WINDOWS_WSL_ubuntu.md
Last active September 29, 2021 05:19 — forked from monkut/add_python_to_WINDOWS_WSL_ubuntu.md
Add python to Windows Subsystem for Linux (WSL) [ubuntu]
@raisedadead
raisedadead / macOS-Catalina-Wifi-Fix.md
Last active July 16, 2021 06:24
Wifi interface completely gone after catalina update on 2015 MBP

Apple Discussion: https://discussions.apple.com/thread/250720965?answerId=251575762022#251575762022 Most Active answer on StackOverflow: https://apple.stackexchange.com/questions/372025/missing-wifi-interface-after-upgrade-to-catalina?newreg=1904677ef3d840f0a87b73a2cd7bd342

  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
raisedadead / findLongRunningOp.js
Created October 18, 2019 20:44 — forked from kylemclaren/findLongRunningOp.js
Find and (safely) kill long running MongoDB ops
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5) printjson(op);
}
)
@raisedadead
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
raisedadead / LoopBack-Migration-Checklist.md
Last active November 16, 2017 06:09
Checklist to be followed for Loopback Migration to v3.
@raisedadead
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}", "λ")
end
---
-- 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